Lines Matching refs:cp

4629 	char *cp, *port;  in parse_authority()  local
4642 cp = strchr(s, '@'); in parse_authority()
4643 if (cp && cp < eos) { in parse_authority()
4644 if (! userinfo_ok(s,cp)) in parse_authority()
4646 *cp++ = '\0'; in parse_authority()
4653 cp = s; in parse_authority()
4656 for (port=eos-1; port >= cp && EVUTIL_ISDIGIT_(*port); --port) in parse_authority()
4658 if (port >= cp && *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()
4690 end_of_authority(char *cp) in end_of_authority() argument
4692 while (*cp) { in end_of_authority()
4693 if (*cp == '?' || *cp == '#' || *cp == '/') in end_of_authority()
4694 return cp; in end_of_authority()
4695 ++cp; in end_of_authority()
4697 return cp; in end_of_authority()
4711 end_of_path(char *cp, enum uri_part part, unsigned flags) in end_of_path() argument
4721 while (*cp && *cp != '#' && *cp != '?') in end_of_path()
4722 ++cp; in end_of_path()
4725 while (*cp && *cp != '#') in end_of_path()
4726 ++cp; in end_of_path()
4729 cp += strlen(cp); in end_of_path()
4732 return cp; in end_of_path()
4735 while (*cp) { in end_of_path()
4736 if (CHAR_IS_UNRESERVED(*cp) || in end_of_path()
4737 strchr(SUBDELIMS, *cp) || in end_of_path()
4738 *cp == ':' || *cp == '@' || *cp == '/') in end_of_path()
4739 ++cp; in end_of_path()
4740 else if (*cp == '%' && EVUTIL_ISXDIGIT_(cp[1]) && in end_of_path()
4741 EVUTIL_ISXDIGIT_(cp[2])) in end_of_path()
4742 cp += 3; in end_of_path()
4743 else if (*cp == '?' && part != PART_PATH) in end_of_path()
4744 ++cp; in end_of_path()
4746 return cp; in end_of_path()
4748 return cp; in end_of_path()
4752 path_matches_noscheme(const char *cp) in path_matches_noscheme() argument
4754 while (*cp) { in path_matches_noscheme()
4755 if (*cp == ':') in path_matches_noscheme()
4757 else if (*cp == '/') in path_matches_noscheme()
4759 ++cp; in path_matches_noscheme()
5101 #define end_of_cpath(cp,p,f) \ argument
5102 ((const char*)(end_of_path(((char*)(cp)), (p), (f))))