Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Last standing unicode problem
MortenMacFly:
In http://forums.codeblocks.org/index.php?topic=1693.0 280Z28 might have stated a solution for the unicode problem. Look at this:
--- Code: ---wxString str;
str.Printf(_T("MyString%d"), 5);
--- End code ---
This should result in a unicode compatible "MyString5". Does this help?
Morten.
thomas:
--- Quote from: me22 on December 10, 2005, 08:14:15 pm ---In fact, it basically never it, since to be unicode it's have to be UTF-32 ( otherwise you'd have surrogate troubles ) and I've never seen a numeric_limits<wchar_t>::digits large enough for that to be possible.
--- End quote ---
On my FC4 box, sizeof(wchar_t) says 4.
rickg22:
Actually making a u2s (unsigned int to string) function isn't that hard... just keep dividing over 10 and concatenating to a string (it produces a reversed number). Then you just reverse the elements and ta-da :)
anonuser:
a wchar_t will always hold a unicode character as long as you're going by GNU standards.
So there should be no problem.
Navigation
[0] Message Index
[*] Previous page
Go to full version