Mercurial > hg > th-libs
diff th_regex.h @ 645:b897995101b7
More fiddling and twiddling. Add parsing to string nodes instead of separate character nodes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 25 Jan 2020 05:11:40 +0200 |
parents | 9e1f9e1d1487 |
children | 18fe45e61b2b |
line wrap: on
line diff
--- a/th_regex.h Fri Jan 24 15:10:19 2020 +0200 +++ b/th_regex.h Sat Jan 25 05:11:40 2020 +0200 @@ -50,14 +50,7 @@ #ifdef TH_EXPERIMENTAL_REGEX_DEBUG -enum -{ - TH_DBG_RE_COMPILE = 0x0001, - TH_DBG_RE_FREE = 0x0002, - TH_DBG_RE_MATCH = 0x0004, -}; - -extern int th_dbg_re_flags; +extern BOOL th_dbg_re_flags; #endif @@ -66,6 +59,7 @@ // int th_regex_compile(th_regex_t **pexpr, const th_regex_char_t *pattern); void th_regex_free(th_regex_t *expr); +void th_regex_dump(FILE *fh, const int level, const th_regex_t *expr); int th_regex_match(const th_regex_t *expr, const th_regex_char_t *haystack, size_t *pnmatches, th_regex_match_t **pmatches, const size_t maxmatches,