Lines Matching refs:wide
14 std::string SysWideToUTF8(const std::wstring& wide) { in SysWideToUTF8() argument
15 return SysWideToMultiByte(wide, CP_UTF8); in SysWideToUTF8()
23 std::string SysWideToNativeMB(const std::wstring& wide) { in SysWideToNativeMB() argument
24 return SysWideToMultiByte(wide, CP_ACP); in SysWideToNativeMB()
43 std::wstring wide; in SysMultiByteToWide() local
44 wide.resize(charcount); in SysMultiByteToWide()
45 MultiByteToWideChar(code_page, 0, mb.data(), mb_length, &wide[0], charcount); in SysMultiByteToWide()
47 return wide; in SysMultiByteToWide()
51 std::string SysWideToMultiByte(const std::wstring& wide, uint32 code_page) { in SysWideToMultiByte() argument
52 int wide_length = static_cast<int>(wide.length()); in SysWideToMultiByte()
57 int charcount = WideCharToMultiByte(code_page, 0, wide.data(), wide_length, in SysWideToMultiByte()
64 WideCharToMultiByte(code_page, 0, wide.data(), wide_length, in SysWideToMultiByte()