UCS2 conversion for unreal

This commit is contained in:
2023-05-30 22:36:26 -04:00
parent 55aef68f8f
commit 54125c9c8c
3 changed files with 29 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ std::string to_utf8(const std::u32string &cps);
//
std::u32string from_utf8(std::string_view source, int *consumed);
// Convert a UTF8 string to a UCS-2 string.
//
std::u16string utf8_to_ucs2(std::string_view source, int *consumed);
// Get a system error message, in an OS-independent manner.
//
// These versions of strerror is thread-safe, and it never fails