2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
#ifndef __WSTRINGEX_HPP
|
|
|
|
#define __WSTRINGEX_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2021-09-06 21:16:45 +02:00
|
|
|
class wstringEx : public std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wstringEx(void) { }
|
|
|
|
wstringEx(const wchar_t *s);
|
2021-09-06 21:16:45 +02:00
|
|
|
wstringEx(const std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > &ws);
|
|
|
|
wstringEx(const std::string &s);
|
|
|
|
wstringEx &operator=(const std::string &s);
|
|
|
|
void fromUTF8(const std::string &s);
|
|
|
|
std::string toUTF8(void) const;
|
2012-01-21 21:57:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !defined(__WSTRINGEX_HPP)
|
|
|
|
|