Mercurial > hg > nginx-quic
comparison src/core/ngx_regex.c @ 216:f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Dec 2003 20:26:58 +0000 |
parents | 0b67be7d4489 |
children | 87e73f067470 |
comparison
equal
deleted
inserted
replaced
215:5adc2b75f8a5 | 216:f1d0e5f09c1e |
---|---|
43 | 43 |
44 return re; | 44 return re; |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s) | 48 ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, |
49 int *matches, ngx_int_t size) | |
49 { | 50 { |
50 int rc; | 51 int rc; |
51 | 52 |
52 rc = pcre_exec(re, NULL, s->data, s->len, 0, 0, NULL, 0); | 53 rc = pcre_exec(re, NULL, s->data, s->len, 0, 0, matches, size); |
53 | 54 |
54 if (rc == -1) { | 55 if (rc == -1) { |
55 return NGX_DECLINED; | 56 return NGX_DECLINED; |
56 } | 57 } |
57 | 58 |