osgEarth 2.1.1
Classes | Defines | Functions

/home/cube/sources/osgearth/src/osgEarth/tinystr.h File Reference

#include <assert.h>
#include <string.h>
Include dependency graph for tinystr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TiXmlString
struct  TiXmlString::Rep
class  TiXmlOutStream

Defines

#define TIXML_EXPLICIT

Functions

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)
bool operator<= (const TiXmlString &a, const TiXmlString &b)
bool operator>= (const TiXmlString &a, const TiXmlString &b)
bool operator== (const TiXmlString &a, const char *b)
bool operator== (const char *a, const TiXmlString &b)
bool operator!= (const TiXmlString &a, const char *b)
bool operator!= (const char *a, const TiXmlString &b)
TiXmlString operator+ (const TiXmlString &a, const TiXmlString &b)
TiXmlString operator+ (const TiXmlString &a, const char *b)
TiXmlString operator+ (const char *a, const TiXmlString &b)

Define Documentation

#define TIXML_EXPLICIT

Definition at line 56 of file tinystr.h.


Function Documentation

bool operator!= ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 279 of file tinystr.h.

{ return !(a == b); }
bool operator!= ( const TiXmlString a,
const char *  b 
) [inline]

Definition at line 286 of file tinystr.h.

{ return !(a == b); }
bool operator!= ( const char *  a,
const TiXmlString b 
) [inline]

Definition at line 287 of file tinystr.h.

{ return !(b == a); }
TiXmlString operator+ ( const TiXmlString a,
const TiXmlString b 
)

Definition at line 86 of file tinystr.cpp.

{
        TiXmlString tmp;
        tmp.reserve(a.length() + b.length());
        tmp += a;
        tmp += b;
        return tmp;
}

Here is the call graph for this function:

TiXmlString operator+ ( const TiXmlString a,
const char *  b 
)

Definition at line 95 of file tinystr.cpp.

{
        TiXmlString tmp;
        TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>( strlen(b) );
        tmp.reserve(a.length() + b_len);
        tmp += a;
        tmp.append(b, b_len);
        return tmp;
}

Here is the call graph for this function:

TiXmlString operator+ ( const char *  a,
const TiXmlString b 
)

Definition at line 105 of file tinystr.cpp.

{
        TiXmlString tmp;
        TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>( strlen(a) );
        tmp.reserve(a_len + b.length());
        tmp.append(a, a_len);
        tmp += b;
        return tmp;
}

Here is the call graph for this function:

bool operator< ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 274 of file tinystr.h.

{
        return strcmp(a.c_str(), b.c_str()) < 0;
}

Here is the call graph for this function:

bool operator<= ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 281 of file tinystr.h.

{ return !(b < a); }
bool operator== ( const TiXmlString a,
const char *  b 
) [inline]

Definition at line 284 of file tinystr.h.

{ return strcmp(a.c_str(), b) == 0; }

Here is the call graph for this function:

bool operator== ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 269 of file tinystr.h.

{
        return    ( a.length() == b.length() )                          // optimization on some platforms
               && ( strcmp(a.c_str(), b.c_str()) == 0 );        // actual compare
}

Here is the call graph for this function:

bool operator== ( const char *  a,
const TiXmlString b 
) [inline]

Definition at line 285 of file tinystr.h.

{ return b == a; }
bool operator> ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 280 of file tinystr.h.

{ return b < a; }
bool operator>= ( const TiXmlString a,
const TiXmlString b 
) [inline]

Definition at line 282 of file tinystr.h.

{ return !(a < b); }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines