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

Location:
code/branches/gcc43/src/tinyxml
Files:
2 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);
  • code/branches/gcc43/src/tinyxml/tinyxml.h

    r1505 r1634  
    305305
    306306        static const char* SkipWhiteSpace( const char*, TiXmlEncoding encoding );
    307         inline static bool IsWhiteSpace( char c )
     307        static bool IsWhiteSpace( char c )
    308308        {
    309309                return ( isspace( (unsigned char) c ) || c == '\n' || c == '\r' );
    310310        }
    311         inline static bool IsWhiteSpace( int c )
     311        static bool IsWhiteSpace( int c )
    312312        {
    313313                if ( c < 256 )
     
    342342        // Get a character, while interpreting entities.
    343343        // The length can be from 0 to 4 bytes.
    344         inline static 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 )
    345345        {
    346346                assert( p );
     
    397397        static int IsAlpha( unsigned char anyByte, TiXmlEncoding encoding );
    398398        static int IsAlphaNum( unsigned char anyByte, TiXmlEncoding encoding );
    399         inline static int ToLower( int v, TiXmlEncoding encoding )
     399        static int ToLower( int v, TiXmlEncoding encoding )
    400400        {
    401401                if ( encoding == TIXML_ENCODING_UTF8 )
Note: See TracChangeset for help on using the changeset viewer.