Changeset 1634 for code/branches/gcc43/src/tinyxml
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (16 years ago)
- Location:
- code/branches/gcc43/src/tinyxml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/tinyxml/tinystr.h
r1505 r1634 267 267 268 268 269 inlinebool operator == (const TiXmlString & a, const TiXmlString & b)269 bool operator == (const TiXmlString & a, const TiXmlString & b) 270 270 { 271 271 return ( a.length() == b.length() ) // optimization on some platforms 272 272 && ( strcmp(a.c_str(), b.c_str()) == 0 ); // actual compare 273 273 } 274 inlinebool operator < (const TiXmlString & a, const TiXmlString & b)274 bool operator < (const TiXmlString & a, const TiXmlString & b) 275 275 { 276 276 return strcmp(a.c_str(), b.c_str()) < 0; 277 277 } 278 278 279 inlinebool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); }280 inlinebool operator > (const TiXmlString & a, const TiXmlString & b) { return b < a; }281 inlinebool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); }282 inlinebool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); }283 284 inlinebool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; }285 inlinebool operator == (const char* a, const TiXmlString & b) { return b == a; }286 inlinebool operator != (const TiXmlString & a, const char* b) { return !(a == b); }287 inlinebool operator != (const char* a, const TiXmlString & b) { return !(b == a); }279 bool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); } 280 bool operator > (const TiXmlString & a, const TiXmlString & b) { return b < a; } 281 bool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); } 282 bool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); } 283 284 bool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; } 285 bool operator == (const char* a, const TiXmlString & b) { return b == a; } 286 bool operator != (const TiXmlString & a, const char* b) { return !(a == b); } 287 bool operator != (const char* a, const TiXmlString & b) { return !(b == a); } 288 288 289 289 TiXmlString operator + (const TiXmlString & a, const TiXmlString & b); -
code/branches/gcc43/src/tinyxml/tinyxml.h
r1505 r1634 305 305 306 306 static const char* SkipWhiteSpace( const char*, TiXmlEncoding encoding ); 307 inlinestatic bool IsWhiteSpace( char c )307 static bool IsWhiteSpace( char c ) 308 308 { 309 309 return ( isspace( (unsigned char) c ) || c == '\n' || c == '\r' ); 310 310 } 311 inlinestatic bool IsWhiteSpace( int c )311 static bool IsWhiteSpace( int c ) 312 312 { 313 313 if ( c < 256 ) … … 342 342 // Get a character, while interpreting entities. 343 343 // The length can be from 0 to 4 bytes. 344 inlinestatic const char* GetChar( const char* p, char* _value, int* length, TiXmlEncoding encoding )344 static const char* GetChar( const char* p, char* _value, int* length, TiXmlEncoding encoding ) 345 345 { 346 346 assert( p ); … … 397 397 static int IsAlpha( unsigned char anyByte, TiXmlEncoding encoding ); 398 398 static int IsAlphaNum( unsigned char anyByte, TiXmlEncoding encoding ); 399 inlinestatic int ToLower( int v, TiXmlEncoding encoding )399 static int ToLower( int v, TiXmlEncoding encoding ) 400 400 { 401 401 if ( encoding == TIXML_ENCODING_UTF8 )
Note: See TracChangeset
for help on using the changeset viewer.