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

TelEngine::String Class Reference

#include <telengine.h>

Inheritance diagram for TelEngine::String:

TelEngine::GenObject TelEngine::Configuration TelEngine::MessageHandler TelEngine::NamedList TelEngine::NamedString TelEngine::Regexp TelEngine::SIPDialog TelEngine::MessageRelay TelEngine::Message

List of all members.


Detailed Description

A C-style string handling class.

A simple string handling class for C style (one byte) strings. For simplicity and read speed no copy-on-write is performed. Strings have hash capabilities and comparations are using the hash for fast inequality check.

Definition at line 468 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 ()
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
unsigned int length () const
int matchCount () const
bool matches (Regexp &rexp)
virtual bool matches (const String &value) const
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)
Stringoperator= (bool value)
Stringoperator= (unsigned int value)
Stringoperator= (int value)
Stringoperator= (char value)
Stringoperator= (const char *value)
Stringoperator= (const String *value)
Stringoperator= (const String &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
String replaceMatches (const String &templ) const
int rfind (char what) const
const char * safe () const
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 (const String *value)
 String (const String &value)
 String (bool value)
 String (unsigned int value)
 String (int value)
 String (char value, unsigned int repeat=1)
 String (const char *value, int len=-1)
 String ()
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 ~String ()

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 clearMatches ()

Private Attributes

unsigned int m_hash
unsigned int m_length
StringMatchPrivate * m_matches
char * m_string

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

Generated by  Doxygen 1.6.0   Back to index