Module: Essential Tools Module Group: String Processing Classes
Does not inherit
#include <rw/tools/regex.h> #include <rw/cstring.h> (Abstract base class. No instances are created.)
Class RWTRegexTraits<T> 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.
None
typedef char Char; typedef int IntType;
None
NOTE -- All methods must be defined in a regular expression character traits class.
static inline void assign(char& x, const char& y);
Defines how to assign x the value of y.
static inline bool eq(const char& x, const char& y);
Returns true or false for (x == y).
Defines how to compare x and y for equality.
static inline bool lt(const char& x, const char& y);
Returns true or false for (x < y).
Defines how to determine if x is less than y.
static inline char to_char_type(const IntType& i);
Returns char i.
Defines how to convert a character that is represented as an IntType value to a character element.
static inline IntType to_Int_Type(const char& c);
Returns IntType c.
Defines how to convert a character element into an IntType value.
static inline const Char null();
Returns "\0".
static inline const Char oparen();
Returns "(".
static inline const Char cparen();
Returns ")".
static inline const Char obracket();
Returns "[".
static inline const Char cbracket();
Returns "]".
static inline const Char ocurly();
Returns "{".
static inline const Char ccurly();
Returns "}".
static inline const Char dot();
Returns ".".
static inline const Char star();
Returns "*".
static inline const Char plus();
Returns "+".
static inline const Char question();
Returns "?".
static inline const Char vbar();
Returns "|".
static inline const Char dash();
Returns "-".
static inline const Char comma();
Returns ",".
static inline const Char carat();
Returns "^".
static inline const Char dollar();
Returns "$".
static inline const Char escape();
Returns "\\".
static inline const Char newline();
Returns "\n".
static inline const Char blank();
Returns " ".
static inline const Char zero();
Returns "0".
static inline const Char one();
Returns "1".
static inline const Char two();
Returns "2".
static inline const Char three();
Returns "3".
static inline const Char four();
Returns "4".
static inline const Char five();
Returns "5".
static inline const Char six();
Returns "6".
static inline const Char seven();
Returns "7".
static inline const Char eight();
Returns "8".
static inline const Char nine();
Returns "9".
static inline const Char a();
Returns "a".
static inline const Char A();
Returns "A".
static inline const Char b();
Returns "b".
static inline const Char B();
Returns "B".
static inline const Char c();
Returns "c".
static inline const Char C();
Returns "C".
static inline const Char d();
Returns "d".
static inline const Char D();
Returns "D".
static inline const Char e();
Returns "e".
static inline const Char E();
Returns "E".
static inline const Char f();
Returns "f".
static inline const Char F();
Returns "F".
static inline const Char n();
Returns "n".
static inline const Char r();
Returns "r".
static inline const Char t();
Returns "t".
static inline const Char u();
Returns "u".
static inline const Char x();
Returns "x".
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.