absmatcher.h File Reference

updated Thu Jan 26 2017
 
Classes | Namespaces | Macros | Functions
absmatcher.h File Reference

RE/flex abstract matcher base class and pattern matcher class. More...

#include <reflex/debug.h>
#include <reflex/input.h>
#include <reflex/traits.h>
#include <cstdlib>
#include <cctype>
#include <iterator>
Include dependency graph for absmatcher.h:
This graph shows which files directly or indirectly include this file:

Classes

class  reflex::AbstractMatcher
 The abstract matcher base class template defines an interface for all pattern matcher engines. More...
 
struct  reflex::AbstractMatcher::Const
 AbstractMatcher::Const common constants. More...
 
struct  reflex::AbstractMatcher::Option
 AbstractMatcher::Options for matcher engines. More...
 
class  reflex::AbstractMatcher::Iterator< T >
 AbstractMatcher::Iterator class for scanning, searching, and splitting input character sequences. More...
 
class  reflex::AbstractMatcher::Operation
 AbstractMatcher::Operation functor to match input to a pattern, also provides a (const) AbstractMatcher::iterator to iterate over matches. More...
 
class  reflex::PatternMatcher< P >
 The pattern matcher class template extends abstract matcher base class. More...
 

Namespaces

 reflex
 

Macros

#define WITH_REALLOC
 

Functions

std::string reflex::regroup (const std::string &regex)
 Regroup: convert a string regex to a regex with group captures only for the outermost (top-level) choices. All outermost (top-level) choices X1, X2, ... Xn in a regex X1|X2|...|Xn are regrouped such that X1|X2|...|Xn => (X1)|(X2)|...|(Xn). Innermost (nested) group captures (Y) are converted to non-captured (Y) => (?:Y). All existing non-capturing groups are retained. For example, a|b(c)|(?:d) => (a)|(b(?:c))|((?:d)). More...
 
int reflex::isword (int c)
 Check word character. More...
 

Detailed Description

RE/flex abstract matcher base class and pattern matcher class.

Author
Robert van Engelen - engel.nosp@m.en@g.nosp@m.enivi.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

#define WITH_REALLOC