Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2008, 7:36:33 PM (16 years ago)
Author:
nicolasc
Message:

just a test - don't morge this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gcc43/src/tinyxml/tinystr.h

    r1505 r1634  
    267267
    268268
    269 inline bool operator == (const TiXmlString & a, const TiXmlString & b)
     269bool operator == (const TiXmlString & a, const TiXmlString & b)
    270270{
    271271        return    ( a.length() == b.length() )                          // optimization on some platforms
    272272               && ( strcmp(a.c_str(), b.c_str()) == 0 );        // actual compare
    273273}
    274 inline bool operator < (const TiXmlString & a, const TiXmlString & b)
     274bool operator < (const TiXmlString & a, const TiXmlString & b)
    275275{
    276276        return strcmp(a.c_str(), b.c_str()) < 0;
    277277}
    278278
    279 inline bool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); }
    280 inline bool operator >  (const TiXmlString & a, const TiXmlString & b) { return b < a; }
    281 inline bool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); }
    282 inline bool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); }
    283 
    284 inline bool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; }
    285 inline bool operator == (const char* a, const TiXmlString & b) { return b == a; }
    286 inline bool operator != (const TiXmlString & a, const char* b) { return !(a == b); }
    287 inline bool operator != (const char* a, const TiXmlString & b) { return !(b == a); }
     279bool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); }
     280bool operator >  (const TiXmlString & a, const TiXmlString & b) { return b < a; }
     281bool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); }
     282bool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); }
     283
     284bool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; }
     285bool operator == (const char* a, const TiXmlString & b) { return b == a; }
     286bool operator != (const TiXmlString & a, const char* b) { return !(a == b); }
     287bool operator != (const char* a, const TiXmlString & b) { return !(b == a); }
    288288
    289289TiXmlString operator + (const TiXmlString & a, const TiXmlString & b);
Note: See TracChangeset for help on using the changeset viewer.