Geode Docs
Tutorials
Classes
Function
utf8ToUtf16
#include
<Geode/utils/string.hpp>
geode
::
Result
<
std
::
u16string
>
utf8ToUtf16
(
std
::
string_view
str
)
Convert UTF-8 string to UTF-16
Parameters
str
UTF-8 string view
Return value
UTF-16 encoded std::u16string, or an error
Examples
0