osgEarth 2.1.1
Functions

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

#include "tinystr.h"
Include dependency graph for tinystr.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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 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:

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:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines