4 /* make the REG_* constants available */
12 typedef struct Regex Regex
;
13 typedef Filerange RegexMatch
;
15 Regex
*text_regex_new(void);
16 int text_regex_compile(Regex
*, const char *pattern
, int cflags
);
17 size_t text_regex_nsub(Regex
*);
18 void text_regex_free(Regex
*);
19 int text_regex_match(Regex
*, const char *data
, int eflags
);
20 int text_search_range_forward(Text
*, size_t pos
, size_t len
, Regex
*r
, size_t nmatch
, RegexMatch pmatch
[], int eflags
);
21 int text_search_range_backward(Text
*, size_t pos
, size_t len
, Regex
*r
, size_t nmatch
, RegexMatch pmatch
[], int eflags
);