30 #ifndef TIXML_STRING_INCLUDED 31 #define TIXML_STRING_INCLUDED 69 const char * c_str ()
const 77 size_t length ()
const 79 return ( allocated ) ? current_length : 0;
83 void operator = (
const char * content);
108 bool operator == (
const TiXmlString & compare)
const;
109 bool operator == (
const char* compare)
const;
110 bool operator < (
const TiXmlString & compare)
const;
111 bool operator > (
const TiXmlString & compare)
const;
116 return length () ? false :
true;
120 const char& at (
unsigned index)
const 122 assert( index < length ());
123 return cstring [index];
127 unsigned find (
char lookup)
const 129 return find (lookup, 0);
133 unsigned find (
char tofind,
unsigned offset)
const;
138 void reserve (
unsigned size)
144 cstring =
new char [size];
151 char& operator [] (
unsigned index)
const 153 assert( index < length ());
154 return cstring [index];
158 enum { notfound = 0xffffffff,
161 void append (
const char *str,
size_t len );
170 size_t current_length;
174 size_t assign_new_size (
size_t minimum_to_allocate)
176 return minimum_to_allocate * 2;
189 void append (
const char *suffix );
194 append (suffix . c_str ());
198 void append (
char single)
200 if ( cstring && current_length < (allocated-1) )
202 cstring[ current_length ] = single;
204 cstring[ current_length ] = 0;
209 smallstr [0] = single;
236 append (in . c_str ());
243 #endif // TIXML_STRING_INCLUDED 244 #endif // TIXML_USE_STL Definition: tinystr.h:221
Definition: ChannelFileList.h:12