convertWideStringToUtf8#

Fully qualified name: carb::extras::convertWideStringToUtf8

Defined in carb/extras/Utf8Parser.h

inline std::string carb::extras::convertWideStringToUtf8(
const wchar_t *str,
)#

Convert a UTF-16 encoded string to UTF-8.

Note

This is provided for interoperability with older systems that still use wide strings. Please use UTF-8 or UTF-32 for new systems.

Parameters:

str[in] The input UTF-16 string to convert. This may not be nullptr.

Returns:

str converted to UTF-8.