convertWideStringToUtf8#
Fully qualified name: carb::extras::convertWideStringToUtf8
Defined in carb/extras/Utf8Parser.h
- inline std::string carb::extras::convertWideStringToUtf8(
- cpp::unbounded_wstring str,
Convert a wide char string (UTF-16 or UTF-32) to UTF-8.
Note
This is provided for interoperability with older systems that still use wide strings. Please use UTF-8, UTF-16 or UTF-32 for new systems.
- Parameters:
str – [in] The input wide string to convert. This may not be
nullptr.- Returns:
strconverted to UTF-8.