| 157 | } |
| 158 | |
| 159 | std::string UTF16ToUTF8(std::u16string_view input) { |
| 160 | return boost::locale::conv::utf_to_utf<char>(input.data(), input.data() + input.size()); |
| 161 | } |
| 162 | |
| 163 | std::u16string UTF8ToUTF16(std::string_view input) { |
| 164 | return boost::locale::conv::utf_to_utf<char16_t>(input.data(), input.data() + input.size()); |
no test coverage detected