88 inline bool operator== (
StringRef other)
const noexcept {
return name == other; }
91 inline bool operator!= (
StringRef other)
const noexcept {
return name != other; }
94 inline bool operator< (
StringRef other)
const noexcept {
return name < other; }
97 inline bool operator<= (
StringRef other)
const noexcept {
return name <= other; }
100 inline bool operator> (
StringRef other)
const noexcept {
return name > other; }
103 inline bool operator>= (
StringRef other)
const noexcept {
return name >= other; }
130 static bool isValidIdentifier (
const String& possibleIdentifier) noexcept;
#define JUCE_API
This macro is added to all JUCE public class declarations.
bool isNotEmpty() const noexcept
Returns true if the string contains at least one character.
Represents a string identifier, designed for accessing properties by name.
A simple class for holding temporary references to a string literal or String.
CharPointerType getCharPointer() const noexcept
Returns the character pointer currently being used to store this string.
bool isNull() const noexcept
Returns true if this Identifier is null.
bool isValid() const noexcept
Returns true if this Identifier is not null.
static Identifier null
A null identifier.
const String & toString() const noexcept
Returns this identifier as a string.
CharPointer_UTF8 CharPointerType
This is the character encoding type used internally to store the string.
String::CharPointerType getCharPointer() const noexcept
Returns this identifier's raw string pointer.
bool isEmpty() const noexcept
Returns true if the string contains no characters.
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...