Changeset 238:380bad9f6852 for dwt/internal/Compatibility.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/internal/Compatibility.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/internal/Compatibility.d
r108 r238 12 12 *******************************************************************************/ 13 13 module dwt.internal.Compatibility; 14 15 import dwt.dwthelper.utils; 14 16 15 17 /+ … … 164 166 * @exception IOException 165 167 */ 166 public static InputStream newFileInputStream( char[]filename) {168 public static InputStream newFileInputStream(String filename) { 167 169 return new FileInputStream(filename); 168 170 } … … 175 177 * @exception IOException 176 178 */ 177 public static OutputStream newFileOutputStream( char[]filename) {179 public static OutputStream newFileOutputStream(String filename) { 178 180 return new FileOutputStream(filename); 179 181 } … … 244 246 * if the program cannot be executed 245 247 */ 246 public static void exec( char[]prog) {248 public static void exec(String prog) { 247 249 auto proc = new Process( prog ); 248 250 proc.execute; … … 261 263 * if the program cannot be executed 262 264 */ 263 public static void exec( char[][] progArray) {265 public static void exec(String[] progArray) { 264 266 auto proc = new Process( progArray ); 265 267 proc.execute; … … 342 344 * @return true if the two instances of class String are equal 343 345 */ 344 public static bool equalsIgnoreCase( char[] s1, char[]s2) {345 char[]s1b = new char[ s1.length ];346 char[]s2b = new char[ s1.length ];346 public static bool equalsIgnoreCase(String s1, String s2) { 347 String s1b = new char[ s1.length ]; 348 String s2b = new char[ s1.length ]; 347 349 scope(exit){ 348 350 delete s1b; 349 351 delete s2b; 350 352 } 351 char[]s1c = Unicode.toFold( s1, s1b );352 char[]s2c = Unicode.toFold( s2, s2b );353 String s1c = Unicode.toFold( s1, s1b ); 354 String s2c = Unicode.toFold( s2, s2b ); 353 355 return s1c == s2c; 354 356 }
