mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
fixing typo
This commit is contained in:
parent
72aa534b81
commit
5bd9c3981f
@ -74,7 +74,7 @@ std::wstring s_2_ws(const std::string& s)
|
|||||||
return{};
|
return{};
|
||||||
const auto s_length = static_cast<int>(s.length());
|
const auto s_length = static_cast<int>(s.length());
|
||||||
auto buf = std::vector<wchar_t>(s_length);
|
auto buf = std::vector<wchar_t>(s_length);
|
||||||
const auto wide_char_count = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), sLength, buf.data(), s_length);
|
const auto wide_char_count = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s_length, buf.data(), s_length);
|
||||||
return std::wstring(buf.data(), wide_char_count);
|
return std::wstring(buf.data(), wide_char_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -816,7 +816,7 @@ std::wstring s_2_ws(const std::string& s)
|
|||||||
return{};
|
return{};
|
||||||
const auto s_length = static_cast<int>(s.length());
|
const auto s_length = static_cast<int>(s.length());
|
||||||
auto buf = std::vector<wchar_t>(s_length);
|
auto buf = std::vector<wchar_t>(s_length);
|
||||||
const auto wide_char_count = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), sLength, buf.data(), s_length);
|
const auto wide_char_count = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s_length, buf.data(), s_length);
|
||||||
return std::wstring(buf.data(), wide_char_count);
|
return std::wstring(buf.data(), wide_char_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user