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; }
118 bool isValid() const noexcept {
return name.isNotEmpty(); }
121 bool isNull() const noexcept {
return name.isEmpty(); }
130 static bool isValidIdentifier (
const String& possibleIdentifier) noexcept;
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...
Represents a string identifier, designed for accessing properties by name.
bool isNull() const noexcept
Returns true if this Identifier is null.
const String & toString() const noexcept
Returns this identifier as a string.
String::CharPointerType getCharPointer() const noexcept
Returns this identifier's raw string pointer.
bool isValid() const noexcept
Returns true if this Identifier is not null.
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.
CharPointer_UTF8 CharPointerType
This is the character encoding type used internally to store the string.
#define JUCE_API
This macro is added to all JUCE public class declarations.