| 169 | } |
| 170 | |
| 171 | ARROW_EXPORT Result<std::string> WideStringToUTF8(const std::wstring& source) { |
| 172 | try { |
| 173 | return WideStringToUTF8Internal(source); |
| 174 | } catch (std::exception& e) { |
| 175 | return Status::Invalid(e.what()); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | Result<std::string> UTF16StringToUTF8(std::u16string_view source) { |
| 180 | try { |
nothing calls this directly
no test coverage detected