CMS 3D CMS Logo

Defines | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/FWCore/Utilities/src/tinystr.cc File Reference

#include "FWCore/Utilities/interface/tinystr.h"

Go to the source code of this file.

Defines

#define TIXML_USE_STL

Functions

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

Define Documentation

#define TIXML_USE_STL

Definition at line 32 of file tinystr.cc.


Function Documentation

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

Definition at line 90 of file tinystr.cc.

References a, b, and tmp.

{
        TiXmlString tmp;
        tmp.reserve(a.length() + b.length());
        tmp += a;
        tmp += b;
        return tmp;
}
TiXmlString operator+ ( const char *  a,
const TiXmlString &  b 
)

Definition at line 109 of file tinystr.cc.

References b, and tmp.

{
        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;
}
TiXmlString operator+ ( const TiXmlString &  a,
const char *  b 
)

Definition at line 99 of file tinystr.cc.

References a, and tmp.

{
        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;
}