diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 16:15:08 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 16:15:08 +0300 |
commit | 6b8a04ef44c35d5e4016e746300af42f28d7a8b6 (patch) | |
tree | d171fb812b23b0ad05d5bec3fa5cb50dec21fbd6 /src/core/ngx_regex.h | |
parent | e87afbad3538e868548491ee7ec5ae10cccbd8b4 (diff) |
ngx_regex_exec_array()
Diffstat (limited to 'src/core/ngx_regex.h')
-rw-r--r-- | src/core/ngx_regex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ngx_regex.h b/src/core/ngx_regex.h index 430637721..e31470f9f 100644 --- a/src/core/ngx_regex.h +++ b/src/core/ngx_regex.h @@ -20,12 +20,20 @@ typedef pcre ngx_regex_t; +typedef struct { + ngx_regex_t *regex; + u_char *name; +} ngx_regex_elt_t; + + void ngx_regex_init(void); ngx_regex_t *ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options, ngx_pool_t *pool, ngx_str_t *err); ngx_int_t ngx_regex_capture_count(ngx_regex_t *re); ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, int *captures, ngx_int_t size); +ngx_int_t ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log); + #define ngx_regex_exec_n "pcre_exec()" #define ngx_regex_capture_count_n "pcre_fullinfo()" |