summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index f93a0c03..fff8ccb1 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -98,11 +98,11 @@ int cregex_match_p(const char* input, const char* pattern,
/* replace regular expression */
cstr cregex_replace(const char* input, const cregex* re, const char* replace,
- cstr (*mfun)(int i, csview match), unsigned count);
+ bool (*mfun)(int i, csview match, cstr* mstr), unsigned count);
-/* replace + compile RE pattern and extra arguments */
+/* replace + compile RE pattern, and extra arguments */
cstr cregex_replace_pe(const char* input, const char* pattern, const char* replace,
- cstr (*mfun)(int i, csview match), unsigned count, int cflags);
+ bool (*mfun)(int i, csview match, cstr* mstr), unsigned count, int cflags);
static inline
cstr cregex_replace_p(const char* input, const char* pattern, const char* replace)
{ return cregex_replace_pe(input, pattern, replace, NULL, 0, 0); }