CTString operator+(const char *strFirst, const CTString &strSecond) { ASSERT(strFirst!=NULL && strSecond.IsValid()); return(CTString(strFirst)+=strSecond); }
/* * String concatenation. */ CTString CTString::operator+(const CTString &strSecond) const { ASSERT(IsValid() && strSecond.IsValid()); return(CTString(*this)+=strSecond); }
/* * Inequality comparison. */ BOOL CTString::operator!=(const CTString &strOther) const { ASSERT(IsValid() && strOther.IsValid()); return !( *this == strOther ); }
BOOL operator!=(const char *strThis, const CTString &strOther) { ASSERT(strOther.IsValid() && strThis!=NULL); return !( strOther == strThis); }
/* * Equality comparison. */ BOOL CTString::operator==(const CTString &strOther) const { ASSERT(IsValid() && strOther.IsValid()); return stricmp( str_String, strOther.str_String) == 0; }