[Issue 6130] utf.toUTF16z needs to be callable with any string type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 13 08:41:02 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6130



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-06-13 08:36:24 PDT ---
Also, dstrings should be supported. It makes it much easier to deal with the
windows api when you have access to the count of code points of a string:

dstring text = "ABCDE abcde ÀÁÂÃÄÅ àáâãäå";
TextOut(hdc, 0, 0, text.toUTF16z, text.length);

That won't compile and I have to do this instead:
TextOut(hdc, 0, 0, to!string(text).toUTF16z, text.length);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list