aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-01 18:17:55 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-01 18:17:55 +0000
commit0e26d4843d7f993547e3d0acf5b91c5bb29ee743 (patch)
tree788ef636cf131aa3e738668a105796b50c37bbc8 /src/libutil/regexp.h
parente9d134bb883087391bcc998042be89d79f668683 (diff)
downloadrspamd-0e26d4843d7f993547e3d0acf5b91c5bb29ee743.tar.gz
rspamd-0e26d4843d7f993547e3d0acf5b91c5bb29ee743.zip
Add routines to get count of captures and backrefs
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r--src/libutil/regexp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h
index 1301e5dd9..2c33f780d 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -111,6 +111,16 @@ gpointer rspamd_regexp_get_id (rspamd_regexp_t *re);
const char* rspamd_regexp_get_pattern (rspamd_regexp_t *re);
/**
+ * Returns number of backreferences in a regexp
+ */
+gint rspamd_regexp_get_nbackrefs (rspamd_regexp_t *re);
+
+/**
+ * Returns number of capture groups in a regexp
+ */
+gint rspamd_regexp_get_ncaptures (rspamd_regexp_t *re);
+
+/**
* Create new regexp cache
* @return
*/