toStringz for UTF-16

Jonathan M Davis jmdavisProg at gmx.com
Fri Oct 12 17:04:15 PDT 2012


On Saturday, October 13, 2012 01:58:15 Katayama Hirofumi MZ wrote:
> Why doesn't D have toStringz function for UTF-16 encoding?

It does. std.utf.toUTFz will do every combination of char type and constness. 
And std.utf.toUTF16z will convert any string to a null-terminated 
const(wchar)*.

- Jonathan M Davis


More information about the Digitalmars-d mailing list