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

88 lines
1.8 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TWCString.h
// = Version : ver2.0
// = Author : xlc
// = CreateDate : 2002-09-09
// = Description: 类的声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TWCSTRING_H_
#define _TWCSTRING_H_
#ifdef _UNICODE
#define TCString TWCString
#define tstrchr_new WStrchrNew
#define tstrnew WStrNew
#endif
class GEOAPI TWCString
{
public:
TWCString(int nLen = 256);
TWCString(const TWCString &szSrc);
TWCString(const wchar_t *pszFormat, ...);
~TWCString();
int Length();
int operator ! () const;
int operator != (const wchar_t *pszSrc) const;
int operator != (const TWCString &szSrc) const;
int operator == (const wchar_t *pszSrc) const ;
int operator == (const TWCString &szSrc) const;
TWCString & operator = (const wchar_t * pszSrc);
TWCString & operator = (const TWCString & szSrc);
TWCString & 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;
CString cs() const { return str; };
wchar_t * StrChr(wchar_t szVal);
#ifdef _UNICODE
TWCString(const CString &strSrc);
TWCString & operator << (int iVal);
TWCString & operator << (long iVal);
TWCString & operator << (double dVal);
TWCString & operator << (double * pdVal);
TWCString & operator << (const CString &strSrc);
TWCString & operator = (const CString &strSrc);
int operator == (const CString &strSrc) const;
int operator != (const CString &strSrc) const;
#endif
public:
wchar_t *str;
};
#endif