export data flag, fix android create dir
This commit is contained in:
@@ -579,8 +579,7 @@ std::wstring str2wstr(const std::string& str)
|
||||
//return converted;
|
||||
if (str.empty())
|
||||
return {};
|
||||
using convert_typeX = std::codecvt_utf8<wchar_t>;
|
||||
std::wstring_convert<convert_typeX, wchar_t> converterX;
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converterX;
|
||||
return converterX.from_bytes(str);
|
||||
}
|
||||
|
||||
@@ -594,8 +593,7 @@ std::string wstr2str(const std::wstring & wstr)
|
||||
//return converted;
|
||||
if (wstr.empty())
|
||||
return {};
|
||||
using convert_typeX = std::codecvt_utf8<wchar_t>;
|
||||
std::wstring_convert<convert_typeX, wchar_t> converterX;
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converterX;
|
||||
return converterX.to_bytes(wstr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user