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/Library.d

    r211 r238  
    1313module dwt.internal.Library; 
    1414 
     15import dwt.dwthelper.utils; 
     16 
    1517import tango.util.Convert; 
    1618 
     
    4850 
    4951    version( linux ){ 
    50         static const char[] SEPARATOR = "\n"; 
     52        static const String SEPARATOR = "\n"; 
    5153    } 
    5254    else { 
     
    5557 
    5658 
    57 static int parseVersion(char[] aVersion) { 
     59static int parseVersion(String aVersion) { 
    5860    if (aVersion == null) return 0; 
    5961    int major = 0, minor = 0, micro = 0; 
     
    102104} 
    103105/+ PORTING_LEFT 
    104 static bool extract (char[] fileName, char[] mappedName) { 
     106static bool extract (String fileName, String mappedName) { 
    105107    FileOutputStream os = null; 
    106108    InputStream is = null; 
     
    138140} 
    139141 
    140 static bool load (char[] libName) { 
     142static bool load (String libName) { 
    141143    try { 
    142144        if (libName.indexOf (SEPARATOR) != -1) { 
     
    161163 * @param name the name of the library to load 
    162164 */ 
    163 public static void loadLibrary (char[] name) { 
     165public static void loadLibrary (String name) { 
    164166    loadLibrary (name, true); 
    165167} 
     
    177179 * @param mapName true if the name should be mapped, false otherwise 
    178180 */ 
    179 public static void loadLibrary (char[] name, boolean mapName) { 
     181public static void loadLibrary (String name, boolean mapName) { 
    180182 
    181183    /* Compute the library name and mapped name */