SourcePro® API Reference Guide

 
List of all members | Public Types | Static Public Member Functions
RWTRegexTraits< T > Class Template Reference

Defines static, inline methods for returning specific regular expression character values. More...

#include <rw/tools/regex/defs.h>

Public Types

typedef T Char
 

Static Public Member Functions

static Char a ()
 
static Char A ()
 
static Char b ()
 
static Char B ()
 
static Char blank ()
 
static Char c ()
 
static Char C ()
 
static Char caret ()
 
static Char cbracket ()
 
static Char ccurly ()
 
static Char comma ()
 
static Char cparen ()
 
static Char d ()
 
static Char D ()
 
static Char dash ()
 
static Char dollar ()
 
static Char dot ()
 
static Char e ()
 
static Char E ()
 
static Char eight ()
 
static Char escape ()
 
static Char f ()
 
static Char F ()
 
static Char five ()
 
static Char four ()
 
static Char n ()
 
static Char newline ()
 
static Char nine ()
 
static Char null ()
 
static Char obracket ()
 
static Char ocurly ()
 
static Char one ()
 
static Char oparen ()
 
static Char plus ()
 
static Char question ()
 
static Char r ()
 
static Char seven ()
 
static Char six ()
 
static Char star ()
 
static Char t ()
 
static Char three ()
 
static Char two ()
 
static Char u ()
 
static Char vbar ()
 
static Char x ()
 
static Char zero ()
 

Detailed Description

template<class T>
class RWTRegexTraits< T >

Class RWTRegexTraits defines static, inline methods for returning specific RE character values. These values must be defined and include

In addition, any class used as a traits class must define some special methods for converting and comparing characters.

Synopsis
#include <rw/tools/regex.h>
#include <rw/cstring.h>
(Abstract base class. No instances are created.)
Persistence
None

Member Typedef Documentation

template<class T>
typedef T RWTRegexTraits< T >::Char

Typedef for the character type.

Member Function Documentation

template<class T>
static Char RWTRegexTraits< T >::a ( )
inlinestatic

Returns 'a'.

template<class T>
static Char RWTRegexTraits< T >::A ( )
inlinestatic

Returns 'A'.

template<class T>
static Char RWTRegexTraits< T >::b ( )
inlinestatic

Returns 'b'.

template<class T>
static Char RWTRegexTraits< T >::B ( )
inlinestatic

Returns 'B'.

template<class T>
static Char RWTRegexTraits< T >::blank ( )
inlinestatic

Returns ' '.

template<class T>
static Char RWTRegexTraits< T >::c ( )
inlinestatic

Returns 'c'.

template<class T>
static Char RWTRegexTraits< T >::C ( )
inlinestatic

Returns 'C'.

template<class T>
static Char RWTRegexTraits< T >::caret ( )
inlinestatic

Returns '^'.

template<class T>
static Char RWTRegexTraits< T >::cbracket ( )
inlinestatic

Returns ']'.

template<class T>
static Char RWTRegexTraits< T >::ccurly ( )
inlinestatic

Returns '}'.

template<class T>
static Char RWTRegexTraits< T >::comma ( )
inlinestatic

Returns ',' .

template<class T>
static Char RWTRegexTraits< T >::cparen ( )
inlinestatic

Returns ')'.

template<class T>
static Char RWTRegexTraits< T >::d ( )
inlinestatic

Returns 'd'.

template<class T>
static Char RWTRegexTraits< T >::D ( )
inlinestatic

Returns 'D'.

template<class T>
static Char RWTRegexTraits< T >::dash ( )
inlinestatic

Returns '-'.

template<class T>
static Char RWTRegexTraits< T >::dollar ( )
inlinestatic

Returns '$'.

template<class T>
static Char RWTRegexTraits< T >::dot ( )
inlinestatic

Returns '.'.

template<class T>
static Char RWTRegexTraits< T >::e ( )
inlinestatic

Returns 'e'.

template<class T>
static Char RWTRegexTraits< T >::E ( )
inlinestatic

Returns 'E'.

template<class T>
static Char RWTRegexTraits< T >::eight ( )
inlinestatic

Returns '8'.

template<class T>
static Char RWTRegexTraits< T >::escape ( )
inlinestatic

Returns '\'.

template<class T>
static Char RWTRegexTraits< T >::f ( )
inlinestatic

Returns 'f'.

template<class T>
static Char RWTRegexTraits< T >::F ( )
inlinestatic

Returns 'F'.

template<class T>
static Char RWTRegexTraits< T >::five ( )
inlinestatic

Returns '5'.

template<class T>
static Char RWTRegexTraits< T >::four ( )
inlinestatic

Returns '4'.

template<class T>
static Char RWTRegexTraits< T >::n ( )
inlinestatic

Returns 'n'.

template<class T>
static Char RWTRegexTraits< T >::newline ( )
inlinestatic

Returns '\n'.

template<class T>
static Char RWTRegexTraits< T >::nine ( )
inlinestatic

Returns '9'.

template<class T>
static Char RWTRegexTraits< T >::null ( )
inlinestatic

Returns '\0'.

template<class T>
static Char RWTRegexTraits< T >::obracket ( )
inlinestatic

Returns '['.

template<class T>
static Char RWTRegexTraits< T >::ocurly ( )
inlinestatic

Returns '{'.

template<class T>
static Char RWTRegexTraits< T >::one ( )
inlinestatic

Returns '1'.

template<class T>
static Char RWTRegexTraits< T >::oparen ( )
inlinestatic

Returns '('.

template<class T>
static Char RWTRegexTraits< T >::plus ( )
inlinestatic

Returns '+'.

template<class T>
static Char RWTRegexTraits< T >::question ( )
inlinestatic

Returns '?'.

template<class T>
static Char RWTRegexTraits< T >::r ( )
inlinestatic

Returns 'r'.

template<class T>
static Char RWTRegexTraits< T >::seven ( )
inlinestatic

Returns '7'.

template<class T>
static Char RWTRegexTraits< T >::six ( )
inlinestatic

Returns '6'.

template<class T>
static Char RWTRegexTraits< T >::star ( )
inlinestatic

Returns '*'.

template<class T>
static Char RWTRegexTraits< T >::t ( )
inlinestatic

Returns 't'.

template<class T>
static Char RWTRegexTraits< T >::three ( )
inlinestatic

Returns '3'.

template<class T>
static Char RWTRegexTraits< T >::two ( )
inlinestatic

Returns '2'.

template<class T>
static Char RWTRegexTraits< T >::u ( )
inlinestatic

Returns 'u'.

template<class T>
static Char RWTRegexTraits< T >::vbar ( )
inlinestatic

Returns '|'.

template<class T>
static Char RWTRegexTraits< T >::x ( )
inlinestatic

Returns 'x'.

template<class T>
static Char RWTRegexTraits< T >::zero ( )
inlinestatic

Returns '0'.

Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.