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

Function ParseDigitsRun

cpp/src/arrow/util/decimal.cc:808–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806inline bool StartsExponent(char c) { return c == 'e' || c == 'E'; }
807
808inline size_t ParseDigitsRun(const char* s, size_t start, size_t size,
809 std::string_view* out) {
810 size_t pos;
811 for (pos = start; pos < size; ++pos) {
812 if (!IsDigit(s[pos])) {
813 break;
814 }
815 }
816 *out = std::string_view(s + start, pos - start);
817 return pos;
818}
819
820bool ParseDecimalComponents(const char* s, size_t size, DecimalComponents* out) {
821 size_t pos = 0;

Callers 1

ParseDecimalComponentsFunction · 0.85

Calls 1

IsDigitFunction · 0.85

Tested by

no test coverage detected