Lines Matching refs:eos

1720 	char *eos = line + len;  in evhttp_parse_request_line()  local
1729 while (eos > line && *(eos-1) == ' ') { in evhttp_parse_request_line()
1730 *(eos-1) = '\0'; in evhttp_parse_request_line()
1731 --eos; in evhttp_parse_request_line()
4510 scheme_ok(const char *s, const char *eos) in scheme_ok() argument
4513 EVUTIL_ASSERT(eos >= s); in scheme_ok()
4514 if (s == eos) in scheme_ok()
4518 while (++s < eos) { in scheme_ok()
4530 userinfo_ok(const char *s, const char *eos) in userinfo_ok() argument
4532 while (s < eos) { in userinfo_ok()
4537 else if (*s == '%' && s+2 < eos && in userinfo_ok()
4548 regname_ok(const char *s, const char *eos) in regname_ok() argument
4550 while (s && s<eos) { in regname_ok()
4565 parse_port(const char *s, const char *eos) in parse_port() argument
4568 while (s < eos) { in parse_port()
4583 bracket_addr_ok(const char *s, const char *eos) in bracket_addr_ok() argument
4585 if (s + 3 > eos || *s != '[' || *(eos-1) != ']') in bracket_addr_ok()
4592 --eos; in bracket_addr_ok()
4595 while (s < eos && *s != '.') { in bracket_addr_ok()
4604 while (s < eos) { in bracket_addr_ok()
4616 ev_ssize_t n_chars = eos-s-2; in bracket_addr_ok()
4627 parse_authority(struct evhttp_uri *uri, char *s, char *eos) in parse_authority() argument
4630 EVUTIL_ASSERT(eos); in parse_authority()
4631 if (eos == s) { in parse_authority()
4643 if (cp && cp < eos) { in parse_authority()
4656 for (port=eos-1; port >= cp && EVUTIL_ISDIGIT_(*port); --port) in parse_authority()
4659 if (port+1 == eos) /* Leave port unspecified; the RFC allows a in parse_authority()
4662 else if ((uri->port = parse_port(port+1, eos))<0) in parse_authority()
4664 eos = port; in parse_authority()
4668 EVUTIL_ASSERT(eos >= cp); in parse_authority()
4669 if (*cp == '[' && eos >= cp+2 && *(eos-1) == ']') { in parse_authority()
4671 if (! bracket_addr_ok(cp, eos)) in parse_authority()
4675 if (! regname_ok(cp,eos)) /* Match IPv4Address or reg-name */ in parse_authority()
4678 uri->host = mm_malloc(eos-cp+1); in parse_authority()
4683 memcpy(uri->host, cp, eos-cp); in parse_authority()
4684 uri->host[eos-cp] = '\0'; in parse_authority()