static int url_proto_path_flags[URL_PROTO_MAX] = URL_PATH_FLAGS;
uns
-identify_protocol(const char *p)
+url_identify_protocol(const char *p)
{
uns i;
while (s < p)
*d++ = *s++;
*d++ = 0;
- u->protoid = identify_protocol(u->protocol);
+ u->protoid = url_identify_protocol(u->protocol);
s++;
if (url_proto_path_flags[u->protoid] && (s[0] != '/' || s[1] != '/'))
{
{
d = append(d, u->protocol, e);
d = append(d, ":", e);
- u->protoid = identify_protocol(u->protocol);
+ u->protoid = url_identify_protocol(u->protocol);
}
if (u->host)
{
int url_pack(struct url *u, char *d);
int url_canon_split_rel(const char *url, char *buf1, char *buf2, struct url *u, struct url *base);
int url_auto_canonicalize_rel(const char *src, char *dst, struct url *base);
-uns identify_protocol(const char *p);
+uns url_identify_protocol(const char *p);
int url_has_repeated_component(const char *url);
static inline int url_canon_split(const char *url, char *buf1, char *buf2, struct url *u)