X-Git-Url: http://www.privoxy.org/gitweb/templates.html?a=blobdiff_plain;f=urlmatch.h;h=543f2b88f1eee794200ffc62143e0358a09b60ed;hb=fa9d00715c824a1db96c3e6dea5418f159326873;hp=ba86b5a3771ec9cfb95d7e91ed032e69b61260cf;hpb=d01bb4028a9d19a62672a8d7d8d13f09ae270851;p=privoxy.git diff --git a/urlmatch.h b/urlmatch.h index ba86b5a3..543f2b88 100644 --- a/urlmatch.h +++ b/urlmatch.h @@ -8,7 +8,7 @@ * patterns. * * Copyright : Written by and Copyright (C) 2001-2002, 2006 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -38,9 +38,7 @@ #include "project.h" extern void free_http_request(struct http_request *http); -#ifndef FEATURE_EXTENDED_HOST_PATTERNS extern jb_err init_domain_components(struct http_request *http); -#endif extern jb_err parse_http_request(const char *req, struct http_request *http); extern jb_err parse_http_url(const char *url, struct http_request *http, @@ -52,6 +50,8 @@ extern int url_requires_percent_encoding(const char *url); extern int url_match(const struct pattern_spec *pattern, const struct http_request *http); +int regex_matches(const REGEX_TYPE *pattern, const char *string); + extern jb_err create_pattern_spec(struct pattern_spec *url, char *buf); extern void free_pattern_spec(struct pattern_spec *url); extern int match_portlist(const char *portlist, int port);