mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Minor string changes.
This commit is contained in:
parent
e0e12a8bd9
commit
66643e85ac
74 changed files with 895 additions and 889 deletions
|
|
@ -152,8 +152,8 @@ var::operator bool() const
|
|||
case boolType: return value.boolValue;
|
||||
case doubleType: return value.doubleValue != 0;
|
||||
case stringType: return value.stringValue->getIntValue() != 0
|
||||
|| value.stringValue->trim().equalsIgnoreCase (T("true"))
|
||||
|| value.stringValue->trim().equalsIgnoreCase (T("yes"));
|
||||
|| value.stringValue->trim().equalsIgnoreCase ("true")
|
||||
|| value.stringValue->trim().equalsIgnoreCase ("yes");
|
||||
case objectType: return value.objectValue != 0;
|
||||
default: jassertfalse; break;
|
||||
}
|
||||
|
|
@ -359,7 +359,7 @@ var::identifier::identifier (const String& name_)
|
|||
{
|
||||
/* An identifier string must be suitable for use as a script variable or XML
|
||||
attribute, so it can only contain this limited set of characters.. */
|
||||
jassert (name.containsOnly (T("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_")) && name.isNotEmpty());
|
||||
jassert (name.containsOnly ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_") && name.isNotEmpty());
|
||||
}
|
||||
|
||||
var::identifier::identifier (const char* const name_)
|
||||
|
|
@ -368,7 +368,7 @@ var::identifier::identifier (const char* const name_)
|
|||
{
|
||||
/* An identifier string must be suitable for use as a script variable or XML
|
||||
attribute, so it can only contain this limited set of characters.. */
|
||||
jassert (name.containsOnly (T("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_")) && name.isNotEmpty());
|
||||
jassert (name.containsOnly ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_") && name.isNotEmpty());
|
||||
}
|
||||
|
||||
var::identifier::~identifier()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue