![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
Regular Express Class. More...
#include <dynashell_regex.h>
Public Member Functions | |
RegEx () | |
Default constructor. | |
RegEx (const string &strRegEx) | |
String initialization constructor. | |
RegEx (const char *sRegEx) | |
Null-terminated string initialization constructor. | |
RegEx (const RegEx &src) | |
Copy constructor. | |
virtual | ~RegEx () |
Default destructor. | |
bool | Match (const string &strPat) |
Match pattern against regular expression. More... | |
bool | Match (const char *sPat) |
Match pattern against regular expression. More... | |
const char * | GetRegEx () const |
Get this object's regular expression. More... | |
bool | IsValid () |
Test if in valid state. More... | |
RegEx & | operator= (const RegEx &rhs) |
Assignment copy operator. More... | |
RegEx & | operator= (const string &rhs) |
Assignment operator. More... | |
RegEx & | operator= (const char *rhs) |
Assignment operator. More... | |
Protected Member Functions | |
void | Compile () |
Compile a regular expression. | |
Protected Attributes | |
bool | m_bIsValid |
expression is [not] valid | |
string | m_strRegEx |
pre-compiled regular expression string | |
regex_t | m_regex |
compiled reqular expression | |
Regular Express Class.
Definition at line 70 of file dynashell_regex.h.
|
inline |
Get this object's regular expression.
Definition at line 163 of file dynashell_regex.h.
|
inline |
Test if in valid state.
Definition at line 173 of file dynashell_regex.h.
|
inline |
Match pattern against regular expression.
strPat | String pattern. |
Definition at line 132 of file dynashell_regex.h.
|
inline |
Match pattern against regular expression.
sPat | Null-terminated string pattern. |
Definition at line 145 of file dynashell_regex.h.
Assignment copy operator.
rhs | Regular expression object. |
Definition at line 185 of file dynashell_regex.h.
References m_strRegEx.
|
inline |
Assignment operator.
rhs | String regular expression. |
Definition at line 200 of file dynashell_regex.h.
|
inline |
Assignment operator.
rhs | Null-terminated string expression object. |
Definition at line 215 of file dynashell_regex.h.