Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/TWCString.h
T
2026-09-28 15:28:50 +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