tstring.cpp File Reference

#include "tstring.h"
#include <string>

Go to the source code of this file.

Functions

const TString operator+ (const TString &tstr1, const TString &tstr2)
bool operator== (const TString &tstr1, const TString &tstr2)
bool operator!= (const TString &tstr1, const TString &tstr2)

Function Documentation

bool operator!= ( const TString tstr1,
const TString tstr2 
)

Definition at line 216 of file tstring.cpp.

00217 {
00218     if( (const char *)tstr1 == NULL || (const char *)tstr2 == NULL )
00219         return true;
00220     return ( strcmp( (const char *)tstr1, (const char *)tstr2 ) != 0 );
00221 }

const TString operator+ ( const TString tstr1,
const TString tstr2 
)

Definition at line 200 of file tstring.cpp.

00201 {
00202     TString temp_tstr( tstr1 );
00203 
00204     temp_tstr += tstr2;
00205 
00206     return temp_tstr;
00207 }

bool operator== ( const TString tstr1,
const TString tstr2 
)

Definition at line 209 of file tstring.cpp.

00210 {
00211     if( (const char *)tstr1 == NULL || (const char *)tstr2 == NULL )
00212         return false;
00213     return ( strcmp( (const char *)tstr1, (const char *)tstr2 ) == 0 );
00214 }

Generated on Wed Jul 4 16:03:30 2012 for RIO by  doxygen 1.6.3