39 #ifndef TIXML_STRING_INCLUDED 40 #define TIXML_STRING_INCLUDED 49 #if defined(_MSC_VER) && (_MSC_VER >= 1200
) 51 #define TIXML_EXPLICIT explicit 52 #elif defined( __GNUC__
) && ( __GNUC__
>= 3
) 54 #define TIXML_EXPLICIT explicit 56 #define TIXML_EXPLICIT 87 memcpy(start(), copy.data(), length());
93 init(
static_cast< size_type >(strlen(copy)));
94 memcpy(start(), copy, length());
101 memcpy(start(), str, len);
109 return assign(copy, (size_type)strlen(copy));
119 return append(suffix,
static_cast< size_type >(strlen(suffix)));
168 for (
const char* p =
c_str() + offset; *p !=
'\0'; ++p) {
220 const size_type intsNeeded = (bytesNeeded +
sizeof(
int) - 1) /
sizeof(
int);
221 rep_ =
reinterpret_cast<
Rep* >(
new int[intsNeeded]);
235 delete[](
reinterpret_cast<
int* >(
rep_));
static const size_type npos
bool operator>(const TiXmlString &a, const TiXmlString &b)
size_type find(char tofind, size_type offset) const
void swap(TiXmlString &other)
TiXmlString operator+(const TiXmlString &a, const TiXmlString &b)
bool operator<(const TiXmlString &a, const TiXmlString &b)
bool operator!=(const char *a, const TiXmlString &b)
TiXmlString(const TiXmlString ©)
TiXmlString & operator+=(const char *suffix)
TIXML_EXPLICIT TiXmlString(const char *str, size_type len)
size_type capacity() const
char & operator[](size_type index) const
TiXmlString & assign(const char *str, size_type len)
const char & at(size_type index) const
TiXmlString & operator=(const char *copy)
bool operator==(const char *a, const TiXmlString &b)
void reserve(size_type cap)
TiXmlString operator+(const char *a, const TiXmlString &b)
void set_size(size_type sz)
size_type find(char lookup) const
const char * c_str() const
bool operator==(const TiXmlString &a, const TiXmlString &b)
bool operator==(const TiXmlString &a, const char *b)
TiXmlString & append(const char *str, size_type len)
TiXmlString operator+(const TiXmlString &a, const char *b)
bool operator>=(const TiXmlString &a, const TiXmlString &b)
TIXML_EXPLICIT TiXmlString(const char *copy)
bool operator!=(const TiXmlString &a, const TiXmlString &b)
TiXmlString & operator+=(char single)
const char * data() const
bool operator!=(const TiXmlString &a, const char *b)
bool operator<=(const TiXmlString &a, const TiXmlString &b)
void init(size_type sz, size_type cap)
TiXmlString & operator+=(const TiXmlString &suffix)
TiXmlString & operator=(const TiXmlString ©)