Changeset 1943
- Timestamp:
- 03/20/07 17:12:54 (2 years ago)
- Files:
-
- trunk/tango/stdc/stringz.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/stdc/stringz.d
r1939 r1943 19 19 char* toUtf8z (char[] s) 20 20 { 21 return s.ptr ? (s ~ '\0').ptr : null; 21 if (s.ptr) 22 s ~= '\0'; 23 return s.ptr; 22 24 } 23 25 … … 37 39 wchar* toUtf16z (wchar[] s) 38 40 { 39 return s.ptr ? (s ~ "\0"w).ptr : null; 41 if (s.ptr) 42 s ~= "\0"w; 43 return s.ptr; 40 44 } 41 45












