ddc
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TiXmlString Class Reference

#include <tinystr.h>

Inheritance diagram for TiXmlString:
Inheritance graph
[legend]

Public Types

enum  { notfound = 0xffffffff, npos = notfound }
 

Public Member Functions

 TiXmlString (const char *instring)
 
 TiXmlString ()
 
 TiXmlString (const TiXmlString &copy)
 
 ~ TiXmlString ()
 
const char * c_str () const
 
unsigned length () const
 
void operator= (const char *content)
 
void operator= (const TiXmlString &copy)
 
TiXmlStringoperator+= (const char *suffix)
 
TiXmlStringoperator+= (char single)
 
TiXmlStringoperator+= (TiXmlString &suffix)
 
bool operator== (const TiXmlString &compare) const
 
bool operator< (const TiXmlString &compare) const
 
bool operator> (const TiXmlString &compare) const
 
bool empty () const
 
const char & at (unsigned index) const
 
unsigned find (char lookup) const
 
unsigned find (char tofind, unsigned offset) const
 
void reserve (unsigned size)
 
char & operator[] (unsigned index) const
 
void append (const char *str, int len)
 

Protected Member Functions

unsigned assign_new_size (unsigned minimum_to_allocate)
 
void empty_it ()
 
void append (const char *suffix)
 
void append (const TiXmlString &suffix)
 
void append (char single)
 

Protected Attributes

char * cstring
 
unsigned allocated
 
unsigned current_length
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
notfound 
npos 

Constructor & Destructor Documentation

◆ TiXmlString() [1/3]

TiXmlString::TiXmlString ( const char *  instring)

References allocated, cstring, and current_length.

◆ TiXmlString() [2/3]

TiXmlString::TiXmlString ( )
inline

References allocated, cstring, and current_length.

◆ TiXmlString() [3/3]

TiXmlString::TiXmlString ( const TiXmlString copy)

References allocated, cstring, current_length, and length().

Here is the call graph for this function:

◆ ~ TiXmlString()

TiXmlString::~ TiXmlString ( )
inline

References empty_it().

Here is the call graph for this function:

Member Function Documentation

◆ c_str()

const char* TiXmlString::c_str ( ) const
inline

◆ length()

unsigned TiXmlString::length ( ) const
inline

References allocated, current_length, and operator=().

Referenced by append(), at(), TiXmlText::Blank(), empty(), find(), operator=(), operator[](), and TiXmlString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

void TiXmlString::operator= ( const char *  content)

References allocated, cstring, current_length, and empty_it().

Referenced by length().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [2/2]

void TiXmlString::operator= ( const TiXmlString copy)

References allocated, c_str(), cstring, current_length, empty_it(), and length().

Here is the call graph for this function:

◆ operator+=() [1/3]

TiXmlString& TiXmlString::operator+= ( const char *  suffix)
inline

References append().

Here is the call graph for this function:

◆ operator+=() [2/3]

TiXmlString& TiXmlString::operator+= ( char  single)
inline

References append().

Here is the call graph for this function:

◆ operator+=() [3/3]

TiXmlString& TiXmlString::operator+= ( TiXmlString suffix)
inline

References append(), operator<(), operator==(), and operator>().

Here is the call graph for this function:

◆ operator==()

bool TiXmlString::operator== ( const TiXmlString compare) const

References allocated, and cstring.

Referenced by operator+=().

Here is the caller graph for this function:

◆ operator<()

bool TiXmlString::operator< ( const TiXmlString compare) const

References allocated, and cstring.

Referenced by operator+=().

Here is the caller graph for this function:

◆ operator>()

bool TiXmlString::operator> ( const TiXmlString compare) const

References allocated, and cstring.

Referenced by operator+=().

Here is the caller graph for this function:

◆ empty()

bool TiXmlString::empty ( void  ) const
inline

References length().

Referenced by TiXmlAttribute::Next(), TiXmlAttribute::Previous(), TiXmlDeclaration::Print(), and TiXmlDeclaration::StreamOut().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ at()

const char& TiXmlString::at ( unsigned  index) const
inline

References cstring, and length().

Here is the call graph for this function:

◆ find() [1/2]

unsigned TiXmlString::find ( char  lookup) const
inline

Referenced by TiXmlAttribute::Print(), and TiXmlAttribute::StreamOut().

Here is the caller graph for this function:

◆ find() [2/2]

unsigned TiXmlString::find ( char  tofind,
unsigned  offset 
) const

References cstring, length(), and notfound.

Here is the call graph for this function:

◆ reserve()

void TiXmlString::reserve ( unsigned  size)
inline

References allocated, cstring, current_length, and empty_it().

Here is the call graph for this function:

◆ operator[]()

char& TiXmlString::operator[] ( unsigned  index) const
inline

References cstring, and length().

Here is the call graph for this function:

◆ append() [1/4]

void TiXmlString::append ( const char *  str,
int  len 
)

References allocated, assign_new_size(), cstring, current_length, and length().

Referenced by append(), empty_it(), operator+=(), and TiXmlOutStream::operator<<().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign_new_size()

unsigned TiXmlString::assign_new_size ( unsigned  minimum_to_allocate)
inlineprotected

Referenced by append().

Here is the caller graph for this function:

◆ empty_it()

void TiXmlString::empty_it ( )
inlineprotected

References append(), and cstring.

Referenced by operator=(), reserve(), and ~ TiXmlString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ append() [2/4]

void TiXmlString::append ( const char *  suffix)
protected

References allocated, assign_new_size(), cstring, current_length, and length().

Here is the call graph for this function:

◆ append() [3/4]

void TiXmlString::append ( const TiXmlString suffix)
inlineprotected

References append(), and c_str().

Here is the call graph for this function:

◆ append() [4/4]

void TiXmlString::append ( char  single)
inlineprotected

References append(), and current_length.

Here is the call graph for this function:

Member Data Documentation

◆ cstring

char* TiXmlString::cstring
protected

◆ allocated

unsigned TiXmlString::allocated
protected

◆ current_length

unsigned TiXmlString::current_length
protected

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