|
template<typename P > |
| Matcher (const P &pat, const Input &inp=Input(), const char *opt=NULL) |
| Construct matcher engine from a pattern or a string regex, and an input character sequence. More...
|
|
template<typename P > |
| Matcher (const P *pat, const Input &inp=Input(), const char *opt=NULL) |
| Construct matcher engine from a pattern or a string regex, and an input character sequence. More...
|
|
virtual void | reset (const char *opt=NULL) |
| Reset this matcher's state to the initial state. More...
|
|
| PatternMatcher (const PatternMatcher &matcher) |
| Copy constructor. More...
|
|
virtual | ~PatternMatcher () |
| Delete matcher, deletes pattern when owned, deletes this matcher's internal buffer. More...
|
|
virtual PatternMatcher & | pattern (const Pattern &pat) |
|
virtual PatternMatcher & | pattern (const char *regex) |
|
virtual PatternMatcher & | pattern (const std::string ®ex) |
|
const Pattern & | pattern (void) const |
|
bool | buffer (size_t blk=0) |
|
void | interactive (void) |
|
void | flush (void) |
| Flush the buffer's remaining content. More...
|
|
virtual AbstractMatcher & | input (const Input &inp) |
|
size_t | matches (void) |
|
size_t | accept (void) const |
|
const char * | text (void) const |
|
size_t | size (void) const |
|
size_t | lineno (void) const |
|
size_t | columno (void) const |
|
std::pair< size_t, std::string > | pair () const |
|
size_t | first (void) const |
|
size_t | last (void) const |
|
bool | at_bob (void) const |
|
bool | at_end (void) |
|
bool | hit_end (void) const |
|
void | set_end (bool eof) |
| Set and force the end of input state. More...
|
|
bool | at_bol (void) const |
|
void | set_bol (bool bol) |
| Set the begin of a new line state. More...
|
|
int | input (void) |
|
void | unput (char c) |
| Put back one character on the input character sequence, invalidating current match info and text. More...
|
|
const char * | rest (void) |
|
void | more (void) |
| Append the next match to the currently matched text returned by AbstractMatcher::text, when the next match found is adjacent to the current match. More...
|
|
void | less (size_t n) |
| Truncate the AbstractMatcher::text length of the match to n characters in length and reposition for next match. More...
|
|
| operator size_t () const |
|
| operator std::string () const |
|
| operator std::pair< size_t, std::string > () const |
|
bool | operator== (const char *rhs) const |
| < rhs string to compare to More...
|
|
bool | operator== (const std::string &rhs) const |
| < rhs string to compare to More...
|
|
bool | operator== (size_t rhs) const |
| < capture index to compare accept() to More...
|
|
bool | operator== (int rhs) const |
| < capture index to compare accept() to More...
|
|
bool | operator!= (const char *rhs) const |
| < rhs string to compare to More...
|
|
bool | operator!= (const std::string &rhs) const |
| < rhs string to compare to More...
|
|
bool | operator!= (size_t rhs) const |
| < capture index to compare accept() to More...
|
|
bool | operator!= (int rhs) const |
| < capture index to compare accept() to More...
|
|
|
virtual size_t | match (Method method) |
|
void | newline (size_t &col) |
| Update indentation column counter for indent() and dedent(). More...
|
|
bool | indent (size_t &col) |
|
bool | dedent (size_t &col) |
|
| PatternMatcher (const Pattern &pat, const Input &inp=Input(), const char *opt=NULL) |
| Construct a base abstract matcher from a pattern object and an input character sequence. More...
|
|
| PatternMatcher (const Pattern *pat, const Input &inp=Input(), const char *opt=NULL) |
| Construct a base abstract matcher from a pattern object pointer and an input character sequence. More...
|
|
| PatternMatcher (const char *regex, const Input &inp=Input(), const char *opt=NULL) |
| Construct a base abstract matcher from a regex pattern string and an input character sequence. More...
|
|
| PatternMatcher (const std::string ®ex, const Input &inp=Input(), const char *opt=NULL) |
| Construct a base abstract matcher from a regex pattern string and an input character sequence. More...
|
|
| AbstractMatcher (const Input &inp, const char *opt) |
| Construct a base abstract matcher. More...
|
|
void | init (const char *opt) |
| Initialize the base abstract matcher at construction. More...
|
|
virtual size_t | get (char *s, size_t n) |
|
virtual bool | wrap (void) |
|
bool | grow (size_t need=Const::BLOCK) |
| Shift or expand the internal buffer when it is too small to accommodate more input, where the buffer size is doubled when needed. More...
|
|
int | get (void) |
|
int | peek (void) |
|
void | set_current (size_t loc) |
| Set the current position to advance to the next match. More...
|
|
RE/flex matcher engine class, implements reflex::PatternMatcher pattern matching interface with scan, find, split functors and iterators.