68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
#pragma once
|
|
|
|
class WCString
|
|
{
|
|
public:
|
|
|
|
WCString(int nLen = 256);
|
|
|
|
WCString(const WCString &szSrc);
|
|
|
|
WCString(const wchar_t *pszFormat, ...);
|
|
|
|
~WCString();
|
|
|
|
int Length();
|
|
|
|
int operator ! () const;
|
|
|
|
int operator != (const wchar_t *pszSrc) const;
|
|
|
|
int operator != (const WCString &szSrc) const;
|
|
|
|
int operator == (const wchar_t *pszSrc) const ;
|
|
|
|
int operator == (const WCString &szSrc) const;
|
|
|
|
WCString & operator = (const wchar_t * pszSrc);
|
|
WCString & operator = (const WCString & szSrc);
|
|
|
|
WCString & operator << (const wchar_t *pszVal);
|
|
|
|
operator const wchar_t * () const;
|
|
|
|
operator wchar_t * ();
|
|
|
|
wchar_t & operator [] (int nIndex);
|
|
|
|
const wchar_t & operator [] (int nIndex) const;
|
|
|
|
wchar_t * _StrChr(wchar_t szVal);
|
|
|
|
#ifdef _UNICODE
|
|
|
|
WCString(const CString &strSrc);
|
|
|
|
WCString & operator << (int iVal);
|
|
|
|
WCString & operator << (long iVal);
|
|
|
|
WCString & operator << (double dVal);
|
|
|
|
WCString & operator << (double * pdVal);
|
|
|
|
WCString & operator << (const CString &strSrc);
|
|
|
|
WCString & operator = (const CString &strSrc);
|
|
|
|
int operator == (const CString &strSrc) const;
|
|
|
|
int operator != (const CString &strSrc) const;
|
|
#endif
|
|
|
|
public:
|
|
|
|
wchar_t *str;
|
|
};
|
|
|