Back to index

nux  3.0.0
Functions
tinystr.cpp File Reference
#include "tinystr.h"

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 112 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 121 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 131 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: