#include <tinystr.h>
Inheritance diagram for TiXmlString:
Public Types | |
typedef size_t | size_type |
Public Member Functions | |
TiXmlString () | |
TiXmlString (const TiXmlString ©) | |
TIXML_EXPLICIT | TiXmlString (const char *copy) |
TIXML_EXPLICIT | TiXmlString (const char *str, size_type len) |
~TiXmlString () | |
TiXmlString & | operator= (const char *copy) |
TiXmlString & | operator= (const TiXmlString ©) |
TiXmlString & | operator+= (const char *suffix) |
TiXmlString & | operator+= (char single) |
TiXmlString & | operator+= (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) |
TiXmlString & | assign (const char *str, size_type len) |
TiXmlString & | append (const char *str, size_type len) |
void | swap (TiXmlString &other) |
Static Public Attributes | |
const size_type | npos = static_cast< 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 | |
Rep * | rep_ |
Static Private Attributes | |
Rep | nullrep_ = { 0, 0, '\0' } |
|
|
|
|
|
|
|
Definition at line 90 of file tinystr.h. References TIXML_EXPLICIT. |
|
Definition at line 97 of file tinystr.h. References TIXML_EXPLICIT. |
|
|
|
Definition at line 72 of file tinystr.cpp. References capacity(), finish(), length(), reserve(), set_size(), and size_type. Referenced by operator+(). |
|
Definition at line 53 of file tinystr.cpp. References capacity(), init(), set_size(), size_type, start(), and swap(). |
|
|
|
Definition at line 142 of file tinystr.h. Referenced by main(), operator<(), and operator==(). |
|
|
|
|
|
Definition at line 145 of file tinystr.h. Referenced by operator+=(), reserve(), and TiXmlString(). |
|
|
|
|
|
|
|
Definition at line 223 of file tinystr.h. References TiXmlString::Rep::size, and TiXmlString::Rep::str. Referenced by append(). |
|
Definition at line 231 of file tinystr.h. References TiXmlString::Rep::capacity, and TiXmlString::Rep::str. |
|
|
|
Definition at line 148 of file tinystr.h. Referenced by append(), operator+(), operator+=(), operator=(), operator==(), reserve(), and TiXmlString(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 41 of file tinystr.cpp. References capacity(), data(), init(), length(), start(), and swap(). Referenced by append(), and operator+(). |
|
Definition at line 221 of file tinystr.h. References TiXmlString::Rep::str. |
|
|
|
Definition at line 222 of file tinystr.h. References TiXmlString::Rep::str. Referenced by assign(), operator=(), and reserve(). |
|
Definition at line 211 of file tinystr.h. References rep_. |
|
Definition at line 35 of file tinystr.cpp. |
|
Definition at line 38 of file tinystr.cpp. |
|
Definition at line 263 of file tinystr.h. Referenced by swap(). |