35 name = std::move (
other.name);
46 : name (
StringPool::getGlobalPool().getPooledString (
nm))
53 : name (
StringPool::getGlobalPool().getPooledString (
nm))
60 : name (
StringPool::getGlobalPool().getPooledString (start,
end))
71 &&
possibleIdentifier.containsOnly (
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-:#@$%");
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.
Identifier() noexcept
Creates a null identifier.
~Identifier() noexcept
Destructor.
static Identifier null
A null identifier.
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.
A StringPool holds a set of shared strings, which reduces storage overheads and improves comparison s...
RangedDirectoryIterator end(const RangedDirectoryIterator &)
Returns a default-constructed sentinel value.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...