aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-19 13:55:50 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-19 13:55:50 +0200
commit8129933ca51caf788e0cd7c5fdbcb43fdc64601d (patch)
tree3cb1c6bdce4ff9d0eeff94b9b3716d628f9b5687 /text.h
parent0d6dbfe292c61b935edd3e367c9032b27c850efc (diff)
downloadvis-8129933ca51caf788e0cd7c5fdbcb43fdc64601d.tar.gz
vis-8129933ca51caf788e0cd7c5fdbcb43fdc64601d.tar.xz
text: move regex related functions to separate file
Eventually this should probably be rewritten to use an iternal regex engine, currently it has unacceptable memory usage, it copies the whole text.
Diffstat (limited to 'text.h')
-rw-r--r--text.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/text.h b/text.h
index 3b6344b..c322a10 100644
--- a/text.h
+++ b/text.h
@@ -129,13 +129,4 @@ ssize_t text_range_write(Text*, Filerange*, int fd);
/* release all ressources associated with this text instance */
void text_free(Text*);
-typedef struct Regex Regex;
-typedef Filerange RegexMatch;
-
-Regex *text_regex_new(void);
-int text_regex_compile(Regex *r, const char *regex, int cflags);
-void text_regex_free(Regex *r);
-int text_search_range_forward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);
-int text_search_range_backward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);
-
#endif