summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-09 19:31:59 +0200
committerTyge Løvset <[email protected]>2023-06-09 19:31:59 +0200
commit72b0f0e7839b487a5df7c79ffe84511480cad251 (patch)
treee38e997c39bbaad183250c39971222e48bb2d59e /docs
parentabd3b4372dee2291a81271f02588228279139960 (diff)
downloadSTC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.tar.gz
STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.zip
Fixed issues with linking params i_implement, i_extern.
Diffstat (limited to 'docs')
-rw-r--r--docs/cregex_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cregex_api.md b/docs/cregex_api.md
index e702c47c..fc86cc63 100644
--- a/docs/cregex_api.md
+++ b/docs/cregex_api.md
@@ -44,15 +44,15 @@ bool cregex_is_match(const cregex* re, const char* input);
// Replace all matches in input
cstr cregex_replace(const cregex* re, const char* input, const char* replace, int count = INT_MAX);
- // Replace count matches in input string-view. Optionally transform replacement with mfun.
+ // Replace count matches in input string-view. Optionally transform replacement.
cstr cregex_replace_sv(const cregex* re, csview input, const char* replace, int count = INT_MAX);
cstr cregex_replace_sv(const cregex* re, csview input, const char* replace, int count,
- bool(*mfun)(int capgrp, csview match, cstr* mstr), int rflags);
+ bool(*transform)(int group, csview match, cstr* result), int rflags);
// All-in-one replacement (compile + find/replace + drop)
cstr cregex_replace_pattern(const char* pattern, const char* input, const char* replace, int count = INT_MAX);
cstr cregex_replace_pattern(const char* pattern, const char* input, const char* replace, int count,
- bool(*mfun)(int capgrp, csview match, cstr* mstr), int rflags);
+ bool(*transform)(int group, csview match, cstr* result), int rflags);
// destroy
void cregex_drop(cregex* self);
```