30 #ifndef TIXML_STRING_INCLUDED
31 #define TIXML_STRING_INCLUDED
68 const char * c_str ()
const
76 unsigned length ()
const
78 return ( allocated ) ? current_length : 0;
82 void operator = (
const char * content);
107 bool operator == (
const TiXmlString & compare)
const;
108 bool operator < (
const TiXmlString & compare)
const;
109 bool operator > (
const TiXmlString & compare)
const;
114 return length () ?
false :
true;
123 const char& at (
unsigned index)
const
125 assert( index < length ());
126 return cstring [index];
130 unsigned find (
char lookup)
const
132 return find (lookup, 0);
136 unsigned find (
char tofind,
unsigned offset)
const;
141 void reserve (
unsigned size)
147 cstring =
new char [size];
154 char& operator [] (
unsigned index)
const
156 assert( index < length ());
157 return cstring [index];
161 enum { notfound = 0xffffffff,
164 void append (
const char *str,
int len );
173 unsigned current_length;
177 unsigned assign_new_size (
unsigned minimum_to_allocate)
179 return minimum_to_allocate * 2;
192 void append (
const char *suffix );
197 append (suffix . c_str ());
204 smallstr [0] = single;
235 #endif // TIXML_STRING_INCLUDED
236 #endif // TIXML_USE_STL
Definition: tinystr.h:215
void append(const char *str, int len)
Checks if a TiXmlString contains only whitespace (same rules as isspace)
Definition: tinystr.cpp:138