#include <string>
#include <string_view>
Go to the source code of this file.
◆ convert_utf16_to_utf8()
| std::string convert_utf16_to_utf8 |
( |
std::u16string_view const & |
s | ) |
|
Converts a UTF-16 string into UTF-8.
- Parameters
-
| s | Source UTF-16 code units. |
- Returns
- UTF-8 string with malformed input replaced by U+FFFD.
◆ convert_utf8_to_utf16()
| std::u16string convert_utf8_to_utf16 |
( |
std::string_view const & |
s | ) |
|
Converts a UTF-8 string into UTF-16.
- Parameters
-
| s | Source UTF-8 byte sequence. |
- Returns
- UTF-16 string with malformed input replaced by U+FFFD.