Files
core/XpsFile/XpsLib/WString.h
Oleg.Korshul b8f1d41eef полностью реализован механизм билда статической и динамической библиотеки
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63675 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:17:54 +03:00

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