summaryrefslogtreecommitdiffhomepage
path: root/src/utf8code.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-07-20 23:33:22 +0200
committerTyge Lovset <[email protected]>2022-07-20 23:33:22 +0200
commit6fcb91a18f3a97be0469211fffeafff533219715 (patch)
tree497d3186a016994bc5daa6f41a55db90dba66489 /src/utf8code.c
parent3f89c290700618eae78eaa289bdb88d1cfb3514d (diff)
downloadSTC-modified-6fcb91a18f3a97be0469211fffeafff533219715.tar.gz
STC-modified-6fcb91a18f3a97be0469211fffeafff533219715.zip
Cleanups, and renamed cregex_replace_fn() => cregex_replace_ex().
Diffstat (limited to 'src/utf8code.c')
-rw-r--r--src/utf8code.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf8code.c b/src/utf8code.c
index 44120cee..e5a28bb6 100644
--- a/src/utf8code.c
+++ b/src/utf8code.c
@@ -283,12 +283,12 @@ cstr cregex_replace_re(const char* input, const cregex* re, const char* repl,
}
-cstr cregex_replace_fn(const char* input, const char* pattern, const char* repl,
+cstr cregex_replace_ex(const char* input, const char* pattern, const char* repl,
cstr (*mfun)(int i, csview match), int cflags, unsigned count) {
cregex re = cregex_init();
int res = cregex_compile(&re, pattern, cflags);
if (res < 0)
- return cstr_new("[[cregex_replace_fn]]: invalid pattern");
+ return cstr_new("[[cregex_replace_ex]]: invalid pattern");
cstr out = cregex_replace_re(input, &re, repl, mfun, cflags, count);
cregex_drop(&re);
return out;