diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2016-04-19 11:17:48 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2016-04-19 11:17:48 +0300 |
commit | fec4eb26610d09f0248a876191339b638d940c1a (patch) | |
tree | e7e53035d69f7432847d0502cd9da787ad000069 /include/zbxregexp.h | |
parent | 05a5b120c371a9dbf6d3759ea72b76cd9d519031 (diff) |
...G...PS. [ZBXNEXT-1638] changed zbx_regexp_sub() and related functions to differentiate between invalid regular expression and not matching
Diffstat (limited to 'include/zbxregexp.h')
-rw-r--r-- | include/zbxregexp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zbxregexp.h b/include/zbxregexp.h index a4806304a9f..b249d43857f 100644 --- a/include/zbxregexp.h +++ b/include/zbxregexp.h @@ -34,9 +34,9 @@ zbx_expression_t; /* regular expressions */ char *zbx_regexp_match(const char *string, const char *pattern, int *len); char *zbx_iregexp_match(const char *string, const char *pattern, int *len); -char *zbx_regexp_sub(const char *string, const char *pattern, const char *output_template); -char *zbx_mregexp_sub(const char *string, const char *pattern, const char *output_template); -char *zbx_iregexp_sub(const char *string, const char *pattern, const char *output_template); +int zbx_regexp_sub(const char *string, const char *pattern, const char *output_template, char **out); +int zbx_mregexp_sub(const char *string, const char *pattern, const char *output_template, char **out); +int zbx_iregexp_sub(const char *string, const char *pattern, const char *output_template, char **out); void zbx_regexp_clean_expressions(zbx_vector_ptr_t *expressions); |