Changeset 280
- Timestamp:
- 01/07/08 07:29:33 (8 months ago)
- Files:
-
- trunk/DerelictUtil/derelict/util/wrapper.d (modified) (1 diff)
- trunk/buildme.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictUtil/derelict/util/wrapper.d
r261 r280 55 55 version(Tango) 56 56 { 57 return to Utf8z(str);57 return toStringz(str); 58 58 } 59 59 else trunk/buildme.d
r271 r280 41 41 { 42 42 import tango.text.Ascii; 43 import tango.text.String;44 43 import tango.text.Util; 45 44 import tango.io.File; … … 203 202 version(Tango) 204 203 { 205 bool filter(FilePath p, bool isDir)206 {207 char[] name = p.name;208 if(isDir && name[0] != '.')209 return true;210 return false; 211 }204 bool filter(FilePath p, bool isDir) 205 { 206 char[] name = p.name; 207 if(isDir && name[0] != '.') 208 return true; 209 return false; 210 } 212 211 scope dir = new FilePath("."); 213 212 foreach(p; dir.toList(&filter)) … … 399 398 version(Tango) 400 399 { 401 scope s = new String!(char)(a); 402 return s.compare(b); 400 return compare(a,b); 403 401 } 404 402 else … … 430 428 version(Tango) 431 429 { 432 return to Utf8z(str);430 return toStringz(str); 433 431 } 434 432 else … … 481 479 write(name, cast(void[])contents); 482 480 } 483 484 } 485 481 }
