Changeset 171

Show
Ignore:
Timestamp:
04/07/08 03:57:16 (9 months ago)
Author:
yidabu
Message:

added toString16zz

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sys/win32/CodePage.d

    r154 r171  
    9494 
    9595 
     96/** 
     97    added for use with SHFILEOPSTRUCTW 
     98*/ 
     99wchar* toString16zz(wchar[] input) 
     100{ 
     101        if (input.ptr) 
     102            if ( !(input.length > 1 && input[$-1] is 0 && input[$-2] is 0) ) 
     103                   input = input ~ "\0\0"w; 
     104        return input.ptr;     
     105} 
     106 
     107wchar* toString16zz(dchar[] input) 
     108{ 
     109    return toString16zz( toString16(input) ); 
     110} 
     111 
     112wchar* toString16zz(char[] input)  
     113 
     114  return toString16zz( toString16(input) ); 
     115} 
     116// 
     117 
     118 
    96119/+ 
    97120////////////////////////////////////////////////////////////////////////////////