Files
envi-code/SourceCode/Code2026/Dimension/WCString.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

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;
};