blob: ba9fbcfb4b8907824d741f4d1f2c4636bd36682a [file] [log] [blame]
/*
* Copyright (C) Igor Sysoev
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_PCRE_H_INCLUDED_
#define _NXT_PCRE_H_INCLUDED_
#include <pcre.h>
#define NGX_REGEX_NOMATCH PCRE_ERROR_NOMATCH
struct nxt_regex_s {
pcre *code;
pcre_extra *extra;
int ncaptures;
};
struct nxt_regex_match_data_s {
int ncaptures;
/*
* Each capture is stored in 3 "int" vector elements.
* The first vector is for the "$0" capture and it is always allocated.
*/
int captures[3];
};
#endif /* _NXT_PCRE_H_INCLUDED_ */