crashrpt
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
WTL::CString Class Reference

Public Member Functions

 CString (const CString &stringSrc)
 
 CString (TCHAR ch, int nRepeat=1)
 
 CString (LPCTSTR lpsz)
 
 CString (LPCWSTR lpsz)
 
 CString (LPCTSTR lpch, int nLength)
 
 CString (LPCWSTR lpsz, int nLength)
 
 CString (const unsigned char *lpsz)
 
int GetLength () const
 
BOOL IsEmpty () const
 
void Empty ()
 
TCHAR GetAt (int nIndex) const
 
TCHAR operator[] (int nIndex) const
 
void SetAt (int nIndex, TCHAR ch)
 
 operator LPCTSTR () const
 
CStringoperator= (const CString &stringSrc)
 
CStringoperator= (TCHAR ch)
 
CStringoperator= (LPCTSTR lpsz)
 
CStringoperator= (LPCWSTR lpsz)
 
CStringoperator= (const unsigned char *lpsz)
 
CStringoperator+= (const CString &string)
 
CStringoperator+= (TCHAR ch)
 
CStringoperator+= (LPCTSTR lpsz)
 
int Compare (LPCTSTR lpsz) const
 
int CompareNoCase (LPCTSTR lpsz) const
 
int Collate (LPCTSTR lpsz) const
 
int CollateNoCase (LPCTSTR lpsz) const
 
CString Mid (int nFirst, int nCount) const
 
CString Mid (int nFirst) const
 
CString Left (int nCount) const
 
CString Right (int nCount) const
 
CString SpanIncluding (LPCTSTR lpszCharSet) const
 
CString SpanExcluding (LPCTSTR lpszCharSet) const
 
void MakeUpper ()
 
void MakeLower ()
 
void MakeReverse ()
 
void TrimRight ()
 
void TrimLeft ()
 
void TrimRight (TCHAR chTarget)
 
void TrimRight (LPCTSTR lpszTargetList)
 
void TrimLeft (TCHAR chTarget)
 
void TrimLeft (LPCTSTR lpszTargets)
 
int Replace (TCHAR chOld, TCHAR chNew)
 
int Replace (LPCTSTR lpszOld, LPCTSTR lpszNew)
 
int Remove (TCHAR chRemove)
 
int Insert (int nIndex, TCHAR ch)
 
int Insert (int nIndex, LPCTSTR pstr)
 
int Delete (int nIndex, int nCount=1)
 
int Find (TCHAR ch) const
 
int ReverseFind (TCHAR ch) const
 
int Find (TCHAR ch, int nStart) const
 
int FindOneOf (LPCTSTR lpszCharSet) const
 
int Find (LPCTSTR lpszSub) const
 
int Find (LPCTSTR lpszSub, int nStart) const
 
CStringAppend (int n)
 
BOOL __cdecl Format (LPCTSTR lpszFormat,...)
 
BOOL __cdecl Format (UINT nFormatID,...)
 
BOOL FormatV (LPCTSTR lpszFormat, va_list argList)
 
BOOL __cdecl FormatMessage (LPCTSTR lpszFormat,...)
 
BOOL __cdecl FormatMessage (UINT nFormatID,...)
 
BOOL LoadString (UINT nID)
 
void AnsiToOem ()
 
void OemToAnsi ()
 
BSTR AllocSysString () const
 
BSTR SetSysString (BSTR *pbstr) const
 
LPTSTR GetBuffer (int nMinBufLength)
 
void ReleaseBuffer (int nNewLength=-1)
 
LPTSTR GetBufferSetLength (int nNewLength)
 
void FreeExtra ()
 
LPTSTR LockBuffer ()
 
void UnlockBuffer ()
 
int GetAllocLength () const
 

Static Public Member Functions

static BOOL __stdcall _IsValidString (LPCTSTR lpsz, int=-1)
 

Protected Member Functions

CStringDataGetData () const
 
void Init ()
 
BOOL AllocCopy (CString &dest, int nCopyLen, int nCopyIndex, int nExtraLen) const
 
BOOL AllocBuffer (int nLen)
 
void AssignCopy (int nSrcLen, LPCTSTR lpszSrcData)
 
BOOL ConcatCopy (int nSrc1Len, LPCTSTR lpszSrc1Data, int nSrc2Len, LPCTSTR lpszSrc2Data)
 
void ConcatInPlace (int nSrcLen, LPCTSTR lpszSrcData)
 
void CopyBeforeWrite ()
 
BOOL AllocBeforeWrite (int nLen)
 
void Release ()
 

Static Protected Member Functions

static void PASCAL Release (CStringData *pData)
 
static int PASCAL SafeStrlen (LPCTSTR lpsz)
 
static int __stdcall _LoadString (UINT nID, LPTSTR lpszBuf, UINT nMaxBuf)
 
static const CString &__stdcall _GetEmptyString ()
 
static int __cdecl _wcstombsz (char *mbstr, const wchar_t *wcstr, size_t count)
 
static int __cdecl _mbstowcsz (wchar_t *wcstr, const char *mbstr, size_t count)
 
static const TCHAR * _cstrchr (const TCHAR *p, TCHAR ch)
 
static TCHAR * _cstrrev (TCHAR *pStr)
 
static const TCHAR * _cstrstr (const TCHAR *pStr, const TCHAR *pCharSet)
 
static int _cstrspn (const TCHAR *pStr, const TCHAR *pCharSet)
 
static int _cstrcspn (const TCHAR *pStr, const TCHAR *pCharSet)
 
static const TCHAR * _cstrpbrk (const TCHAR *p, const TCHAR *lpszCharSet)
 
static int _cstrcmp (const TCHAR *pstrOne, const TCHAR *pstrOther)
 
static int _cstrcmpi (const TCHAR *pstrOne, const TCHAR *pstrOther)
 
static int _cstrcoll (const TCHAR *pstrOne, const TCHAR *pstrOther)
 
static int _cstrcolli (const TCHAR *pstrOne, const TCHAR *pstrOther)
 
static const TCHAR * _cstrrchr (const TCHAR *p, TCHAR ch)
 
static int _cstrisdigit (TCHAR ch)
 
static int _cstrisspace (TCHAR ch)
 
static int _cstrtoi (const TCHAR *nptr)
 
static const TCHAR * _cstrchr_db (const TCHAR *p, TCHAR ch1, TCHAR ch2)
 

Protected Attributes

LPTSTR m_pchData
 

Friends

CString __stdcall operator+ (const CString &string1, const CString &string2)
 
CString __stdcall operator+ (const CString &string, TCHAR ch)
 
CString __stdcall operator+ (TCHAR ch, const CString &string)
 
CString __stdcall operator+ (const CString &string, LPCTSTR lpsz)
 
CString __stdcall operator+ (LPCTSTR lpsz, const CString &string)
 

The documentation for this class was generated from the following file: