| 3603 | } |
| 3604 | |
| 3605 | bool |
| 3606 | mime_parse_time(const char *&buf, const char *end, int *hour, int *min, int *sec) |
| 3607 | { |
| 3608 | if (!mime_parse_integer(buf, end, hour)) { |
| 3609 | return false; |
| 3610 | } |
| 3611 | if (!mime_parse_integer(buf, end, min)) { |
| 3612 | return false; |
| 3613 | } |
| 3614 | if (!mime_parse_integer(buf, end, sec)) { |
| 3615 | return false; |
| 3616 | } |
| 3617 | return true; |
| 3618 | } |
| 3619 | |
| 3620 | // This behaves slightly different than mime_parse_int(), int that we actually |
| 3621 | // return a "bool" for success / failure on "reasonable" parsing. This kinda |
no test coverage detected