vis: move text object definitions to separate file
[vis.git] / text-regex.h
blob5c85fdd48536cd47c15783da1f9c22ad4ff9c1e1
1 #ifndef TEXT_REGEX_H
2 #define TEXT_REGEX_H
4 #include "text.h"
6 typedef struct Regex Regex;
7 typedef Filerange RegexMatch;
9 Regex *text_regex_new(void);
10 int text_regex_compile(Regex *r, const char *regex, int cflags);
11 void text_regex_free(Regex *r);
12 int text_search_range_forward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);
13 int text_search_range_backward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);
15 #endif