On Thu, 29 Sep 2011 05:48:12 -0400, Gor Gyolchanyan <[email protected]> wrote:

Why wont to!string(), to!wstring() and to!dstring() to the trick?
This is essentially toUTF8, toUTF16 and toUTF32.
And the toStringz can be templated to take any of string, wstring and dstring.
I don't see any problem here.
Just drop the whole thing.

toUTFz and friends do *not* convert to strings, wstrings, and dstrings, they convert to C-style null-terminated strings (stringz)

FWIW, I agree we should keep the any existing functions, and just alias them to the template. It doesn't hurt to have them if they are not reimplementations.

-Steve

Reply via email to