digitalmars.D.learn - contrary of std.utf.toUTFz!(const(wchar)*)
- Paolo Invernizzi (5/5) Oct 07 2011 Hi all,
- travert phare.normalesup.org (Christophe) (3/9) Oct 07 2011 std.conv.to!wstring
- Trass3r (1/3) Oct 07 2011 wstring w = cstr[0 .. strlenw(cstr)];
- travert phare.normalesup.org (Christophe) (3/7) Oct 07 2011 if cstr comes from c code, you cannot guarantee it is immutable.
- Trass3r (1/1) Oct 07 2011 Just wanted to point out how it's implemented with language tools.
Hi all, I feel a little stupid, but how to convert a wchar* zero terminated = string into a wstring (DMD 2.055)? I'm digging into Phobos, but right now I've found no way... Thanks, Paolo=
Oct 07 2011
Paolo Invernizzi , dans le message (digitalmars.D.learn:29974), a écrit :Hi all, I feel a little stupid, but how to convert a wchar* zero terminated string into a wstring (DMD 2.055)? I'm digging into Phobos, but right now I've found no way... Thanks, Paolo.std.conv.to!wstring
Oct 07 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)];
Oct 07 2011
Trass3r , dans le message (digitalmars.D.learn:29978), a écrit :if cstr comes from c code, you cannot guarantee it is immutable. Moreover, cstr might point to 0.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)];
Oct 07 2011
Just wanted to point out how it's implemented with language tools.
Oct 07 2011