convert string to wchar[]

Dr.No jckj33 at gmail.com
Sat May 26 17:12:38 UTC 2018


What's D's way to do that? I need it to be mutable array of wchar 
because a Windows function requires that.

Alternative to go down to using pointers, which would be 
something like:

wchar[] w = new wchar[s.length];
memcpy(w.ptr, s.ptr, s.length);




More information about the Digitalmars-d-learn mailing list