How to converte string to wstring[]?
Adam D. Ruppe
destructionator at gmail.com
Thu Feb 6 21:55:53 UTC 2020
On Thursday, 6 February 2020 at 21:53:08 UTC, Marcone wrote:
> How to converte "string" to wstring[] in Dlang?
You don't, generally. A string can be converted to a wstring, but
a wstring[] is a very different thing.
import std.conv;
wstring s = to!wstring(some_string);
note that works for most types.
just string to wstring[] depends on the context.
More information about the Digitalmars-d-learn
mailing list