Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/internal/Compatibility.d

    r108 r238  
    1212 *******************************************************************************/ 
    1313module dwt.internal.Compatibility; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517/+ 
     
    164166 * @exception IOException 
    165167 */ 
    166 public static InputStream newFileInputStream(char[] filename) { 
     168public static InputStream newFileInputStream(String filename) { 
    167169    return new FileInputStream(filename); 
    168170} 
     
    175177 * @exception IOException 
    176178 */ 
    177 public static OutputStream newFileOutputStream(char[] filename) { 
     179public static OutputStream newFileOutputStream(String filename) { 
    178180    return new FileOutputStream(filename); 
    179181} 
     
    244246 *  if the program cannot be executed 
    245247 */ 
    246 public static void exec(char[] prog) { 
     248public static void exec(String prog) { 
    247249    auto proc = new Process( prog ); 
    248250    proc.execute; 
     
    261263 *  if the program cannot be executed 
    262264 */ 
    263 public static void exec(char[][] progArray) { 
     265public static void exec(String[] progArray) { 
    264266    auto proc = new Process( progArray ); 
    265267    proc.execute; 
     
    342344 * @return true if the two instances of class String are equal 
    343345 */ 
    344 public static bool equalsIgnoreCase(char[] s1, char[] s2) { 
    345     char[] s1b = new char[ s1.length ]; 
    346     char[] s2b = new char[ s1.length ]; 
     346public static bool equalsIgnoreCase(String s1, String s2) { 
     347    String s1b = new char[ s1.length ]; 
     348    String s2b = new char[ s1.length ]; 
    347349    scope(exit){ 
    348350        delete s1b; 
    349351        delete s2b; 
    350352    } 
    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 ); 
    353355    return s1c == s2c; 
    354356}