1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Major overhaul of the String class, to rely more heavily on the CharPointer_UTF classes. On win32, the juce_wchar type is now a typedef for a 32-bit int, rather than the 16-bit wchar_t. The String class now has toUTF8(), toUTF16() and toUTF32() methods to retrieve the string in different formats.

This commit is contained in:
Julian Storer 2011-01-27 20:34:05 +00:00
parent 1b05a7d46d
commit e235912ae5
79 changed files with 2765 additions and 2028 deletions

View file

@ -807,7 +807,7 @@ public:
void setTitle (const String& title)
{
XTextProperty nameProperty;
char* strings[] = { const_cast <char*> (title.toUTF8()) };
char* strings[] = { const_cast <char*> (title.toUTF8().getAddress()) };
ScopedXLock xlock;
if (XStringListToTextProperty (strings, 1, &nameProperty))