Logo Search packages:      
Sourcecode: yate version File versions  Download package

TelEngine::Regexp Class Reference

#include <telengine.h>

Inheritance diagram for TelEngine::Regexp:

TelEngine::String TelEngine::GenObject

List of all members.


Detailed Description

A regexp matching class.

A regular expression matching class.

Definition at line 1029 of file telengine.h.


Public Member Functions

Stringassign (const char *value, int len=-1)
char at (int index) const
const char * c_str () const
void clear ()
bool compile ()
virtual void destruct ()
bool endsWith (const char *what, bool wordBreak=false) const
int find (const char *what, unsigned int offs=0) const
int find (char what, unsigned int offs=0) const
unsigned int hash () const
bool isCaseInsensitive () const
bool isExtended () const
unsigned int length () const
int matchCount () const
bool matches (Regexp &rexp)
virtual bool matches (const String &value) const
bool matches (const char *value)
int matchLength (int index=0) const
int matchOffset (int index=0) const
String matchString (int index=0) const
String msgEscape (char extraEsc=0) const
String msgUnescape (int *errptr=0, char extraEsc=0) const
bool null () const
bool operator &= (const char *value) const
 operator const char * () const
bool operator!= (const String &value) const
bool operator!= (const char *value) const
Stringoperator+= (bool value)
Stringoperator+= (unsigned int value)
Stringoperator+= (int value)
Stringoperator+= (char value)
Stringoperator+= (const char *value)
Stringoperator<< (bool value)
Stringoperator<< (unsigned int value)
Stringoperator<< (int value)
Stringoperator<< (char value)
Stringoperator<< (const char *value)
Regexpoperator= (const char *value)
bool operator== (const String &value) const
bool operator== (const char *value) const
Stringoperator>> (bool &store)
Stringoperator>> (unsigned int &store)
Stringoperator>> (int &store)
Stringoperator>> (char &store)
Stringoperator>> (const char *skip)
char operator[] (int index) const
bool operator|= (const char *value) const
 Regexp (const Regexp &value)
 Regexp (const char *value, bool extended=false, bool insensitive=false)
 Regexp ()
String replaceMatches (const String &templ) const
int rfind (char what) const
const char * safe () const
void setFlags (bool extended, bool insensitive)
ObjListsplit (char separator, bool emptyOK=true) const
bool startSkip (const char *what, bool wordBreak=true)
bool startsWith (const char *what, bool wordBreak=false) const
String substr (int offs, int len=-1) const
bool toBoolean (bool defvalue=false) const
int toInteger (const TokenDict *tokens, int defvalue=0, int base=0) const
int toInteger (int defvalue=0, int base=0) const
StringtoLower ()
virtual const StringtoString () const
StringtoUpper ()
StringtrimBlanks ()
virtual ~Regexp ()

Static Public Member Functions

static const Stringempty ()
static unsigned int hash (const char *value)
static String msgEscape (const char *str, char extraEsc=0)
static String msgUnescape (const char *str, int *errptr=0, char extraEsc=0)

Protected Member Functions

virtual void changed ()

Private Member Functions

void cleanup ()
bool matches (const char *value, StringMatchPrivate *matches)

Private Attributes

int m_flags
void * m_regexp

Friends

class String

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

Generated by  Doxygen 1.6.0   Back to index