blob: 3a99a2f36ba29d45b39dfb602bed27c1e2fc97a9 [file] [log] [blame]
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00001#ifndef _NGX_REGEX_H_INCLUDED_
2#define _NGX_REGEX_H_INCLUDED_
3
4
5#include <ngx_config.h>
6#include <ngx_core.h>
7
8#include <pcre.h>
9
10
11#define NGX_REGEX_CASELESS PCRE_CASELESS
12
13typedef pcre ngx_regex_t;
14
15void ngx_regex_init();
16ngx_regex_t *ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options,
17 ngx_pool_t *pool, ngx_str_t *err);
Igor Sysoev3b30a902003-12-25 20:26:58 +000018ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s,
19 int *matches, ngx_int_t size);
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000020
21#define ngx_regex_exec_n "pcre_exec()"
22
23
24#endif /* _NGX_REGEX_H_INCLUDED_ */