| 177 | } |
| 178 | |
| 179 | Result<std::string> UTF16StringToUTF8(std::u16string_view source) { |
| 180 | try { |
| 181 | return UTF16StringToUTF8Internal(source); |
| 182 | } catch (std::exception& e) { |
| 183 | return Status::Invalid(e.what()); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | Result<std::u16string> UTF8StringToUTF16(std::string_view source) { |
| 188 | try { |