Mercurial > hg > th-libs
comparison th_regex.h @ 771:c17eadc60c3d
Rename th_ioctx struct to th_ioctx_t, for consistency. Breaks API.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Feb 2023 23:33:45 +0200 |
parents | 29e44a58bc73 |
children |
comparison
equal
deleted
inserted
replaced
770:79f888e4616f | 771:c17eadc60c3d |
---|---|
66 TH_REF_SUBMATCH = 0x0008, ///< Include sub-expression matches in results | 66 TH_REF_SUBMATCH = 0x0008, ///< Include sub-expression matches in results |
67 }; | 67 }; |
68 | 68 |
69 | 69 |
70 #ifdef TH_EXPERIMENTAL_REGEX_DEBUG | 70 #ifdef TH_EXPERIMENTAL_REGEX_DEBUG |
71 extern th_ioctx *th_dbg_fh; | 71 extern th_ioctx_t *th_dbg_fh; |
72 #endif | 72 #endif |
73 | 73 |
74 | 74 |
75 // | 75 // |
76 // Functions | 76 // Functions |
77 // | 77 // |
78 int th_regex_compile(th_regex_t **pexpr, const th_char_t *pattern); | 78 int th_regex_compile(th_regex_t **pexpr, const th_char_t *pattern); |
79 void th_regex_free(th_regex_t *expr); | 79 void th_regex_free(th_regex_t *expr); |
80 void th_regex_dump(th_ioctx *fh, const int level, const th_regex_t *expr); | 80 void th_regex_dump(th_ioctx_t *fh, const int level, const th_regex_t *expr); |
81 | 81 |
82 int th_regex_match(const th_regex_t *expr, const th_char_t *haystack, | 82 int th_regex_match(const th_regex_t *expr, const th_char_t *haystack, |
83 size_t *pnmatches, th_regex_match_t **pmatches, const size_t maxmatches, | 83 size_t *pnmatches, th_regex_match_t **pmatches, const size_t maxmatches, |
84 const int flags); | 84 const int flags); |
85 | 85 |