openshot-audio
0.1.5
|
#include <juce_core.h>
Public Member Functions | |
Identifier () noexcept | |
Identifier (const char *name) | |
Identifier (const String &name) | |
Identifier (String::CharPointerType nameStart, String::CharPointerType nameEnd) | |
Identifier (const Identifier &other) noexcept | |
Identifier & | operator= (const Identifier &other) noexcept |
~Identifier () noexcept | |
bool | operator== (const Identifier &other) const noexcept |
bool | operator!= (const Identifier &other) const noexcept |
bool | operator== (StringRef other) const noexcept |
bool | operator!= (StringRef other) const noexcept |
const String & | toString () const noexcept |
operator String::CharPointerType () const noexcept | |
String::CharPointerType | getCharPointer () const noexcept |
operator StringRef () const noexcept | |
bool | isValid () const noexcept |
bool | isNull () const noexcept |
Static Public Member Functions | |
static bool | isValidIdentifier (const String &possibleIdentifier) noexcept |
Static Public Attributes | |
static Identifier | null |
Represents a string identifier, designed for accessing properties by name.
Comparing two Identifier objects is very fast (an O(1) operation), but creating them can be slower than just using a String directly, so the optimal way to use them is to keep some static Identifier objects for the things you use often.
|
noexcept |
Creates a null identifier.
Identifier::Identifier | ( | const char * | name | ) |
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
Identifier::Identifier | ( | const String & | name | ) |
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
Identifier::Identifier | ( | String::CharPointerType | nameStart, |
String::CharPointerType | nameEnd | ||
) |
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
|
noexcept |
Creates a copy of another identifier.
|
noexcept |
Destructor
|
inlinenoexcept |
Returns this identifier's raw string pointer.
|
inlinenoexcept |
Returns true if this Identifier is null
|
inlinenoexcept |
Returns true if this Identifier is not null
|
staticnoexcept |
Checks a given string for characters that might not be valid in an Identifier. Since Identifiers are used as a script variables and XML attributes, they should only contain alphanumeric characters, underscores, or the '-' and ':' characters.
|
inlinenoexcept |
Returns this identifier's raw string pointer.
|
inlinenoexcept |
Returns this identifier as a StringRef.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
|
inlinenoexcept |
Compares the identifier with a string.
|
noexcept |
Creates a copy of another identifier.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Returns this identifier as a string.
|
static |
A null identifier.