An OSC address pattern. More...
#include <juce_OSCAddress.h>
Public Member Functions | |
OSCAddressPattern (const char *address) | |
Constructs a new OSCAddressPattern from a C string. More... | |
OSCAddressPattern (const String &address) | |
Constructs a new OSCAddressPattern from a String. More... | |
bool | containsWildcards () const noexcept |
Checks whether the OSCAddressPattern contains any of the allowed OSC address pattern wildcards: ?, *, [], {}. More... | |
bool | matches (const OSCAddress &address) const noexcept |
Checks if the OSCAddressPattern matches an OSC address with the wildcard rules defined by the OpenSoundControl 1.0 specification. More... | |
bool | operator!= (const OSCAddressPattern &other) const noexcept |
Compares two OSCAddressPattern objects. More... | |
bool | operator== (const OSCAddressPattern &other) const noexcept |
Compares two OSCAddressPattern objects. More... | |
String | toString () const noexcept |
Converts the OSCAddressPattern to a String. More... | |
Private Attributes | |
String | asString |
StringArray | oscSymbols |
bool | wasInitialisedWithWildcards |
An OSC address pattern.
Extends an OSC address by additionally allowing the following wildcards: ?, *, [], {}
OSC messages always have an OSC address pattern to specify the destination(s) of the message.
@tags{OSC}
juce::OSCAddressPattern::OSCAddressPattern | ( | const String & | address | ) |
Constructs a new OSCAddressPattern from a String.
OSCFormatError | if the string is not a valid OSC address pattern. |
juce::OSCAddressPattern::OSCAddressPattern | ( | const char * | address | ) |
Constructs a new OSCAddressPattern from a C string.
OSCFormatError | of the string is not a valid OSC address pattern. |
|
inlinenoexcept |
Checks whether the OSCAddressPattern contains any of the allowed OSC address pattern wildcards: ?, *, [], {}.
|
noexcept |
Checks if the OSCAddressPattern matches an OSC address with the wildcard rules defined by the OpenSoundControl 1.0 specification.
|
noexcept |
Compares two OSCAddressPattern objects.
|
noexcept |
Compares two OSCAddressPattern objects.
|
noexcept |
Converts the OSCAddressPattern to a String.
Note: Trailing slashes are always removed automatically.
|
private |
|
private |
|
private |