Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 1 | #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 | |
| 13 | typedef pcre ngx_regex_t; |
| 14 | |
| 15 | void ngx_regex_init(); |
| 16 | ngx_regex_t *ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options, |
| 17 | ngx_pool_t *pool, ngx_str_t *err); |
Igor Sysoev | 3b30a90 | 2003-12-25 20:26:58 +0000 | [diff] [blame] | 18 | ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, |
| 19 | int *matches, ngx_int_t size); |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 20 | |
| 21 | #define ngx_regex_exec_n "pcre_exec()" |
| 22 | |
| 23 | |
| 24 | #endif /* _NGX_REGEX_H_INCLUDED_ */ |