28 #ifndef TIXML_STRING_INCLUDED
29 #define TIXML_STRING_INCLUDED
38 #if defined(_MSC_VER) && (_MSC_VER >= 1200 )
40 #define TIXML_EXPLICIT explicit
41 #elif defined(__GNUC__) && (__GNUC__ >= 3 )
43 #define TIXML_EXPLICIT explicit
45 #define TIXML_EXPLICIT
90 memcpy(
start(), str, len);
119 return append(&single, 1);
151 assert( index <
length() );
158 assert( index <
length() );
165 return find(lookup, 0);
173 for (
const char* p =
c_str() + offset; *p !=
'\0'; ++p)
229 const size_type intsNeeded = ( bytesNeeded +
sizeof(int) - 1 ) /
sizeof( int );
230 rep_ =
reinterpret_cast<Rep*
>(
new int[ intsNeeded ] );
247 delete [] (
reinterpret_cast<int*
>(
rep_ ) );
TiXmlOutStream & operator<<(const TiXmlString &in)
static const size_type npos
const char * c_str() const
void reserve(size_type cap)
TiXmlString & assign(const char *str, size_type len)
const char * data() const
TiXmlString & operator=(const char *copy)
void set_size(size_type sz)
const char & at(size_type index) const
void init(size_type sz, size_type cap)
size_type find(char lookup) const
void swap(TiXmlString &other)
char & operator[](size_type index) const
size_type find(char tofind, size_type offset) const
TIXML_EXPLICIT TiXmlString(const char *str, size_type len)
TIXML_EXPLICIT TiXmlString(const char *copy)
size_type capacity() const
TiXmlString(const TiXmlString ©)
TiXmlString & operator+=(const char *suffix)
TiXmlString & append(const char *str, size_type len)
bool operator>=(const TiXmlString &a, const TiXmlString &b)
bool operator==(const TiXmlString &a, const TiXmlString &b)
TiXmlString operator+(const TiXmlString &a, const TiXmlString &b)
bool operator<(const TiXmlString &a, const TiXmlString &b)
bool operator>(const TiXmlString &a, const TiXmlString &b)
bool operator!=(const TiXmlString &a, const TiXmlString &b)
bool operator<=(const TiXmlString &a, const TiXmlString &b)