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

    r108 r238  
    1212 *******************************************************************************/ 
    1313module dwt.internal.Converter; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517 
     
    5153 * @return the default code page 
    5254 */ 
    53 public static char[] defaultCodePage () { 
     55public static String defaultCodePage () { 
    5456    return "UTF8"; 
    5557} 
    5658 
    57 public static wchar [] mbcsToWcs (char[] codePage, char [] buffer) { 
     59public static wchar [] mbcsToWcs (String codePage, char [] buffer) { 
    5860    int items_written; 
    5961    wchar* ptr = g_utf8_to_utf16 (toStringz(buffer), buffer.length, null, &items_written, null); 
     
    6668} 
    6769 
    68 /+ // only difference with String vs. char[] arg, so no diff in dwt 
    69 public static char [] wcsToMbcs (char[] codePage, String str, bool terminate) { 
     70/+ // only difference with String vs. String arg, so no diff in dwt 
     71public static char [] wcsToMbcs (String codePage, String str, bool terminate) { 
    7072    int length = str.length (); 
    7173    wchar [] buffer = new wchar [length]; 
     
    7577+/ 
    7678 
    77 public static char [] wcsToMbcs (char[] codePage, wchar [] buffer, bool terminate) { 
     79public static char [] wcsToMbcs (String codePage, wchar [] buffer, bool terminate) { 
    7880    int items_read, items_written; 
    7981    /*