[chore]: add some utils
This commit is contained in:
1 parent
2291e8127e
commit
1f7bb99c5d
2 files changed
+7
-1
No files matched your search
@@ -9,4 +9,9 @@ void ShowErrorMessage(HWND hWnd, const std::wstring &message)
|
||||
std::string wstring_to_string(const std::wstring &wstr)
|
||||
{
|
||||
return boost::locale::conv::utf_to_utf<std::string::value_type>(wstr);
|
||||
}
|
||||
|
||||
std::wstring string_to_wstring(const std::string &str)
|
||||
{
|
||||
return boost::locale::conv::utf_to_utf<std::wstring::value_type>(str);
|
||||
}
|
||||
Reference in new issue
Block a user