35 name = std::move (other.name);
46 : name (
StringPool::getGlobalPool().getPooledString (nm))
53 : name (
StringPool::getGlobalPool().getPooledString (nm))
56 jassert (nm !=
nullptr && nm[0] != 0);
60 : name (
StringPool::getGlobalPool().getPooledString (start, end))
63 jassert (start < end);
70 return possibleIdentifier.isNotEmpty()
71 && possibleIdentifier.containsOnly (
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-:#@$%");
bool isNotEmpty() const noexcept
Returns true if the string contains at least one character.
Represents a string identifier, designed for accessing properties by name.
Identifier() noexcept
Creates a null identifier.
static Identifier null
A null identifier.
~Identifier() noexcept
Destructor.
A StringPool holds a set of shared strings, which reduces storage overheads and improves comparison s...
static bool isValidIdentifier(const String &possibleIdentifier) noexcept
Checks a given string for characters that might not be valid in an Identifier.
Identifier & operator=(const Identifier &other) noexcept
Creates a copy of another identifier.
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...