diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 16:49:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 16:49:27 +0000 |
commit | 875f14fae4c720d255f90562c4ecdbb2827ac00b (patch) | |
tree | 093e68bb7993d35ef7bc536a7acbc5d137948dbf /src/libutil/regexp.h | |
parent | 7f91e1a05a4b989ddb31c2f54dff14dfa2cda847 (diff) | |
download | rspamd-875f14fae4c720d255f90562c4ecdbb2827ac00b.tar.gz rspamd-875f14fae4c720d255f90562c4ecdbb2827ac00b.zip |
Implement regexp search.
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r-- | src/libutil/regexp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h index 2c53b20ee..fdbe44404 100644 --- a/src/libutil/regexp.h +++ b/src/libutil/regexp.h @@ -45,10 +45,13 @@ rspamd_regexp_t* rspamd_regexp_new (const gchar *pattern, const gchar *flags, * @param re * @param text * @param len + * @param start position of start of match + * @param start position of end of match * @return */ gboolean rspamd_regexp_search (rspamd_regexp_t *re, - const gchar *text, gsize len, gboolean raw); + const gchar *text, gsize len, + const gchar **start, const gchar **end, gboolean raw); /** |