Changeset 238:380bad9f6852 for dwt/internal/Library.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/internal/Library.d (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/internal/Library.d
r211 r238 13 13 module dwt.internal.Library; 14 14 15 import dwt.dwthelper.utils; 16 15 17 import tango.util.Convert; 16 18 … … 48 50 49 51 version( linux ){ 50 static const char[]SEPARATOR = "\n";52 static const String SEPARATOR = "\n"; 51 53 } 52 54 else { … … 55 57 56 58 57 static int parseVersion( char[]aVersion) {59 static int parseVersion(String aVersion) { 58 60 if (aVersion == null) return 0; 59 61 int major = 0, minor = 0, micro = 0; … … 102 104 } 103 105 /+ PORTING_LEFT 104 static bool extract ( char[] fileName, char[]mappedName) {106 static bool extract (String fileName, String mappedName) { 105 107 FileOutputStream os = null; 106 108 InputStream is = null; … … 138 140 } 139 141 140 static bool load ( char[]libName) {142 static bool load (String libName) { 141 143 try { 142 144 if (libName.indexOf (SEPARATOR) != -1) { … … 161 163 * @param name the name of the library to load 162 164 */ 163 public static void loadLibrary ( char[]name) {165 public static void loadLibrary (String name) { 164 166 loadLibrary (name, true); 165 167 } … … 177 179 * @param mapName true if the name should be mapped, false otherwise 178 180 */ 179 public static void loadLibrary ( char[]name, boolean mapName) {181 public static void loadLibrary (String name, boolean mapName) { 180 182 181 183 /* Compute the library name and mapped name */
