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

Method ParseInts

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
emptyMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected