MCPcopy Create free account
hub / github.com/apache/arrow / ParseInt

Method ParseInt

cpp/src/arrow/c/bridge.cc:881–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected