| 806 | inline bool StartsExponent(char c) { return c == 'e' || c == 'E'; } |
| 807 | |
| 808 | inline 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 | |
| 820 | bool ParseDecimalComponents(const char* s, size_t size, DecimalComponents* out) { |
| 821 | size_t pos = 0; |
no test coverage detected