Lines Matching refs:TiXmlString
34 required - it is used to check that the TiXmlString class isn't incorrectly
49 TiXmlString is an emulation of a subset of the std::string template.
55 class TiXmlString
65 // TiXmlString empty constructor
66 TiXmlString () : rep_(&nullrep_)
70 // TiXmlString copy constructor
71 TiXmlString ( const TiXmlString & copy) : rep_(0)
77 // TiXmlString constructor, based on a string
78 TIXML_EXPLICIT TiXmlString ( const char * copy) : rep_(0)
84 // TiXmlString constructor, based on a string
85 TIXML_EXPLICIT TiXmlString ( const char * str, size_type len) : rep_(0)
91 // TiXmlString destructor
92 ~TiXmlString ()
97 TiXmlString& operator = (const char * copy)
102 TiXmlString& operator = (const TiXmlString & copy)
109 TiXmlString& operator += (const char * suffix)
115 TiXmlString& operator += (char single)
121 TiXmlString& operator += (const TiXmlString & suffix)
127 // Convert a TiXmlString into a null-terminated char *
130 // Convert a TiXmlString into a char * (need not be null terminated).
133 // Return the length of a TiXmlString
139 // Checks if a TiXmlString is empty
160 // find a char in a string. Return TiXmlString::npos if not found
166 // find a char in a string from an offset. Return TiXmlString::npos if not found
182 // TiXmlString().swap(*this);
189 function DOES NOT clear the content of the TiXmlString if any exists.
193 TiXmlString& assign (const char* str, size_type len);
195 TiXmlString& append (const char* str, size_type len);
197 void swap (TiXmlString& other)
255 inline bool operator == (const TiXmlString & a, const TiXmlString & b)
260 inline bool operator < (const TiXmlString & a, const TiXmlString & b)
265 inline bool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); }
266 inline bool operator > (const TiXmlString & a, const TiXmlString & b) { return b < a; }
267 inline bool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); }
268 inline bool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); }
270 inline bool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; }
271 inline bool operator == (const char* a, const TiXmlString & b) { return b == a; }
272 inline bool operator != (const TiXmlString & a, const char* b) { return !(a == b); }
273 inline bool operator != (const char* a, const TiXmlString & b) { return !(b == a); }
275 TiXmlString operator + (const TiXmlString & a, const TiXmlString & b);
276 TiXmlString operator + (const TiXmlString & a, const char* b);
277 TiXmlString operator + (const char* a, const TiXmlString & b);
281 TiXmlOutStream is an emulation of std::ostream. It is based on TiXmlString.
284 class TiXmlOutStream : public TiXmlString
289 TiXmlOutStream & operator << (const TiXmlString & in)