6 #define EXTERNC extern "C" 11 EXTERNC
int count_matches(
const char *regex_text,
const char *to_match);
12 EXTERNC
int find_matches(
const char *regex_text,
const char *to_match,
13 size_t **sind,
size_t **eind);
14 EXTERNC
int find_match(
const char *regex_text,
const char *to_match,
15 size_t *sind,
size_t *eind);
16 EXTERNC
int regex_replace_nosub(
char *buf,
const size_t len_buf,
17 const char *re,
const char *rp,
18 const size_t nreplace);
19 EXTERNC
int get_subrefs(
const char *buf,
size_t **refs);
20 EXTERNC
int regex_replace_sub(
char *buf,
const size_t len_buf,
21 const char *re,
const char *rp,
22 const size_t nreplace);