ReactOS  0.4.15-dev-3297-g037c744
ATL::CStringT< BaseType, StringTraits > Class Template Reference

#include <cstringt.h>

Inheritance diagram for ATL::CStringT< BaseType, StringTraits >:
Collaboration diagram for ATL::CStringT< BaseType, StringTraits >:

Public Types

typedef CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
 
typedef StringTraits StrTraits
 
typedef CThisSimpleString::XCHAR XCHAR
 
typedef CThisSimpleString::PXSTR PXSTR
 
typedef CThisSimpleString::PCXSTR PCXSTR
 
typedef CThisSimpleString::YCHAR YCHAR
 
typedef CThisSimpleString::PYSTR PYSTR
 
typedef CThisSimpleString::PCYSTR PCYSTR
 
- Public Types inherited from ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >
typedef ChTraitsBase< BaseType >::XCHAR XCHAR
 
typedef ChTraitsBase< BaseType >::PXSTR PXSTR
 
typedef ChTraitsBase< BaseType >::PCXSTR PCXSTR
 
typedef ChTraitsBase< BaseType >::YCHAR YCHAR
 
typedef ChTraitsBase< BaseType >::PYSTR PYSTR
 
typedef ChTraitsBase< BaseType >::PCYSTR PCYSTR
 

Public Member Functions

 CStringT () throw ()
 
 CStringT (_In_ IAtlStringMgr *pStringMgr) throw ()
 
 CStringT (_In_ const CStringT &strSrc)
 
 CStringT (_In_ const CThisSimpleString &strSrc)
 
template<class StringTraits_ >
 CStringT (_In_ const CStringT< YCHAR, StringTraits_ > &strSrc)
 
 CStringT (_In_opt_z_ const XCHAR *pszSrc)
 
 CStringT (_In_opt_z_ const XCHAR *pszSrc, _In_ IAtlStringMgr *pStringMgr)
 
 CStringT (_In_opt_z_ const YCHAR *pszSrc)
 
 CStringT (_In_opt_z_ const YCHAR *pszSrc, _In_ IAtlStringMgr *pStringMgr)
 
 CStringT (_In_reads_z_(nLength) const XCHAR *pch, _In_ int nLength)
 
 CStringT (_In_reads_z_(nLength) const YCHAR *pch, _In_ int nLength)
 
CStringToperator= (_In_ const CStringT &strSrc)
 
CStringToperator= (_In_opt_z_ PCXSTR pszSrc)
 
CStringToperator= (_In_opt_z_ PCYSTR pszSrc)
 
CStringToperator= (_In_ const CThisSimpleString &strSrc)
 
CStringToperator+= (_In_ const CThisSimpleString &str)
 
CStringToperator+= (_In_z_ PCXSTR pszSrc)
 
CStringToperator+= (_In_ XCHAR ch)
 
BOOL LoadString (_In_ UINT nID)
 
_Check_return_ BOOL LoadString (_In_ HINSTANCE hInstance, _In_ UINT nID)
 
BOOL GetEnvironmentVariable (_In_z_ PCXSTR pszVar)
 
CStringTMakeLower ()
 
CStringTMakeUpper ()
 
int Find (_In_ PCXSTR pszSub, _In_opt_ int iStart=0) const throw ()
 
int Find (_In_ XCHAR ch, _In_opt_ int iStart=0) const throw ()
 
int FindOneOf (_In_ PCXSTR pszCharSet) const throw ()
 
int ReverseFind (_In_ XCHAR ch) const throw ()
 
int Compare (_In_z_ PCXSTR psz) const
 
int CompareNoCase (_In_z_ PCXSTR psz) const
 
CStringT Mid (int iFirst, int nCount) const
 
CStringT Mid (int iFirst) const
 
CStringT Left (int nCount) const
 
CStringT Right (int nCount) const
 
void __cdecl Format (UINT nFormatID,...)
 
void __cdecl Format (PCXSTR pszFormat,...)
 
void FormatV (PCXSTR pszFormat, va_list args)
 
void __cdecl FormatMessage (UINT nFormatID,...)
 
void __cdecl FormatMessage (PCXSTR pszFormat,...)
 
void FormatMessageV (PCXSTR pszFormat, va_list *pArgList)
 
int Replace (PCXSTR pszOld, PCXSTR pszNew)
 
int Replace (XCHAR chOld, XCHAR chNew)
 
CStringT Tokenize (_In_z_ PCXSTR pszTokens, _Inout_ int &iStart) const
 
CStringTTrimLeft ()
 
CStringTTrimLeft (XCHAR chTarget)
 
CStringTTrimLeft (PCXSTR pszTargets)
 
CStringTTrimRight ()
 
CStringTTrimRight (XCHAR chTarget)
 
CStringTTrimRight (PCXSTR pszTargets)
 
CStringTTrim ()
 
CStringTTrim (XCHAR chTarget)
 
CStringTTrim (PCXSTR pszTargets)
 
BSTR AllocSysString () const
 
- Public Member Functions inherited from ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >
 CSimpleStringT (_Inout_ IAtlStringMgr *pStringMgr)
 
 CSimpleStringT (_In_ const CSimpleStringT &strSrc)
 
 CSimpleStringT (_In_z_ PCXSTR pszSrc, _Inout_ IAtlStringMgr *pStringMgr)
 
 CSimpleStringT (_In_count_(nLength) const XCHAR *pchSrc, _In_ int nLength, _Inout_ IAtlStringMgr *pStringMgr)
 
 ~CSimpleStringT () throw ()
 
CSimpleStringToperator= (_In_opt_z_ PCXSTR pszSrc)
 
CSimpleStringToperator= (_In_ const CSimpleStringT &strSrc)
 
CSimpleStringToperator+= (_In_ const CSimpleStringT &strSrc)
 
CSimpleStringToperator+= (_In_z_ PCXSTR pszSrc)
 
CSimpleStringToperator+= (XCHAR ch)
 
 operator PCXSTR () const throw ()
 
void Empty () throw ()
 
void Append (_In_count_(nLength) PCXSTR pszSrc, _In_ int nLength)
 
void Append (_In_z_ PCXSTR pszSrc)
 
void Append (_In_ const CSimpleStringT &strSrc)
 
void SetString (_In_opt_z_ PCXSTR pszSrc)
 
void SetString (_In_reads_opt_(nLength) PCXSTR pszSrc, _In_ int nLength)
 
PXSTR GetBuffer ()
 
_Ret_notnull_ _Post_writable_size_ (nMinBufferLength+1) PXSTR GetBuffer(_In_ int nMinBufferLength)
 
int GetAllocLength () const throw ()
 
int GetLength () const throw ()
 
PCXSTR GetString () const throw ()
 
void ReleaseBufferSetLength (_In_ int nNewLength)
 
void ReleaseBuffer (_In_ int nNewLength=-1)
 
bool IsEmpty () const throw ()
 
CStringDataGetData () const throw ()
 
IAtlStringMgrGetManager () const throw ()
 

Static Public Member Functions

static void __cdecl Construct (_In_ CStringT *pString)
 
static PCXSTR DefaultTrimChars ()
 
- Static Public Member Functions inherited from ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >
static void __cdecl CopyChars (_Out_writes_to_(nDestLen, nChars) XCHAR *pchDest, _In_ size_t nDestLen, _In_reads_opt_(nChars) const XCHAR *pchSrc, _In_ int nChars) throw ()
 
static void __cdecl CopyCharsOverlapped (_Out_writes_to_(nDestLen, nDestLen) XCHAR *pchDest, _In_ size_t nDestLen, _In_reads_(nChars) const XCHAR *pchSrc, _In_ int nChars) throw ()
 
static int __cdecl StringLength (_In_opt_z_ const char *psz) throw ()
 
static int __cdecl StringLength (_In_opt_z_ const wchar_t *psz) throw ()
 

Protected Member Functions

template<typename T_CHAR >
void LoadFromPtr_ (_In_opt_z_ const T_CHAR *pszSrc)
 

Friends

bool operator== (const CStringT &str1, const CStringT &str2) throw ()
 
bool operator== (const CStringT &str1, PCXSTR psz2) throw ()
 
bool operator== (const CStringT &str1, PCYSTR psz2) throw ()
 
bool operator== (const CStringT &str1, XCHAR ch2) throw ()
 
bool operator== (PCXSTR psz1, const CStringT &str2) throw ()
 
bool operator== (PCYSTR psz1, const CStringT &str2) throw ()
 
bool operator== (XCHAR ch1, const CStringT &str2) throw ()
 
bool operator!= (const CStringT &str1, const CStringT &str2) throw ()
 
bool operator!= (const CStringT &str1, PCXSTR psz2) throw ()
 
bool operator!= (const CStringT &str1, PCYSTR psz2) throw ()
 
bool operator!= (const CStringT &str1, XCHAR ch2) throw ()
 
bool operator!= (PCXSTR psz1, const CStringT &str2) throw ()
 
bool operator!= (PCYSTR psz1, const CStringT &str2) throw ()
 
bool operator!= (XCHAR ch1, const CStringT &str2) throw ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >
static void __cdecl Concatenate (_Inout_ CSimpleStringT &strResult, _In_count_(nLength1) PCXSTR psz1, _In_ int nLength1, _In_count_(nLength2) PCXSTR psz2, _In_ int nLength2)
 
static void ThrowMemoryException ()
 
static void ThrowInvalidArgException ()
 

Detailed Description

template<typename BaseType, class StringTraits>
class ATL::CStringT< BaseType, StringTraits >

Definition at line 369 of file cstringt.h.

Member Typedef Documentation

◆ CThisSimpleString

template<typename BaseType , class StringTraits >
typedef CSimpleStringT<BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck<BaseType, StringTraits>::c_bIsMFCDLLTraits> ATL::CStringT< BaseType, StringTraits >::CThisSimpleString

Definition at line 373 of file cstringt.h.

◆ PCXSTR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::PCXSTR ATL::CStringT< BaseType, StringTraits >::PCXSTR

Definition at line 377 of file cstringt.h.

◆ PCYSTR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::PCYSTR ATL::CStringT< BaseType, StringTraits >::PCYSTR

Definition at line 380 of file cstringt.h.

◆ PXSTR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::PXSTR ATL::CStringT< BaseType, StringTraits >::PXSTR

Definition at line 376 of file cstringt.h.

◆ PYSTR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::PYSTR ATL::CStringT< BaseType, StringTraits >::PYSTR

Definition at line 379 of file cstringt.h.

◆ StrTraits

template<typename BaseType , class StringTraits >
typedef StringTraits ATL::CStringT< BaseType, StringTraits >::StrTraits

Definition at line 374 of file cstringt.h.

◆ XCHAR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::XCHAR ATL::CStringT< BaseType, StringTraits >::XCHAR

Definition at line 375 of file cstringt.h.

◆ YCHAR

template<typename BaseType , class StringTraits >
typedef CThisSimpleString::YCHAR ATL::CStringT< BaseType, StringTraits >::YCHAR

Definition at line 378 of file cstringt.h.

Constructor & Destructor Documentation

◆ CStringT() [1/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( )
throw (
)
inline

Definition at line 383 of file cstringt.h.

383  :
384  CThisSimpleString(StringTraits::GetDefaultManager())
385  {
386  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

Referenced by ATL::CStringT< BaseType, StringTraits >::Left(), ATL::CStringT< BaseType, StringTraits >::Mid(), ATL::CStringT< BaseType, StringTraits >::Right(), and ATL::CStringT< BaseType, StringTraits >::Tokenize().

◆ CStringT() [2/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_ IAtlStringMgr pStringMgr)
throw (
)
inlineexplicit

Definition at line 388 of file cstringt.h.

388  :
389  CThisSimpleString(pStringMgr)
390  {
391  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

◆ CStringT() [3/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_ const CStringT< BaseType, StringTraits > &  strSrc)
inline

Definition at line 398 of file cstringt.h.

398  :
399  CThisSimpleString(strSrc)
400  {
401  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

◆ CStringT() [4/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_ const CThisSimpleString strSrc)
inline

Definition at line 403 of file cstringt.h.

403  :
404  CThisSimpleString(strSrc)
405  {
406  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

◆ CStringT() [5/11]

template<typename BaseType , class StringTraits >
template<class StringTraits_ >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_ const CStringT< YCHAR, StringTraits_ > &  strSrc)
inline

Definition at line 409 of file cstringt.h.

409  :
410  CThisSimpleString(StringTraits::GetDefaultManager())
411  {
412  *this = static_cast<const YCHAR*>(strSrc);
413  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

◆ CStringT() [6/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_opt_z_ const XCHAR pszSrc)
inline

Definition at line 429 of file cstringt.h.

429  :
430  CThisSimpleString(StringTraits::GetDefaultManager())
431  {
432  LoadFromPtr_(pszSrc);
433  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373
void LoadFromPtr_(_In_opt_z_ const T_CHAR *pszSrc)
Definition: cstringt.h:418

◆ CStringT() [7/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_opt_z_ const XCHAR pszSrc,
_In_ IAtlStringMgr pStringMgr 
)
inline

Definition at line 435 of file cstringt.h.

436  : CThisSimpleString(pStringMgr)
437  {
438  LoadFromPtr_(pszSrc);
439  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373
void LoadFromPtr_(_In_opt_z_ const T_CHAR *pszSrc)
Definition: cstringt.h:418

◆ CStringT() [8/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_opt_z_ const YCHAR pszSrc)
inline

Definition at line 441 of file cstringt.h.

441  :
442  CThisSimpleString(StringTraits::GetDefaultManager())
443  {
444  LoadFromPtr_(pszSrc);
445  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373
void LoadFromPtr_(_In_opt_z_ const T_CHAR *pszSrc)
Definition: cstringt.h:418

◆ CStringT() [9/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_opt_z_ const YCHAR pszSrc,
_In_ IAtlStringMgr pStringMgr 
)
inline

Definition at line 447 of file cstringt.h.

448  : CThisSimpleString(pStringMgr)
449  {
450  LoadFromPtr_(pszSrc);
451  }
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373
void LoadFromPtr_(_In_opt_z_ const T_CHAR *pszSrc)
Definition: cstringt.h:418

◆ CStringT() [10/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_reads_z_(nLength) const XCHAR pch,
_In_ int  nLength 
)
inline

Definition at line 453 of file cstringt.h.

454  :
455  CThisSimpleString(pch, nLength, StringTraits::GetDefaultManager())
456  {
457  }
_In_ DWORD nLength
Definition: wincon.h:473
#define pch(ap)
Definition: match.c:418
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

◆ CStringT() [11/11]

template<typename BaseType , class StringTraits >
ATL::CStringT< BaseType, StringTraits >::CStringT ( _In_reads_z_(nLength) const YCHAR pch,
_In_ int  nLength 
)
inline

Definition at line 459 of file cstringt.h.

460  :
461  CThisSimpleString(pch, nLength, StringTraits::GetDefaultManager())
462  {
463  }
_In_ DWORD nLength
Definition: wincon.h:473
#define pch(ap)
Definition: match.c:418
CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits > CThisSimpleString
Definition: cstringt.h:373

Member Function Documentation

◆ AllocSysString()

template<typename BaseType , class StringTraits >
BSTR ATL::CStringT< BaseType, StringTraits >::AllocSysString ( ) const
inline

◆ Compare()

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::Compare ( _In_z_ PCXSTR  psz) const
inline

◆ CompareNoCase()

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::CompareNoCase ( _In_z_ PCXSTR  psz) const
inline

Definition at line 695 of file cstringt.h.

Referenced by CFontCache::Find(), and CAutoComplete::OnAutoCompStart().

◆ Construct()

template<typename BaseType , class StringTraits >
static void __cdecl ATL::CStringT< BaseType, StringTraits >::Construct ( _In_ CStringT< BaseType, StringTraits > *  pString)
inlinestatic

Definition at line 393 of file cstringt.h.

394  {
395  new(pString) CStringT;
396  }
FxString * pString

◆ DefaultTrimChars()

template<typename BaseType , class StringTraits >
static PCXSTR ATL::CStringT< BaseType, StringTraits >::DefaultTrimChars ( )
inlinestatic

Definition at line 908 of file cstringt.h.

909  {
910  static XCHAR str[] = { ' ', '\t', '\r', '\n', 0 };
911  return str;
912  }
const WCHAR * str
CThisSimpleString::XCHAR XCHAR
Definition: cstringt.h:375

Referenced by ATL::CStringT< BaseType, StringTraits >::Trim(), ATL::CStringT< BaseType, StringTraits >::TrimLeft(), and ATL::CStringT< BaseType, StringTraits >::TrimRight().

◆ Find() [1/2]

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::Find ( _In_ PCXSTR  pszSub,
_In_opt_ int  iStart = 0 
) const
throw (
)
inline

Definition at line 648 of file cstringt.h.

649  {
651 
652  if (iStart >= nLength || iStart < 0)
653  return -1;
654 
656  PCXSTR pszResult = StringTraits::FindString(pszString + iStart, pszSub);
657 
658  return pszResult ? ((int)(pszResult - pszString)) : -1;
659  }
_In_ DWORD nLength
Definition: wincon.h:473
_In_ UINT iStart
Definition: wingdi.h:3620
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
static int FindString(IN FILE *pStream, IN PCWSTR pszFilePath OPTIONAL, IN PCWSTR pszSearchString)
Definition: find.c:106
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Referenced by FNFDINOTIFY(), CACLCustomMRU::LoadMRUList(), and CConfigParser::ReadSection().

◆ Find() [2/2]

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::Find ( _In_ XCHAR  ch,
_In_opt_ int  iStart = 0 
) const
throw (
)
inline

Definition at line 661 of file cstringt.h.

662  {
664 
665  if (iStart >= nLength || iStart < 0)
666  return -1;
667 
669  PCXSTR pszResult = StringTraits::FindChar(pszString + iStart, ch);
670 
671  return pszResult ? ((int)(pszResult - pszString)) : -1;
672  }
_In_ DWORD nLength
Definition: wincon.h:473
_In_ UINT iStart
Definition: wingdi.h:3620
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

◆ FindOneOf()

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::FindOneOf ( _In_ PCXSTR  pszCharSet) const
throw (
)
inline

Definition at line 674 of file cstringt.h.

675  {
677  PCXSTR pszResult = StringTraits::FindOneOf(pszString, pszCharSet);
678 
679  return pszResult ? ((int)(pszResult - pszString)) : -1;
680  }
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

◆ Format() [1/2]

template<typename BaseType , class StringTraits >
void __cdecl ATL::CStringT< BaseType, StringTraits >::Format ( UINT  nFormatID,
  ... 
)
inline

◆ Format() [2/2]

template<typename BaseType , class StringTraits >
void __cdecl ATL::CStringT< BaseType, StringTraits >::Format ( PCXSTR  pszFormat,
  ... 
)
inline

Definition at line 763 of file cstringt.h.

764  {
765  va_list args;
766  va_start(args, pszFormat);
767  FormatV(pszFormat, args);
768  va_end(args);
769  }
void FormatV(PCXSTR pszFormat, va_list args)
Definition: cstringt.h:771
#define args
Definition: format.c:66
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)

◆ FormatMessage() [1/2]

template<typename BaseType , class StringTraits >
void __cdecl ATL::CStringT< BaseType, StringTraits >::FormatMessage ( UINT  nFormatID,
  ... 
)
inline

Definition at line 780 of file cstringt.h.

781  {
782  va_list va;
783  va_start(va, nFormatID);
784 
785  CStringT str;
786  if (str.LoadString(nFormatID))
787  FormatMessageV(str, &va);
788 
789  va_end(va);
790  }
#define va_end(ap)
Definition: acmsvcex.h:90
const WCHAR * str
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
void FormatMessageV(PCXSTR pszFormat, va_list *pArgList)
Definition: cstringt.h:801

Referenced by CZipExtract::ShowExtractError().

◆ FormatMessage() [2/2]

template<typename BaseType , class StringTraits >
void __cdecl ATL::CStringT< BaseType, StringTraits >::FormatMessage ( PCXSTR  pszFormat,
  ... 
)
inline

Definition at line 792 of file cstringt.h.

793  {
794  va_list va;
795  va_start(va, pszFormat);
796  FormatMessageV(pszFormat, &va);
797  va_end(va);
798  }
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
void FormatMessageV(PCXSTR pszFormat, va_list *pArgList)
Definition: cstringt.h:801

◆ FormatMessageV()

template<typename BaseType , class StringTraits >
void ATL::CStringT< BaseType, StringTraits >::FormatMessageV ( PCXSTR  pszFormat,
va_list pArgList 
)
inline

Definition at line 801 of file cstringt.h.

802  {
803  PXSTR psz = StringTraits::FormatMessageV(pszFormat, pArgList);
804  if (!psz)
806 
807  *this = psz;
808  ::LocalFree(psz);
809  }
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577

Referenced by ATL::CStringT< BaseType, StringTraits >::FormatMessage().

◆ FormatV()

template<typename BaseType , class StringTraits >
void ATL::CStringT< BaseType, StringTraits >::FormatV ( PCXSTR  pszFormat,
va_list  args 
)
inline

Definition at line 771 of file cstringt.h.

772  {
773  int nLength = StringTraits::FormatV(NULL, pszFormat, args);
774 
776  StringTraits::FormatV(pszBuffer, pszFormat, args);
778  }
_In_ DWORD nLength
Definition: wincon.h:473
Definition: match.c:390
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
#define NULL
Definition: types.h:112

Referenced by ATL::CStringT< BaseType, StringTraits >::Format().

◆ GetEnvironmentVariable()

template<typename BaseType , class StringTraits >
BOOL ATL::CStringT< BaseType, StringTraits >::GetEnvironmentVariable ( _In_z_ PCXSTR  pszVar)
inline

◆ Left()

template<typename BaseType , class StringTraits >
CStringT ATL::CStringT< BaseType, StringTraits >::Left ( int  nCount) const
inline

◆ LoadFromPtr_()

template<typename BaseType , class StringTraits >
template<typename T_CHAR >
void ATL::CStringT< BaseType, StringTraits >::LoadFromPtr_ ( _In_opt_z_ const T_CHAR pszSrc)
inlineprotected

Definition at line 418 of file cstringt.h.

419  {
420  if (pszSrc == NULL)
421  return;
422  if (IS_INTRESOURCE(pszSrc))
423  LoadString(LOWORD(pszSrc));
424  else
425  *this = pszSrc;
426  }
#define IS_INTRESOURCE(i)
Definition: winuser.h:580
#define NULL
Definition: types.h:112
BOOL LoadString(_In_ UINT nID)
Definition: cstringt.h:591
#define LOWORD(l)
Definition: pedump.c:82

Referenced by ATL::CStringT< BaseType, StringTraits >::CStringT().

◆ LoadString() [1/2]

◆ LoadString() [2/2]

template<typename BaseType , class StringTraits >
_Check_return_ BOOL ATL::CStringT< BaseType, StringTraits >::LoadString ( _In_ HINSTANCE  hInstance,
_In_ UINT  nID 
)
inline

Definition at line 596 of file cstringt.h.

598  {
599  const ATLSTRINGRESOURCEIMAGE* pImage = AtlGetStringResourceImage(hInstance, nID);
600  if (pImage == NULL) return FALSE;
601 
602  int nLength = StringTraits::GetBaseTypeLength(pImage->achString, pImage->nLength);
604  StringTraits::ConvertToBaseType(pszBuffer, nLength, pImage->achString, pImage->nLength);
606 
607  return TRUE;
608  }
#define TRUE
Definition: types.h:120
_In_ DWORD nLength
Definition: wincon.h:473
const ATLSTRINGRESOURCEIMAGE * AtlGetStringResourceImage(_In_ HINSTANCE hInstance, _In_ UINT id)
Definition: atlcore.h:273
HINSTANCE hInstance
Definition: charmap.c:20
#define FALSE
Definition: types.h:117
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
#define NULL
Definition: types.h:112

◆ MakeLower()

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::MakeLower ( )
inline

◆ MakeUpper()

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::MakeUpper ( )
inline

◆ Mid() [1/2]

template<typename BaseType , class StringTraits >
CStringT ATL::CStringT< BaseType, StringTraits >::Mid ( int  iFirst,
int  nCount 
) const
inline

Definition at line 700 of file cstringt.h.

701  {
703 
704  if (iFirst < 0)
705  iFirst = 0;
706  if (nCount < 0)
707  nCount = 0;
708  if (iFirst > nLength)
709  iFirst = nLength;
710  if (iFirst + nCount > nLength)
711  nCount = nLength - iFirst;
712 
713  return CStringT(CThisSimpleString::GetString() + iFirst, nCount);
714  }
_In_ DWORD nLength
Definition: wincon.h:473

Referenced by CAutoComplete::LoadQuickComplete(), CConfigParser::ReadSection(), and ATL::CStringT< BaseType, StringTraits >::Tokenize().

◆ Mid() [2/2]

template<typename BaseType , class StringTraits >
CStringT ATL::CStringT< BaseType, StringTraits >::Mid ( int  iFirst) const
inline

Definition at line 716 of file cstringt.h.

717  {
719 
720  if (iFirst < 0)
721  iFirst = 0;
722  if (iFirst > nLength)
723  iFirst = nLength;
724 
725  return CStringT(CThisSimpleString::GetString() + iFirst, nLength - iFirst);
726  }
_In_ DWORD nLength
Definition: wincon.h:473

◆ operator+=() [1/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator+= ( _In_ const CThisSimpleString str)
inline

Definition at line 573 of file cstringt.h.

574  {
576  return *this;
577  }
const WCHAR * str

◆ operator+=() [2/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator+= ( _In_z_ PCXSTR  pszSrc)
inline

Definition at line 579 of file cstringt.h.

580  {
582  return *this;
583  }

◆ operator+=() [3/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator+= ( _In_ XCHAR  ch)
inline

Definition at line 585 of file cstringt.h.

586  {
588  return *this;
589  }

◆ operator=() [1/4]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator= ( _In_ const CStringT< BaseType, StringTraits > &  strSrc)
inline

Definition at line 465 of file cstringt.h.

466  {
468  return *this;
469  }

◆ operator=() [2/4]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator= ( _In_opt_z_ PCXSTR  pszSrc)
inline

Definition at line 471 of file cstringt.h.

472  {
474  return *this;
475  }

◆ operator=() [3/4]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator= ( _In_opt_z_ PCYSTR  pszSrc)
inline

Definition at line 477 of file cstringt.h.

478  {
479  int length = pszSrc ? StringTraits::GetBaseTypeLength(pszSrc) : 0;
480  if (length > 0)
481  {
483  StringTraits::ConvertToBaseType(result, length, pszSrc);
485  }
486  else
487  {
489  }
490  return *this;
491  }
GLuint64EXT * result
Definition: glext.h:11304
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376

◆ operator=() [4/4]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::operator= ( _In_ const CThisSimpleString strSrc)
inline

Definition at line 493 of file cstringt.h.

494  {
496  return *this;
497  }

◆ Replace() [1/2]

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::Replace ( PCXSTR  pszOld,
PCXSTR  pszNew 
)
inline

Definition at line 811 of file cstringt.h.

812  {
814 
816  const int nOldLen = StringTraits::GetBaseTypeLength(pszOld);
817  const int nNewLen = StringTraits::GetBaseTypeLength(pszNew);
818  const int nDiff = nNewLen - nOldLen;
819  int nResultLength = nLength;
820 
821  PCXSTR pszFound;
822  while ((pszFound = StringTraits::FindString(pszString, pszOld)))
823  {
824  nResultLength += nDiff;
825  pszString = pszFound + nOldLen;
826  }
827 
829  return 0;
830 
831  PXSTR pszResult = CThisSimpleString::GetBuffer(nResultLength);
832  PXSTR pszNext;
833  int nCount = 0, nRemaining = nLength;
834  while (nRemaining && (pszNext = StringTraits::FindString(pszResult, pszOld)))
835  {
836  nRemaining -= (pszNext - pszResult);
837  nRemaining -= nOldLen;
838  if (nRemaining > 0)
839  CThisSimpleString::CopyCharsOverlapped(pszNext + nNewLen, nRemaining + 1, pszNext + nOldLen, nRemaining + 1);
840  CThisSimpleString::CopyCharsOverlapped(pszNext, nNewLen, pszNew, nNewLen);
841  pszResult = pszNext + nNewLen;
842  nCount++;
843  }
844 
846 
847  return nCount;
848  }
_In_ DWORD nLength
Definition: wincon.h:473
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
static int FindString(IN FILE *pStream, IN PCWSTR pszFilePath OPTIONAL, IN PCWSTR pszSearchString)
Definition: find.c:106
static void __cdecl CopyCharsOverlapped(_Out_writes_to_(nDestLen, nDestLen) XCHAR *pchDest, _In_ size_t nDestLen, _In_reads_(nChars) const XCHAR *pchSrc, _In_ int nChars)
Definition: atlsimpstr.h:432
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505

Referenced by CACLCustomMRU::AddMRUString(), CCopyToMenu::DoRealCopy(), CMoveToMenu::DoRealMove(), CDownloadManager::DownloadDlgProc(), and CZipExtract::Extract().

◆ Replace() [2/2]

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::Replace ( XCHAR  chOld,
XCHAR  chNew 
)
inline

Definition at line 850 of file cstringt.h.

851  {
853  PXSTR pszFirst = StringTraits::FindChar(pszString, chOld);
854  if (!pszFirst)
855  return 0;
856 
858  int nCount = 0;
859 
861  pszFirst = pszBuffer + (pszFirst - pszString);
862  do {
863  *pszFirst = chNew;
864  ++nCount;
865  } while ((pszFirst = StringTraits::FindChar(pszFirst + 1, chOld)));
866 
868  return nCount;
869  }
_In_ DWORD nLength
Definition: wincon.h:473
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505

◆ ReverseFind()

template<typename BaseType , class StringTraits >
int ATL::CStringT< BaseType, StringTraits >::ReverseFind ( _In_ XCHAR  ch) const
throw (
)
inline

Definition at line 682 of file cstringt.h.

683  {
685  PCXSTR pszResult = StringTraits::FindCharReverse(pszString, ch);
686 
687  return pszResult ? ((int)(pszResult - pszString)) : -1;
688  }
CThisSimpleString::PCXSTR PCXSTR
Definition: cstringt.h:377
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Referenced by CAutoComplete::GetStemText(), and CAutoComplete::LoadQuickComplete().

◆ Right()

template<typename BaseType , class StringTraits >
CStringT ATL::CStringT< BaseType, StringTraits >::Right ( int  nCount) const
inline

Definition at line 740 of file cstringt.h.

741  {
743 
744  if (nCount < 0)
745  nCount = 0;
746  if (nCount > nLength)
747  nCount = nLength;
748 
749  return CStringT(CThisSimpleString::GetString() + nLength - nCount, nCount);
750  }
_In_ DWORD nLength
Definition: wincon.h:473

◆ Tokenize()

template<typename BaseType , class StringTraits >
CStringT ATL::CStringT< BaseType, StringTraits >::Tokenize ( _In_z_ PCXSTR  pszTokens,
_Inout_ int iStart 
) const
inline

Definition at line 872 of file cstringt.h.

873  {
874  ATLASSERT(iStart >= 0);
875 
876  if (iStart < 0)
878 
879  if (!pszTokens || !pszTokens[0])
880  {
882  {
883  return Mid(iStart);
884  }
885  iStart = -1;
886  return CStringT();
887  }
888 
890  {
891  int iRangeOffset = StringTraits::StringSpanIncluding(CThisSimpleString::GetString() + iStart, pszTokens);
892 
893  if (iRangeOffset + iStart < CThisSimpleString::GetLength())
894  {
895  int iNewStart = iStart + iRangeOffset;
896  int nCount = StringTraits::StringSpanExcluding(CThisSimpleString::GetString() + iNewStart, pszTokens);
897 
898  iStart = iNewStart + nCount + 1;
899 
900  return Mid(iNewStart, nCount);
901  }
902  }
903 
904  iStart = -1;
905  return CStringT();
906  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
CStringT Mid(int iFirst, int nCount) const
Definition: cstringt.h:700
_In_ UINT iStart
Definition: wingdi.h:3620
#define AtlThrow(x)
Definition: atldef.h:20
#define E_INVALIDARG
Definition: ddrawi.h:101

Referenced by FNFDINOTIFY().

◆ Trim() [1/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::Trim ( )
inline

Definition at line 971 of file cstringt.h.

972  {
973  return Trim(DefaultTrimChars());
974  }
static PCXSTR DefaultTrimChars()
Definition: cstringt.h:908
CStringT & Trim()
Definition: cstringt.h:971

Referenced by ATL::CStringT< BaseType, StringTraits >::Trim().

◆ Trim() [2/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::Trim ( XCHAR  chTarget)
inline

Definition at line 976 of file cstringt.h.

977  {
978  XCHAR str[2] = { chTarget, 0 };
979  return Trim(str);
980  }
const WCHAR * str
CThisSimpleString::XCHAR XCHAR
Definition: cstringt.h:375
CStringT & Trim()
Definition: cstringt.h:971

◆ Trim() [3/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::Trim ( PCXSTR  pszTargets)
inline

Definition at line 982 of file cstringt.h.

983  {
984  return TrimRight(pszTargets).TrimLeft(pszTargets);
985  }
CStringT & TrimLeft()
Definition: cstringt.h:915
CStringT & TrimRight()
Definition: cstringt.h:946

◆ TrimLeft() [1/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimLeft ( )
inline

Definition at line 915 of file cstringt.h.

916  {
917  return TrimLeft(DefaultTrimChars());
918  }
CStringT & TrimLeft()
Definition: cstringt.h:915
static PCXSTR DefaultTrimChars()
Definition: cstringt.h:908

Referenced by ATL::CStringT< BaseType, StringTraits >::Trim(), and ATL::CStringT< BaseType, StringTraits >::TrimLeft().

◆ TrimLeft() [2/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimLeft ( XCHAR  chTarget)
inline

Definition at line 920 of file cstringt.h.

921  {
922  XCHAR str[2] = { chTarget, 0 };
923  return TrimLeft(str);
924  }
CStringT & TrimLeft()
Definition: cstringt.h:915
const WCHAR * str
CThisSimpleString::XCHAR XCHAR
Definition: cstringt.h:375

◆ TrimLeft() [3/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimLeft ( PCXSTR  pszTargets)
inline

Definition at line 926 of file cstringt.h.

927  {
930  int nCount = 0;
931 
932  while (nCount < nLength && StringTraits::FindChar(pszTargets, pszBuffer[nCount]))
933  nCount++;
934 
935  if (nCount > 0)
936  {
937  CThisSimpleString::CopyCharsOverlapped(pszBuffer, nLength - nCount, pszBuffer + nCount, nLength - nCount);
938  nLength -= nCount;
939  }
941 
942  return *this;
943  }
_In_ DWORD nLength
Definition: wincon.h:473
CThisSimpleString::PXSTR PXSTR
Definition: cstringt.h:376
static void __cdecl CopyCharsOverlapped(_Out_writes_to_(nDestLen, nDestLen) XCHAR *pchDest, _In_ size_t nDestLen, _In_reads_(nChars) const XCHAR *pchSrc, _In_ int nChars)
Definition: atlsimpstr.h:432

◆ TrimRight() [1/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimRight ( )
inline

Definition at line 946 of file cstringt.h.

947  {
948  return TrimRight(DefaultTrimChars());
949  }
CStringT & TrimRight()
Definition: cstringt.h:946
static PCXSTR DefaultTrimChars()
Definition: cstringt.h:908

Referenced by ATL::CStringT< BaseType, StringTraits >::Trim(), and ATL::CStringT< BaseType, StringTraits >::TrimRight().

◆ TrimRight() [2/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimRight ( XCHAR  chTarget)
inline

Definition at line 951 of file cstringt.h.

952  {
953  XCHAR str[2] = { chTarget, 0 };
954  return TrimRight(str);
955  }
const WCHAR * str
CThisSimpleString::XCHAR XCHAR
Definition: cstringt.h:375
CStringT & TrimRight()
Definition: cstringt.h:946

◆ TrimRight() [3/3]

template<typename BaseType , class StringTraits >
CStringT& ATL::CStringT< BaseType, StringTraits >::TrimRight ( PCXSTR  pszTargets)
inline

Friends And Related Function Documentation

◆ operator!= [1/7]

template<typename BaseType , class StringTraits >
bool operator!= ( const CStringT< BaseType, StringTraits > &  str1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 536 of file cstringt.h.

537  {
538  return str1.Compare(str2) != 0;
539  }

◆ operator!= [2/7]

template<typename BaseType , class StringTraits >
bool operator!= ( const CStringT< BaseType, StringTraits > &  str1,
PCXSTR  psz2 
)
throw (
)
friend

Definition at line 541 of file cstringt.h.

542  {
543  return str1.Compare(psz2) != 0;
544  }

◆ operator!= [3/7]

template<typename BaseType , class StringTraits >
bool operator!= ( const CStringT< BaseType, StringTraits > &  str1,
PCYSTR  psz2 
)
throw (
)
friend

Definition at line 546 of file cstringt.h.

547  {
548  CStringT tmp(psz2, str1.GetManager());
549  return tmp.Compare(str1) != 0;
550  }

◆ operator!= [4/7]

template<typename BaseType , class StringTraits >
bool operator!= ( const CStringT< BaseType, StringTraits > &  str1,
XCHAR  ch2 
)
throw (
)
friend

Definition at line 552 of file cstringt.h.

553  {
554  return str1.GetLength() != 1 || str1[0] != ch2;
555  }

◆ operator!= [5/7]

template<typename BaseType , class StringTraits >
bool operator!= ( PCXSTR  psz1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 557 of file cstringt.h.

558  {
559  return str2.Compare(psz1) != 0;
560  }

◆ operator!= [6/7]

template<typename BaseType , class StringTraits >
bool operator!= ( PCYSTR  psz1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 562 of file cstringt.h.

563  {
564  CStringT tmp(psz1, str2.GetManager());
565  return tmp.Compare(str2) != 0;
566  }

◆ operator!= [7/7]

template<typename BaseType , class StringTraits >
bool operator!= ( XCHAR  ch1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 568 of file cstringt.h.

569  {
570  return str2.GetLength() != 1 || str2[0] != ch1;
571  }

◆ operator== [1/7]

template<typename BaseType , class StringTraits >
bool operator== ( const CStringT< BaseType, StringTraits > &  str1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 499 of file cstringt.h.

500  {
501  return str1.Compare(str2) == 0;
502  }

◆ operator== [2/7]

template<typename BaseType , class StringTraits >
bool operator== ( const CStringT< BaseType, StringTraits > &  str1,
PCXSTR  psz2 
)
throw (
)
friend

Definition at line 504 of file cstringt.h.

505  {
506  return str1.Compare(psz2) == 0;
507  }

◆ operator== [3/7]

template<typename BaseType , class StringTraits >
bool operator== ( const CStringT< BaseType, StringTraits > &  str1,
PCYSTR  psz2 
)
throw (
)
friend

Definition at line 509 of file cstringt.h.

510  {
511  CStringT tmp(psz2, str1.GetManager());
512  return tmp.Compare(str1) == 0;
513  }

◆ operator== [4/7]

template<typename BaseType , class StringTraits >
bool operator== ( const CStringT< BaseType, StringTraits > &  str1,
XCHAR  ch2 
)
throw (
)
friend

Definition at line 515 of file cstringt.h.

516  {
517  return str1.GetLength() == 1 && str1[0] == ch2;
518  }

◆ operator== [5/7]

template<typename BaseType , class StringTraits >
bool operator== ( PCXSTR  psz1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 520 of file cstringt.h.

521  {
522  return str2.Compare(psz1) == 0;
523  }

◆ operator== [6/7]

template<typename BaseType , class StringTraits >
bool operator== ( PCYSTR  psz1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 525 of file cstringt.h.

526  {
527  CStringT tmp(psz1, str2.GetManager());
528  return tmp.Compare(str2) == 0;
529  }

◆ operator== [7/7]

template<typename BaseType , class StringTraits >
bool operator== ( XCHAR  ch1,
const CStringT< BaseType, StringTraits > &  str2 
)
throw (
)
friend

Definition at line 531 of file cstringt.h.

532  {
533  return str2.GetLength() == 1 && str2[0] == ch1;
534  }

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