| 919 | |
| 920 | template <typename IntType = int32_t> |
| 921 | Result<std::vector<IntType>> ParseInts(std::string_view v) { |
| 922 | std::vector<IntType> result; |
| 923 | if (v.empty()) return result; |
| 924 | auto parts = Split(v); |
| 925 | result.reserve(parts.size()); |
| 926 | for (const auto& p : parts) { |
| 927 | ARROW_ASSIGN_OR_RAISE(auto i, ParseInt<IntType>(p)); |
| 928 | result.push_back(i); |
| 929 | } |
| 930 | return result; |
| 931 | } |
| 932 | |
| 933 | Status Invalid() { return InvalidFormatString(view_); } |
| 934 |