86 lines
1.7 KiB
C++
86 lines
1.7 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XWString.h
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: ÀàµÄÉùÃ÷
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XWCSTRING_H_
|
|
#define _XWCSTRING_H_
|
|
|
|
#ifdef _UNICODE
|
|
#define XString XWString
|
|
#define tstrchr_new wstrchr_new
|
|
#define tstrnew wstrnew
|
|
#endif
|
|
|
|
class GEOAPI XWString
|
|
{
|
|
public:
|
|
|
|
XWString(int nLen = 256);
|
|
|
|
XWString(const XWString &szSrc);
|
|
|
|
XWString(const wchar_t *pszFormat, ...);
|
|
|
|
~XWString();
|
|
|
|
int Length();
|
|
|
|
int operator ! () const;
|
|
|
|
int operator != (const wchar_t *pszSrc) const;
|
|
|
|
int operator != (const XWString &szSrc) const;
|
|
|
|
int operator == (const wchar_t *pszSrc) const ;
|
|
|
|
int operator == (const XWString &szSrc) const;
|
|
|
|
XWString & operator = (const wchar_t * pszSrc);
|
|
XWString & operator = (const XWString & szSrc);
|
|
|
|
XWString & 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
|
|
|
|
XWString(const CString &strSrc);
|
|
|
|
XWString & operator << (int iVal);
|
|
|
|
XWString & operator << (long iVal);
|
|
|
|
XWString & operator << (double dVal);
|
|
|
|
XWString & operator << (double * pdVal);
|
|
|
|
XWString & operator << (const CString &strSrc);
|
|
|
|
XWString & operator = (const CString &strSrc);
|
|
|
|
int operator == (const CString &strSrc) const;
|
|
|
|
int operator != (const CString &strSrc) const;
|
|
#endif
|
|
|
|
public:
|
|
|
|
wchar_t *str;
|
|
};
|
|
|
|
#endif
|