20 #if defined(ION_PLATFORM_WINDOWS)
27 #if defined(ION_PLATFORM_WINDOWS)
28 std::wstring Utf8ToWide(
const std::string& utf8) {
33 wide.resize(utf8.size());
35 ::MultiByteToWideChar(CP_UTF8, 0,
36 &utf8[0], static_cast<int>(utf8.size()),
37 &wide[0], static_cast<int>(wide.size()));
43 std::string WideToUtf8(
const std::wstring& wide) {
46 utf8.resize(4 * wide.size());
48 ::WideCharToMultiByte(CP_UTF8, 0,
49 &wide[0], static_cast<int>(wide.size()),
50 &utf8[0], static_cast<int>(utf8.size()),