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:
parent
f5af6cd27d
commit
69ff02b46c
4 changed files with 12 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue