Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
widestring.h
1 #include <string>
2 #include <wchar.h>
3 
4 #define MAX_WSTRING2_SIZE 4096
5 
13 class widestring : public std::wstring
14 {
15 public:
16  widestring();
17  widestring(const wchar_t *__s);
18  widestring(const char *__s);
19  const char *mb_str() const; // multibyte string in local encoding
20 
21  size_t from_utf8(const char *in);
22  const char *to_utf8() const;
23 
24 private:
25  static char s_buffer[MAX_WSTRING2_SIZE];
26 };