Changeset 238:380bad9f6852 for dwt/internal/Converter.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/internal/Converter.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/internal/Converter.d
r108 r238 12 12 *******************************************************************************/ 13 13 module dwt.internal.Converter; 14 15 import dwt.dwthelper.utils; 14 16 15 17 … … 51 53 * @return the default code page 52 54 */ 53 public static char[]defaultCodePage () {55 public static String defaultCodePage () { 54 56 return "UTF8"; 55 57 } 56 58 57 public static wchar [] mbcsToWcs ( char[]codePage, char [] buffer) {59 public static wchar [] mbcsToWcs (String codePage, char [] buffer) { 58 60 int items_written; 59 61 wchar* ptr = g_utf8_to_utf16 (toStringz(buffer), buffer.length, null, &items_written, null); … … 66 68 } 67 69 68 /+ // only difference with String vs. char[]arg, so no diff in dwt69 public static char [] wcsToMbcs ( char[]codePage, String str, bool terminate) {70 /+ // only difference with String vs. String arg, so no diff in dwt 71 public static char [] wcsToMbcs (String codePage, String str, bool terminate) { 70 72 int length = str.length (); 71 73 wchar [] buffer = new wchar [length]; … … 75 77 +/ 76 78 77 public static char [] wcsToMbcs ( char[]codePage, wchar [] buffer, bool terminate) {79 public static char [] wcsToMbcs (String codePage, wchar [] buffer, bool terminate) { 78 80 int items_read, items_written; 79 81 /*
