19std::string
ToUTF8 (
const std::wstring& wstr)
21 return std::wstring_convert<std::codecvt_utf8<wchar_t>> ().to_bytes (wstr);
24std::string
ToUTF8 (
const wchar_t* wstr)
26 return std::wstring_convert<std::codecvt_utf8<wchar_t>> ().to_bytes (wstr);
29std::string
ToUTF8 (
const wxString& wstr)
31 return wstr.ToStdString (wxGet_wxConvUTF8 ());
36 return std::wstring_convert<std::codecvt_utf8<wchar_t>> ().from_bytes (
str);
41 return std::wstring_convert<std::codecvt_utf8<wchar_t>>().from_bytes(
47 return std::wstring_convert<std::codecvt_utf8<wchar_t>> ().from_bytes (
str);
52 return str.ToStdWstring ();
57 return wxString::FromUTF8 (
str);
62 return wxString::FromUTF8(
str.data(),
str.length());
67 return wxString::FromUTF8(
str);
72 return wxString (
str);
77 return wxString(
str.data(),
str.size());
Declare functions to perform UTF-8 to std::wstring conversions.
std::string ToUTF8(const std::wstring &wstr)
std::wstring ToWString(const std::string &str)
wxString ToWXString(const std::string &str)