[chore]: add some utils

This commit is contained in:
fanlumaster committed 2025-04-16 00:47:10 +08:00
1 parent 2291e8127e
commit 1f7bb99c5d
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -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);
}