| 879 | |
| 880 | template <typename IntType = int32_t> |
| 881 | Result<IntType> ParseInt(std::string_view v) { |
| 882 | using ArrowIntType = typename CTypeTraits<IntType>::ArrowType; |
| 883 | IntType value; |
| 884 | if (!internal::ParseValue<ArrowIntType>(v.data(), v.size(), &value)) { |
| 885 | return Invalid(); |
| 886 | } |
| 887 | return value; |
| 888 | } |
| 889 | |
| 890 | Result<TimeUnit::type> ParseTimeUnit() { |
| 891 | RETURN_NOT_OK(CheckHasNext()); |