mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 05:24:10 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63675 954022d7-b5bf-4e40-9824-e11837661b57
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
#ifndef _XPS_XPSLIB_WSTRING_H
|
|
#define _XPS_XPSLIB_WSTRING_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace XPS
|
|
{
|
|
class CWStringBuffer;
|
|
class CWString
|
|
{
|
|
public:
|
|
CWString();
|
|
CWString(const wchar_t* wsString);
|
|
CWString(const std::wstring& wsString);
|
|
CWString(const CWString& wsString);
|
|
CWString(wchar_t* wsString, bool bCopy, int nLen = -1);
|
|
~CWString();
|
|
void create(const wchar_t*, bool bCopy, int nLen = -1);
|
|
void create(const std::wstring& sString, bool bCopy);
|
|
void operator=(const wchar_t* wsString);
|
|
void operator=(const CWString& wsString);
|
|
bool operator<(const CWString& wsString) const;
|
|
bool operator>(const CWString& wsString) const;
|
|
bool operator==(const CWString& wsString) const;
|
|
bool operator==(const wchar_t* wsString) const;
|
|
unsigned int size() const;
|
|
bool empty() const;
|
|
wchar_t operator[](const unsigned int& unIndex) const;
|
|
const wchar_t* c_str() const;
|
|
void clear();
|
|
|
|
int tointeger() const;
|
|
|
|
std::vector<CWString> split(wchar_t wChar, bool bCopy = false);
|
|
|
|
private:
|
|
|
|
void* m_pBuffer;
|
|
unsigned int m_unLen;
|
|
bool m_bOwnBuffer;
|
|
};
|
|
}
|
|
|
|
#endif //_XPS_XPSLIB_WSTRING_H
|