Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Unicode class  (Read 26388 times)

0 Members and 1 Guest are viewing this topic.

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Unicode class
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Unicode class
« Reply #1 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.
Laurent Gomila - SFML developer

 

anything