| 161 | } // namespace |
| 162 | |
| 163 | Result<std::wstring> UTF8ToWideString(std::string_view source) { |
| 164 | try { |
| 165 | return UTF8ToWideStringInternal(source); |
| 166 | } catch (std::exception& e) { |
| 167 | return Status::Invalid(e.what()); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | ARROW_EXPORT Result<std::string> WideStringToUTF8(const std::wstring& source) { |
| 172 | try { |