ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <RegularExpression.hpp>
Public Member Functions | |
RegularExpression (const std::string &pattern="") | |
~RegularExpression () | |
void | setPattern (const std::string &pattern) |
const std::string & | getPattern (void) const |
bool | isLike (const std::string &value) |
bool | match (const std::string &value) |
bool | operator== (const RegularExpression &re) const |
bool | operator< (const RegularExpression &re) const |
Class helper to manage regular expressions with efficiency (first compile & keep pattern, then reuse match procedure with different values)
|
inline |
|
inline |
|
inline |
bool anna::RegularExpression::isLike | ( | const std::string & | value | ) |
Check if value fulfill regular expression
|
inline |
bool anna::RegularExpression::operator< | ( | const RegularExpression & | re | ) | const |
Operator <
re | Instance from RegularExpression class |
bool anna::RegularExpression::operator== | ( | const RegularExpression & | re | ) | const |
Operator ==
re | Instance from RegularExpression class |
void anna::RegularExpression::setPattern | ( | const std::string & | pattern | ) |
Set the pattern for regular expression
pattern | Pattern |