Function utf8ToUtf16

#include <Geode/utils/string.hpp>geode::Result<std::u16string>utf8ToUtf16()

Convert UTF-8 string to UTF-16

Parameters

str

UTF-8 string view
Return value
UTF-16 encoded std::u16string, or an error
Examples0