MCPcopy Create free account
hub / github.com/apache/trafficserver / mime_parse_time

Function mime_parse_time

src/proxy/hdrs/MIME.cc:3605–3618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3603}
3604
3605bool
3606mime_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

Callers 1

mime_parse_dateFunction · 0.85

Calls 1

mime_parse_integerFunction · 0.85

Tested by

no test coverage detected