| 3521 | } |
| 3522 | |
| 3523 | bool |
| 3524 | mime_parse_day(const char *&buf, const char *end, int *day) |
| 3525 | { |
| 3526 | const char *e; |
| 3527 | |
| 3528 | while ((buf != end) && *buf && !ParseRules::is_alpha(*buf)) { |
| 3529 | buf += 1; |
| 3530 | } |
| 3531 | |
| 3532 | e = buf; |
| 3533 | while ((e != end) && *e && ParseRules::is_alpha(*e)) { |
| 3534 | e += 1; |
| 3535 | } |
| 3536 | |
| 3537 | *day = day_names_dfa->match({buf, size_t(e - buf)}); |
| 3538 | if (*day < 0) { |
| 3539 | return false; |
| 3540 | } else { |
| 3541 | buf = e; |
| 3542 | return true; |
| 3543 | } |
| 3544 | } |
| 3545 | |
| 3546 | bool |
| 3547 | mime_parse_month(const char *&buf, const char *end, int *month) |
no test coverage detected