X-Git-Url: http://www.privoxy.org/gitweb/startup.html?a=blobdiff_plain;ds=sidebyside;f=urlmatch.h;h=543f2b88f1eee794200ffc62143e0358a09b60ed;hb=e485c071824e070da5eca6a4ccaecb12ccbb0e84;hp=315e8b24836a7edb017310161ea10bbbef534d96;hpb=72c9421cb5d9b4155140db25d1bfc41e7ef90040;p=privoxy.git diff --git a/urlmatch.h b/urlmatch.h index 315e8b24..543f2b88 100644 --- a/urlmatch.h +++ b/urlmatch.h @@ -50,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);