Is there a proper way to convert a string with multibyte characters into a dstring?
void main() { import std.conv : to; import std.stdio : writeln; string a = "abc😃123"; auto b = to!dstring(a); assert(b.length == 7); writeln(b); }
Stanislav Blinov via Digitalmars-d-learn Sun, 25 Nov 2018 13:36:01 -0800
Is there a proper way to convert a string with multibyte characters into a dstring?
void main() { import std.conv : to; import std.stdio : writeln; string a = "abc😃123"; auto b = to!dstring(a); assert(b.length == 7); writeln(b); }