Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2017-01-05 13:39:12 +0300
committerAndris Mednis <Andris.Mednis@zabbix.com>2017-01-05 13:39:12 +0300
commit81f189b9222daaee6f54976bdb111e58a1e58cf1 (patch)
tree876b7d8178a1f8dfd266b8182c24ba5a862f7930 /include/zbxregexp.h
parent82c3639aa21e07c73dd0f526c3881097d7d61ac5 (diff)
...G...PS. [ZBXNEXT-491] added functions for working with precompiled regexps
Diffstat (limited to 'include/zbxregexp.h')
-rw-r--r--include/zbxregexp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zbxregexp.h b/include/zbxregexp.h
index ec445f1d6aa..50dab3871f8 100644
--- a/include/zbxregexp.h
+++ b/include/zbxregexp.h
@@ -35,6 +35,11 @@ typedef struct
zbx_expression_t;
/* regular expressions */
+int zbx_regexp_compile(const char *regex_txt, int flags, regex_t *regex_compiled, char **error);
+int zbx_regexp_exec(const char *string, const regex_t *regex_compiled, int flags, size_t count,
+ regmatch_t *matches);
+void zbx_regexp_free(regex_t *regex_compiled);
+int zbx_regexp_match_precompiled(const char *string, const regex_t *regex);
char *zbx_regexp_match(const char *string, const char *pattern, int *len);
char *zbx_iregexp_match(const char *string, const char *pattern, int *len);
int zbx_regexp_sub(const char *string, const char *pattern, const char *output_template, char **out);