mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
temp fix for U16toU8 edgecase
This commit is contained in:
parent
cff382a8ce
commit
f71e1349c1
@ -1,8 +1,12 @@
|
||||
#include "CNStructs.hpp"
|
||||
|
||||
std::string U16toU8(char16_t* src) {
|
||||
try {
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> convert;
|
||||
return convert.to_bytes(src);
|
||||
} catch(std::exception e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
// returns number of char16_t that was written at des
|
||||
|
Loading…
Reference in New Issue
Block a user