1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Couple of fixes for a UTF-32 build.

This commit is contained in:
jules 2014-05-29 21:02:13 +01:00
parent f5af6cd27d
commit 69ff02b46c
4 changed files with 12 additions and 3 deletions

View file

@ -77,8 +77,8 @@ public:
testResultsBox.setMultiLine (true);
testResultsBox.setFont (Font (Font::getDefaultMonospacedFontName(), 12.0f, Font::plain));
logMessage ("This demo uses the ChildProcessMaster and ChildProcessSlave classes to launch and communicate "
"with a child process, sending messages in the form of serialised ValueTree objects." + newLine);
logMessage (String ("This demo uses the ChildProcessMaster and ChildProcessSlave classes to launch and communicate "
"with a child process, sending messages in the form of serialised ValueTree objects.") + newLine);
}
~ChildProcessDemo()

View file

@ -42,7 +42,7 @@ struct StartEndString
};
static int compareStrings (const String& s1, const String& s2) noexcept { return s1.compare (s2); }
static int compareStrings (CharPointer_UTF8 s1, const String& s2) noexcept { return s1.compare (s2.toUTF8()); }
static int compareStrings (CharPointer_UTF8 s1, const String& s2) noexcept { return s1.compare (s2.getCharPointer()); }
static int compareStrings (const StartEndString& string1, const String& string2) noexcept
{

View file

@ -71,6 +71,12 @@ XmlElement::XmlElement (const char* tag)
sanityCheckTagName (tagName);
}
XmlElement::XmlElement (StringRef tag)
: tagName (StringPool::getGlobalPool().getPooledString (tag.text.getAddress()))
{
sanityCheckTagName (tagName);
}
XmlElement::XmlElement (const Identifier& tag)
: tagName (tag.toString())
{

View file

@ -152,6 +152,9 @@ public:
/** Creates an XmlElement with this tag name. */
explicit XmlElement (const Identifier& tagName);
/** Creates an XmlElement with this tag name. */
explicit XmlElement (StringRef tagName);
/** Creates an XmlElement with this tag name. */
XmlElement (String::CharPointerType tagNameBegin, String::CharPointerType tagNameEnd);