SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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

  • each of the regular expression special characters
  • numeric and hex digits
  • some escape sequences

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

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

Member Typedef Documentation

◆ Char

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

Typedef for the character type.

Member Function Documentation

◆ A()

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

Returns 'A'.

◆ a()

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

Returns 'a'.

◆ B()

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

Returns 'B'.

◆ b()

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

Returns 'b'.

◆ blank()

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

Returns ' '.

◆ C()

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

Returns 'C'.

◆ c()

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

Returns 'c'.

◆ caret()

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

Returns '^'.

◆ cbracket()

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

Returns ']'.

◆ ccurly()

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

Returns '}'.

◆ comma()

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

Returns ',' .

◆ cparen()

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

Returns ')'.

◆ D()

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

Returns 'D'.

◆ d()

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

Returns 'd'.

◆ dash()

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

Returns '-'.

◆ dollar()

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

Returns '$'.

◆ dot()

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

Returns '.'.

◆ E()

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

Returns 'E'.

◆ e()

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

Returns 'e'.

◆ eight()

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

Returns '8'.

◆ escape()

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

Returns '\'.

◆ F()

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

Returns 'F'.

◆ f()

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

Returns 'f'.

◆ five()

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

Returns '5'.

◆ four()

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

Returns '4'.

◆ n()

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

Returns 'n'.

◆ newline()

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

Returns '\n'.

◆ nine()

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

Returns '9'.

◆ null()

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

Returns '\0'.

◆ obracket()

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

Returns '['.

◆ ocurly()

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

Returns '{'.

◆ one()

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

Returns '1'.

◆ oparen()

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

Returns '('.

◆ plus()

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

Returns '+'.

◆ question()

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

Returns '?'.

◆ r()

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

Returns 'r'.

◆ seven()

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

Returns '7'.

◆ six()

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

Returns '6'.

◆ star()

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

Returns '*'.

◆ t()

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

Returns 't'.

◆ three()

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

Returns '3'.

◆ two()

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

Returns '2'.

◆ u()

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

Returns 'u'.

◆ vbar()

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

Returns '|'.

◆ x()

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

Returns 'x'.

◆ zero()

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

Returns '0'.

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