|
enum | Flags { SRE_NONE = 0
, SRE_ICASE = 1
, SRE_NOSUB = 2
} |
|
|
| SimpleRegexp (const std::string &exp, int flags, int nmatch=0) |
|
| SimpleRegexp (const SimpleRegexp &)=delete |
|
SimpleRegexp & | operator= (const SimpleRegexp &)=delete |
|
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.
|
|
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()
MedocUtils::SimpleRegexp::SimpleRegexp |
( |
const std::string & |
exp, |
|
|
int |
flags, |
|
|
int |
nmatch = 0 |
|
) |
| |
- Parameters
-
nmatch | must be >= the number of parenthesed subexp in exp |
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