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
101 memcpy(
start(), str, len);
151 return rep_->str[index];
157 return rep_->str[index];
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]);
224 rep_->capacity = cap;
235 delete[](
reinterpret_cast< int*
>(
rep_));
263 return strcmp(a.
c_str(), b) == 0;
TiXmlOutStream & operator<<(const char *in)
TiXmlOutStream & operator<<(const TiXmlString &in)
size_type capacity() const
TiXmlString & operator=(const TiXmlString ©)
const char * data() const
size_type find(char lookup) const
size_type find(char tofind, size_type offset) const
TIXML_EXPLICIT TiXmlString(const char *str, size_type len)
void set_size(size_type sz)
const char & at(size_type index) const
TiXmlString & operator+=(const char *suffix)
TiXmlString & operator+=(const TiXmlString &suffix)
const char * c_str() const
void reserve(size_type cap)
static const size_type npos
TiXmlString & operator+=(char single)
void swap(TiXmlString &other)
TIXML_EXPLICIT TiXmlString(const char *copy)
TiXmlString & operator=(const char *copy)
TiXmlString & assign(const char *str, size_type len)
TiXmlString(const TiXmlString ©)
TiXmlString & append(const char *str, size_type len)
char & operator[](size_type index) const
void init(size_type sz, size_type cap)
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)