|
enum | Flags { SRE_NONE = 0,
SRE_ICASE = 1,
SRE_NOSUB = 2
} |
|
|
| SimpleRegexp (const std::string &exp, int flags, int nmatch=0) |
|
bool | simpleMatch (const std::string &val) const |
| Match input against exp, return true if matches.
|
|
std::string | getMatch (const std::string &val, int i) const |
| After simpleMatch success, get nth submatch, 0 is the whole match, 1 first parentheses, etc. More...
|
|
bool | operator() (const std::string &val) const |
| Calls simpleMatch()
|
|
std::string | simpleSub (const std::string &input, const std::string &repl) |
| Replace the first occurrence of regexp.
|
|
bool | ok () const |
| Check after construction.
|
|
◆ SimpleRegexp()
SimpleRegexp::SimpleRegexp |
( |
const std::string & |
exp, |
|
|
int |
flags, |
|
|
int |
nmatch = 0 |
|
) |
| |
- Parameters
-
nmatch | must be >= the number of parenthesed subexp in exp |
◆ getMatch()
string SimpleRegexp::getMatch |
( |
const std::string & |
val, |
|
|
int |
i |
|
) |
| const |
After simpleMatch success, get nth submatch, 0 is the whole match, 1 first parentheses, etc.
The documentation for this class was generated from the following files:
- /home/dockes/projets/mpdupnp/libupnpp/libupnpp/smallut.h
- /home/dockes/projets/mpdupnp/libupnpp/libupnpp/smallut.cpp