Is there any bettter solution to Windows wide string

Imperatorn johan_forsberg_86 at hotmail.com
Sat May 8 21:26:06 UTC 2021


On Saturday, 8 May 2021 at 20:50:10 UTC, Vinod K Chandran wrote:
> Hi all,
> I am planning some win32 hobby projects. Now I have this 
> function to tackle the LPCWSTR data type in win32.
> ```d
> private import std.utf;
> auto toWString(S)(S s) { return toUTFz!(const(wchar)*)(s); }
> ```
> Is there any better way to do this ?

iirc that's toUTF16z


More information about the Digitalmars-d-learn mailing list