Skip to content
UTF16Compatibility

U8_2_U16

static std::u16string U8_2_U16(const std::string str)

Will convert str to an std::u16string (UTF-16 string).
The naming convention is U8 (like UTF-8) 2 (like "to") U16 (like UTF-16).