TDME2  1.9.200
Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TiXmlString Class Reference

#include </home/andreas/Development/drewke.net/tdme2/ext/tinyxml/tinystr.h>

Inheritance diagram for TiXmlString:
Inheritance graph
Collaboration diagram for TiXmlString:
Collaboration graph

Classes

struct  Rep
 

Public Types

typedef size_t size_type
 

Public Member Functions

 TiXmlString ()
 
 TiXmlString (const TiXmlString &copy)
 
TIXML_EXPLICIT TiXmlString (const char *copy)
 
TIXML_EXPLICIT TiXmlString (const char *str, size_type len)
 
 ~TiXmlString ()
 
TiXmlStringoperator= (const char *copy)
 
TiXmlStringoperator= (const TiXmlString &copy)
 
TiXmlStringoperator+= (const char *suffix)
 
TiXmlStringoperator+= (char single)
 
TiXmlStringoperator+= (const TiXmlString &suffix)
 
const char * c_str () const
 
const char * data () const
 
size_type length () const
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
const char & at (size_type index) const
 
char & operator[] (size_type index) const
 
size_type find (char lookup) const
 
size_type find (char tofind, size_type offset) const
 
void clear ()
 
void reserve (size_type cap)
 
TiXmlStringassign (const char *str, size_type len)
 
TiXmlStringappend (const char *str, size_type len)
 
void swap (TiXmlString &other)
 

Static Public Attributes

static const size_type npos = static_cast< TiXmlString::size_type >(-1)
 

Private Member Functions

void init (size_type sz)
 
void set_size (size_type sz)
 
char * start () const
 
char * finish () const
 
void init (size_type sz, size_type cap)
 
void quit ()
 

Private Attributes

Reprep_
 

Static Private Attributes

static Rep nullrep_ = { 0, 0, { '\0' } }
 

Detailed Description

Definition at line 57 of file tinystr.h.

Member Typedef Documentation

◆ size_type

typedef size_t size_type

Definition at line 61 of file tinystr.h.

Constructor & Destructor Documentation

◆ TiXmlString() [1/4]

TiXmlString ( )
inline

Definition at line 68 of file tinystr.h.

◆ TiXmlString() [2/4]

TiXmlString ( const TiXmlString copy)
inline

Definition at line 73 of file tinystr.h.

◆ TiXmlString() [3/4]

TIXML_EXPLICIT TiXmlString ( const char *  copy)
inline

Definition at line 80 of file tinystr.h.

◆ TiXmlString() [4/4]

TIXML_EXPLICIT TiXmlString ( const char *  str,
size_type  len 
)
inline

Definition at line 87 of file tinystr.h.

◆ ~TiXmlString()

~TiXmlString ( )
inline

Definition at line 94 of file tinystr.h.

Member Function Documentation

◆ operator=() [1/2]

TiXmlString& operator= ( const char *  copy)
inline

Definition at line 99 of file tinystr.h.

◆ operator=() [2/2]

TiXmlString& operator= ( const TiXmlString copy)
inline

Definition at line 104 of file tinystr.h.

◆ operator+=() [1/3]

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

Definition at line 111 of file tinystr.h.

◆ operator+=() [2/3]

TiXmlString& operator+= ( char  single)
inline

Definition at line 117 of file tinystr.h.

◆ operator+=() [3/3]

TiXmlString& operator+= ( const TiXmlString suffix)
inline

Definition at line 123 of file tinystr.h.

◆ c_str()

const char* c_str ( ) const
inline

Definition at line 130 of file tinystr.h.

◆ data()

const char* data ( ) const
inline

Definition at line 133 of file tinystr.h.

◆ length()

size_type length ( ) const
inline

Definition at line 136 of file tinystr.h.

◆ size()

size_type size ( ) const
inline

Definition at line 139 of file tinystr.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 142 of file tinystr.h.

◆ capacity()

size_type capacity ( ) const
inline

Definition at line 145 of file tinystr.h.

◆ at()

const char& at ( size_type  index) const
inline

Definition at line 149 of file tinystr.h.

◆ operator[]()

char& operator[] ( size_type  index) const
inline

Definition at line 156 of file tinystr.h.

◆ find() [1/2]

size_type find ( char  lookup) const
inline

Definition at line 163 of file tinystr.h.

◆ find() [2/2]

size_type find ( char  tofind,
size_type  offset 
) const
inline

Definition at line 169 of file tinystr.h.

◆ clear()

void clear ( )
inline

Definition at line 180 of file tinystr.h.

◆ reserve()

void reserve ( size_type  cap)

Definition at line 38 of file tinystr.cpp.

◆ assign()

TiXmlString & assign ( const char *  str,
size_type  len 
)

Definition at line 50 of file tinystr.cpp.

◆ append()

TiXmlString & append ( const char *  str,
size_type  len 
)

Definition at line 69 of file tinystr.cpp.

◆ swap()

void swap ( TiXmlString other)
inline

Definition at line 199 of file tinystr.h.

◆ init() [1/2]

void init ( size_type  sz)
inlineprivate

Definition at line 208 of file tinystr.h.

◆ set_size()

void set_size ( size_type  sz)
inlineprivate

Definition at line 209 of file tinystr.h.

◆ start()

char* start ( ) const
inlineprivate

Definition at line 210 of file tinystr.h.

◆ finish()

char* finish ( ) const
inlineprivate

Definition at line 211 of file tinystr.h.

◆ init() [2/2]

void init ( size_type  sz,
size_type  cap 
)
inlineprivate

Definition at line 219 of file tinystr.h.

◆ quit()

void quit ( )
inlineprivate

Definition at line 241 of file tinystr.h.

Member Data Documentation

◆ npos

const TiXmlString::size_type npos = static_cast< TiXmlString::size_type >(-1)
static

Definition at line 64 of file tinystr.h.

◆ rep_

Rep* rep_
private

Definition at line 251 of file tinystr.h.

◆ nullrep_

TiXmlString::Rep nullrep_ = { 0, 0, { '\0' } }
staticprivate

Definition at line 252 of file tinystr.h.


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