diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 12:26:42 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 12:26:42 +0100 |
| commit | 42d169f374f14595c52c523b40c97dc90707c46f (patch) | |
| tree | afa92351d2e8764fbf236b2dae8a77bd99089c5e /text-regex.h | |
| parent | 4597e40a10ac80362b349a3abb5027349443d726 (diff) | |
| download | vis-42d169f374f14595c52c523b40c97dc90707c46f.tar.gz vis-42d169f374f14595c52c523b40c97dc90707c46f.tar.xz | |
text-regex: add text_regex_nsub to get number of sub expressions
Diffstat (limited to 'text-regex.h')
| -rw-r--r-- | text-regex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/text-regex.h b/text-regex.h index 3ace3de..1b2c382 100644 --- a/text-regex.h +++ b/text-regex.h @@ -9,6 +9,7 @@ typedef Filerange RegexMatch; Regex *text_regex_new(void); int text_regex_compile(Regex*, const char *pattern, int cflags); +size_t text_regex_nsub(Regex*); void text_regex_free(Regex*); int text_regex_match(Regex*, const char *data, int eflags); int text_search_range_forward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags); |
