xstr and unicode

Well I’ve gotten some harsh criticism on the xstr class, I won’t go into it, but some important issues have been brought to my attention and I will be working on improving the class. By far the most important thing I discovered was that Unicode to ASCII conversions can’t be done by a simple cast (due to ligatures) and neither can an ANSI (or whatever the current codepage is) to Unicode conversion, which was never really supported. I did a bit of research and found the necessary Win32 functions to do the conversion and AFAIK there are no standard C++ functions to achieve the same result. I also discovered Unicode defines a few more whitespace characters in addition to the ASCII ones.

Leave a Reply