Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::regex Class Template Reference

#include <ixlib_re.hh>

Inheritance diagram for ixion::regex::

ixion::regex_string List of all members.

Public Methods

 regex ()
 regex (regex const &src)
regex& operator= (regex const &src)
bool match (T const &candidate, TIndex from=0)
bool matchAt (T const &candidate, TIndex at=0)
TIndex getMatchIndex ()
TSize getMatchLength ()
std::string getMatch ()
TSize countBackrefs ()
getBackref (TIndex index)

Protected Attributes

std::auto_ptr<matcherParsedRegex
backref_stack BackrefStack
LastCandidate
TIndex MatchIndex
TSize MatchLength

Detailed Description

template<class T> class ixion::regex

A class implementing a generic regular expression matcher not only for strings. If you are looking for a usual regular expresion parser, look at ixion::regex_string.

If you query anything about the last match, and that last match did never happen, behavior is undefined.

Definition at line 84 of file ixlib_re.hh.


Constructor & Destructor Documentation

template<class T>
ixion::regex<T>::regex<T> ( )
 

template<class T>
ixion::regex<T>::regex<T> ( regex<T> const & src )
 


Member Function Documentation

template<class T>
TSize ixion::regex<T>::countBackrefs ( ) [inline]
 

Definition at line 380 of file ixlib_re.hh.

template<class T>
T ixion::regex<T>::getBackref ( TIndex index ) [inline]
 

Definition at line 383 of file ixlib_re.hh.

template<class T>
std::string ixion::regex<T>::getMatch ( ) [inline]
 

Definition at line 376 of file ixlib_re.hh.

template<class T>
TIndex ixion::regex<T>::getMatchIndex ( ) [inline]
 

Definition at line 370 of file ixlib_re.hh.

template<class T>
TSize ixion::regex<T>::getMatchLength ( ) [inline]
 

Definition at line 373 of file ixlib_re.hh.

template<class T>
bool ixion::regex<T>::match ( T const & candidate,
TIndex from = 0 )
 

template<class T>
bool ixion::regex<T>::matchAt ( T const & candidate,
TIndex at = 0 )
 

template<class T>
regex<T>& ixion::regex<T>::operator= ( regex<T> const & src )
 


Member Data Documentation

template<class T>
backref_stack ixion::regex<T>::BackrefStack [protected]
 

Definition at line 354 of file ixlib_re.hh.

template<class T>
T ixion::regex<T>::LastCandidate [protected]
 

Definition at line 355 of file ixlib_re.hh.

template<class T>
TIndex ixion::regex<T>::MatchIndex [protected]
 

Definition at line 356 of file ixlib_re.hh.

template<class T>
TSize ixion::regex<T>::MatchLength [protected]
 

Definition at line 357 of file ixlib_re.hh.

template<class T>
std::auto_ptr<matcher> ixion::regex<T>::ParsedRegex [protected]
 

Definition at line 353 of file ixlib_re.hh.


The documentation for this class was generated from the following file:
Generated at Fri Jun 29 18:49:19 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001