| 108 | } |
| 109 | |
| 110 | static bool regex_parse_digits(const char *p, size_t *i, uint64_t *value) { |
| 111 | bool any = false; |
| 112 | *value = 0; |
| 113 | while (p[*i] >= '0' && p[*i] <= '9') { |
| 114 | *value = regex_sat_add(regex_sat_mul(*value, 10), (uint64_t)(p[*i] - '0')); |
| 115 | (*i)++; |
| 116 | any = true; |
| 117 | } |
| 118 | return any; |
| 119 | } |
| 120 | |
| 121 | /* Parse the interval body that starts at p[i], just past the opening brace |
| 122 | * (`{` in extended syntax, `\{` in basic). On success stores the number of |
no test coverage detected