Scopira
20080306
|
#include <regex.h>
Public Member Functions | |
regex (void) | |
default ctor, call compile() after | |
regex (const std::string &pattern) | |
initing ctor that calls compile() | |
~regex () | |
dtor | |
bool | failed (void) const |
in a failed state? | |
bool | compile (const std::string &pattern) |
compile the given pattern. clears any previous ones, true on success | |
bool | match (const std::string &s) const |
check for a match (inline this?) | |
bool | match (const std::string &s, regmatch &mat) const |
check for a match, spitting out the output into the match class | |
a compiled regular expression