2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
#ifndef __WSTRINGEX_HPP
|
|
|
|
#define __WSTRINGEX_HPP
|
|
|
|
|
|
|
|
#include <string>
|
2012-11-01 17:39:42 +01:00
|
|
|
using namespace std;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-11-01 17:39:42 +01:00
|
|
|
class wstringEx : public basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wstringEx(void) { }
|
|
|
|
wstringEx(const wchar_t *s);
|
2012-11-01 17:39:42 +01:00
|
|
|
wstringEx(const basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > &ws);
|
|
|
|
wstringEx(const string &s);
|
|
|
|
wstringEx &operator=(const string &s);
|
|
|
|
void fromUTF8(const string &s);
|
|
|
|
string toUTF8(void) const;
|
2012-01-21 21:57:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !defined(__WSTRINGEX_HPP)
|
|
|
|
|