Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

Match Class Reference

#include <P:/Dev2/freelibs/b64/1.4/src/shwild/matches.hpp>

Inheritance diagram for Match:

MatchEnd MatchLiteral MatchRange MatchWild MatchWild1 MatchNotRange

List of all members.


Detailed Description

Root class of the match hierarchy; INTERNAL CLASS.


Public Member Functions

virtual void setNext (Match *next)=0
 Sets the next Match in the series.
virtual bool match (char const *first, char const *last) const =0
 Attempt full match of the given string range.
virtual char const * nextSub (char const *first, char const *last, size_t *nextLen) const =0
 Attempt partial match of the given string range.


Member Function Documentation

virtual void setNext ( Match next  )  [pure virtual]

Sets the next Match in the series.

Implemented in MatchWild, MatchWild1, MatchRange, MatchEnd, and MatchLiteral.

virtual bool match ( char const *  first,
char const *  last 
) const [pure virtual]

Attempt full match of the given string range.

The instance matches the given string range against its criteria, and the criteria of all its down-the-line peers

Implemented in MatchWild, MatchWild1, MatchRange, MatchNotRange, MatchEnd, and MatchLiteral.

virtual char const* nextSub ( char const *  first,
char const *  last,
size_t *  nextLen 
) const [pure virtual]

Attempt partial match of the given string range.

The instance matches the given string range against its own criteria. If the match is successful, *nextLen is set to the matched length, and the return value is first + *nextLen

Implemented in MatchWild, MatchWild1, MatchRange, MatchEnd, and MatchLiteral.


The documentation for this class was generated from the following file:

b64 Library documentation © Synesis Software Pty Ltd, 2004-2012