comparison dwt/dwthelper/System.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 9b4e6fc63930
children da992144273f
comparison
equal deleted inserted replaced
237:98b80b00af79 238:380bad9f6852
1 /** 1 /**
2 * Authors: Frank Benoit <keinfarbton@googlemail.com> 2 * Authors: Frank Benoit <keinfarbton@googlemail.com>
3 */ 3 */
4 module dwt.dwthelper.System; 4 module dwt.dwthelper.System;
5
6 import dwt.dwthelper.utils;
5 7
6 import tango.core.Exception; 8 import tango.core.Exception;
7 import tango.time.Clock; 9 import tango.time.Clock;
8 import tango.stdc.stdlib : exit; 10 import tango.stdc.stdlib : exit;
9 11
113 alias SimpleType!(long[]).arraycopy arraycopy; 115 alias SimpleType!(long[]).arraycopy arraycopy;
114 alias SimpleType!(uint[]).arraycopy arraycopy; 116 alias SimpleType!(uint[]).arraycopy arraycopy;
115 alias SimpleType!(ushort[]).arraycopy arraycopy; 117 alias SimpleType!(ushort[]).arraycopy arraycopy;
116 alias SimpleType!(ubyte[]).arraycopy arraycopy; 118 alias SimpleType!(ubyte[]).arraycopy arraycopy;
117 alias SimpleType!(ulong[]).arraycopy arraycopy; 119 alias SimpleType!(ulong[]).arraycopy arraycopy;
118 alias SimpleType!(char[]).arraycopy arraycopy; 120 alias SimpleType!(String).arraycopy arraycopy;
119 alias SimpleType!(wchar[]).arraycopy arraycopy; 121 alias SimpleType!(wchar[]).arraycopy arraycopy;
120 alias SimpleType!(Object[]).arraycopy arraycopy; 122 alias SimpleType!(Object[]).arraycopy arraycopy;
121 alias SimpleType!(void*[]).arraycopy arraycopy; 123 alias SimpleType!(void*[]).arraycopy arraycopy;
122 alias SimpleType!(void*[]).arraycopy arraycopy; 124 alias SimpleType!(void*[]).arraycopy arraycopy;
123 125
133 return 0; 135 return 0;
134 } 136 }
135 return (*cast(Object *)&x).toHash(); 137 return (*cast(Object *)&x).toHash();
136 } 138 }
137 139
138 public static char[] getProperty( char[] key ){ 140 public static String getProperty( String key ){
139 switch( key ){ 141 switch( key ){
140 case "os.name": return "linux"; 142 case "os.name": return "linux";
141 default: return null; 143 default: return null;
142 } 144 }
143 } 145 }