Home | History | Annotate | Download | only in base

Lines Matching full:wide

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