Source
41
41
}
42
42
zbx_expression_t;
43
43
44
44
ZBX_PTR_VECTOR_DECL(expression, zbx_expression_t *)
45
45
46
46
/* regular expressions */
47
47
int zbx_regexp_compile(const char *pattern, zbx_regexp_t **regexp, char **err_msg);
48
48
int zbx_regexp_compile_ext(const char *pattern, zbx_regexp_t **regexp, int flags, char **err_msg);
49
49
void zbx_regexp_free(zbx_regexp_t *regexp);
50
50
int zbx_regexp_match_precompiled(const char *string, const zbx_regexp_t *regexp);
51
+
int zbx_regexp_match_precompiled2(const char *string, const zbx_regexp_t *regexp, char **err_msg);
51
52
char *zbx_regexp_match(const char *string, const char *pattern, int *len);
52
53
int zbx_regexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
53
54
int zbx_mregexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
54
55
int zbx_iregexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
55
56
int zbx_mregexp_sub_precompiled(const char *string, const zbx_regexp_t *regexp, const char *output_template,
56
57
size_t limit, char **out);
57
58
58
59
void zbx_regexp_clean_expressions(zbx_vector_expression_t *expressions);
59
60
60
61
void zbx_add_regexp_ex(zbx_vector_expression_t *regexps, const char *name, const char *expression,