summaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
parent3f89c290700618eae78eaa289bdb88d1cfb3514d (diff)
downloadSTC-modified-6fcb91a18f3a97be0469211fffeafff533219715.tar.gz
STC-modified-6fcb91a18f3a97be0469211fffeafff533219715.zip
Cleanups, and renamed cregex_replace_fn() => cregex_replace_ex().
Diffstat (limited to 'include')
-rw-r--r--include/stc/cregex.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index 11e21b06..a59a876c 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -84,17 +84,14 @@ int cregex_match(const cregex *self, const char* string,
unsigned nmatch, csview match[], int mflags);
/* replace regular expression */
-void cregex_build_replace(const char* repl, unsigned nmatch, const csview match[],
- cstr (*mfun)(int i, csview match), cstr* out);
-
cstr cregex_replace_re(const char* input, const cregex* re, const char* repl,
cstr (*mfun)(int i, csview match), int cflags, unsigned count);
-cstr cregex_replace_fn(const char* input, const char* pattern, const char* replace,
+cstr cregex_replace_ex(const char* input, const char* pattern, const char* replace,
cstr (*mfun)(int i, csview match), int cflags, unsigned count);
static inline
cstr cregex_replace(const char* input, const char* pattern, const char* replace)
- { return cregex_replace_fn(input, pattern, replace, NULL, 0, 0); }
+ { return cregex_replace_ex(input, pattern, replace, NULL, 0, 0); }
/* destroy regex */
void cregex_drop(cregex* self);