OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A regular expression. More...
#include <RegularExpression.h>
Classes | |
class | Expression |
Public Member Functions | |
RegularExpression (const std::string &pattern, bool ignore=false) | |
Constructor. More... | |
RegularExpression (const RegularExpression &) | |
~RegularExpression () | |
bool | match (const std::string &s) const |
Match a string against the pattern. More... | |
bool | OK () const |
Check the regular expression for sanity. More... | |
Private Member Functions | |
void | operator= (const RegularExpression &) |
void | init () |
Private Attributes | |
const std::string | patt |
bool | caseIgnore |
Expression * | expr |
int | state |
A regular expression.
Definition at line 31 of file RegularExpression.h.
RegularExpression::RegularExpression | ( | const std::string & | pattern, |
bool | ignore = false |
||
) |
Constructor.
Definition at line 41 of file RegularExpression.cpp.
References init().
RegularExpression::RegularExpression | ( | const RegularExpression & | rhs | ) |
Definition at line 47 of file RegularExpression.cpp.
References init().
RegularExpression::~RegularExpression | ( | ) |
Definition at line 53 of file RegularExpression.cpp.
References expr.
|
private |
Definition at line 84 of file RegularExpression.cpp.
References caseIgnore, expr, patt, and state.
Referenced by RegularExpression().
bool RegularExpression::match | ( | const std::string & | s | ) | const |
Match a string against the pattern.
Definition at line 58 of file RegularExpression.cpp.
Referenced by Selector::handleElement(), and OpalData::printNames().
bool RegularExpression::OK | ( | ) | const |
Check the regular expression for sanity.
Definition at line 79 of file RegularExpression.cpp.
|
private |
|
private |
Definition at line 61 of file RegularExpression.h.
Referenced by init().
|
private |
Definition at line 65 of file RegularExpression.h.
Referenced by init(), match(), OK(), and ~RegularExpression().
|
private |
Definition at line 58 of file RegularExpression.h.
Referenced by init().
|
private |
Definition at line 68 of file RegularExpression.h.