Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

stringar.cpp File Reference

#include "ICMUI.H"

Go to the source code of this file.

Functions

CString operator+ (const CString &csRef, LPCTSTR lpstrRef)


Function Documentation

CString operator+ const CString csRef,
LPCTSTR  lpstrRef
 

Definition at line 238 of file stringar.cpp.

References CString::IsEmpty(), and CString::m_acContents.

00238 { 00239 if (!lpstrRef || !*lpstrRef) 00240 return csRef; 00241 00242 if (csRef.IsEmpty()) 00243 return lpstrRef; 00244 00245 CString csReturn; 00246 00247 csReturn.m_acContents = (LPTSTR) malloc((1 + lstrlen(csRef.m_acContents) + 00248 lstrlen(lpstrRef)) * sizeof(TCHAR)); 00249 if(csReturn.m_acContents) { 00250 lstrcat(lstrcpy(csReturn.m_acContents, csRef.m_acContents), lpstrRef); 00251 } 00252 00253 return csReturn; 00254 }


Generated on Sat May 15 19:45:42 2004 for test by doxygen 1.3.7