contrary of std.utf.toUTFz!(const(wchar)*)

Trass3r un at known.com
Fri Oct 7 05:36:43 PDT 2011


> I feel a little stupid, but how to convert  a wchar* zero terminated  
> string into a wstring (DMD 2.055)?

wstring w = cstr[0 .. strlenw(cstr)];


More information about the Digitalmars-d-learn mailing list