Lines Matching refs:eos
3943 scheme_ok(const char *s, const char *eos) in scheme_ok() argument
3946 EVUTIL_ASSERT(eos >= s); in scheme_ok()
3947 if (s == eos) in scheme_ok()
3951 while (++s < eos) { in scheme_ok()
3963 userinfo_ok(const char *s, const char *eos) in userinfo_ok() argument
3965 while (s < eos) { in userinfo_ok()
3970 else if (*s == '%' && s+2 < eos && in userinfo_ok()
3981 regname_ok(const char *s, const char *eos) in regname_ok() argument
3983 while (s && s<eos) { in regname_ok()
3998 parse_port(const char *s, const char *eos) in parse_port() argument
4001 while (s < eos) { in parse_port()
4014 bracket_addr_ok(const char *s, const char *eos) in bracket_addr_ok() argument
4016 if (s + 3 > eos || *s != '[' || *(eos-1) != ']') in bracket_addr_ok()
4023 --eos; in bracket_addr_ok()
4026 while (s < eos && *s != '.') { in bracket_addr_ok()
4035 while (s < eos) { in bracket_addr_ok()
4047 ev_ssize_t n_chars = eos-s-2; in bracket_addr_ok()
4058 parse_authority(struct evhttp_uri *uri, char *s, char *eos) in parse_authority() argument
4061 EVUTIL_ASSERT(eos); in parse_authority()
4062 if (eos == s) { in parse_authority()
4074 if (cp && cp < eos) { in parse_authority()
4087 for (port=eos-1; port >= cp && EVUTIL_ISDIGIT(*port); --port) in parse_authority()
4090 if (port+1 == eos) /* Leave port unspecified; the RFC allows a in parse_authority()
4093 else if ((uri->port = parse_port(port+1, eos))<0) in parse_authority()
4095 eos = port; in parse_authority()
4099 EVUTIL_ASSERT(eos >= cp); in parse_authority()
4100 if (*cp == '[' && eos >= cp+2 && *(eos-1) == ']') { in parse_authority()
4102 if (! bracket_addr_ok(cp, eos)) in parse_authority()
4106 if (! regname_ok(cp,eos)) /* Match IPv4Address or reg-name */ in parse_authority()
4109 uri->host = mm_malloc(eos-cp+1); in parse_authority()
4114 memcpy(uri->host, cp, eos-cp); in parse_authority()
4115 uri->host[eos-cp] = '\0'; in parse_authority()