OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_Identifier.h>
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.
Definition at line 38 of file juce_Identifier.h.
|
noexcept |
Creates a null identifier.
Definition at line 26 of file juce_Identifier.cpp.
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.
Definition at line 52 of file juce_Identifier.cpp.
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.
Definition at line 45 of file juce_Identifier.cpp.
juce::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.
Definition at line 59 of file juce_Identifier.cpp.
|
noexcept |
Creates a copy of another identifier.
Definition at line 29 of file juce_Identifier.cpp.
|
noexcept |
Creates a copy of another identifier.
Definition at line 31 of file juce_Identifier.cpp.
|
noexcept |
Destructor
Definition at line 27 of file juce_Identifier.cpp.
|
inlinenoexcept |
Returns this identifier's raw string pointer.
Definition at line 108 of file juce_Identifier.h.
|
inlinenoexcept |
Returns true if this Identifier is null
Definition at line 117 of file juce_Identifier.h.
|
inlinenoexcept |
Returns true if this Identifier is not null
Definition at line 114 of file juce_Identifier.h.
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.
Definition at line 68 of file juce_Identifier.cpp.
|
inlinenoexcept |
Returns this identifier's raw string pointer.
Definition at line 105 of file juce_Identifier.h.
|
inlinenoexcept |
Returns this identifier as a StringRef.
Definition at line 111 of file juce_Identifier.h.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
Definition at line 81 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 87 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 90 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 93 of file juce_Identifier.h.
|
noexcept |
Creates a copy of another identifier.
Definition at line 39 of file juce_Identifier.cpp.
|
noexcept |
Creates a copy of another identifier.
Definition at line 33 of file juce_Identifier.cpp.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
Definition at line 78 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 84 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 96 of file juce_Identifier.h.
Compares the identifier with a string.
Definition at line 99 of file juce_Identifier.h.
Returns this identifier as a string.
Definition at line 102 of file juce_Identifier.h.
Referenced by juce::ValueTree::setPropertyExcludingListener(), and juce::ValueTree::ValueTree().
|
static |
A null identifier.
Definition at line 120 of file juce_Identifier.h.