inline std::wstring to_wide_string(const std::string& input)
{
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
return converter.from_bytes(input);
}
inline std::string to_byte_string(const std::wstring& input)
{
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
return converter.to_bytes(input);
}
std::string std::wstring char wchar std::wstring_convert相互转换
最新推荐文章于 2024-05-11 09:04:44 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)