34 #ifndef SWITCH_REGEX_H 35 #define SWITCH_REGEX_H 46 const unsigned char *tables);
79 #define switch_regex_safe_free(re) if (re) {\ 80 switch_regex_free(re);\ int switch_regex_copy_substring(const char *subject, int *ovector, int stringcount, int stringnumber, char *buffer, int size)
void switch_perform_substitution(switch_regex_t *re, int match_count, const char *data, const char *field_data, char *substituted, switch_size_t len, int *ovector)
#define SWITCH_END_EXTERN_C
struct real_pcre switch_regex_t
switch_status_t switch_regex_match_partial(const char *target, const char *expression, int *partial_match)
Function to evaluate an expression against a string.
int switch_regex_perform(const char *field, const char *expression, switch_regex_t **new_re, int *ovector, uint32_t olen)
void switch_capture_regex(switch_regex_t *re, int match_count, const char *field_data, int *ovector, const char *var, switch_cap_callback_t callback, void *user_data)
switch_status_t
Common return values.
void switch_regex_set_var_callback(const char *var, const char *val, void *user_data)
const cJSON *const target
void(* switch_cap_callback_t)(const char *var, const char *val, void *user_data)
switch_regex_t * switch_regex_compile(const char *pattern, int options, const char **errorptr, int *erroroffset, const unsigned char *tables)
void switch_regex_set_event_header_callback(const char *var, const char *val, void *user_data)
switch_status_t switch_regex_match(const char *target, const char *expression)
Function to evaluate an expression against a string.
void switch_regex_free(void *data)
#define SWITCH_BEGIN_EXTERN_C