SFML community forums

Help => System => Topic started by: zac on October 13, 2008, 12:29:56 am

Title: Unicode class
Post by: zac on October 13, 2008, 12:29:56 am
Could you add a function ToWstring?
I am asking this because wstring (std::string<wchar_t>) can be UTF16 (most 32 bit systems) or UTF32 (as with me, 64 bit system, where sizeof(wchar_t) == 4).
Would be convenient, but I can add these functions myself.

Which locale does the Unicode::Text-Class use?
Title: Unicode class
Post by: Laurent on October 13, 2008, 08:32:45 am
The Unicode::Text class properly handles conversions from and to wstring.

Quote
Which locale does the Unicode::Text-Class use?

The current one, but you can also use an explicit local if you're using the low-level template functions.