From fb7ca13856348182b4071135cce82075f9b95e6d Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 9 Aug 2022 08:56:41 +0200 Subject: Small API change for V4.0: Renamed cregex_find_p() => cregex_find_pt() // pattern Renamed cregex_replace_p() => cregex_replace_pt() // pattern --- include/stc/cregex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/stc/cregex.h b/include/stc/cregex.h index 7c4d0a4c..d19d518f 100644 --- a/include/stc/cregex.h +++ b/include/stc/cregex.h @@ -108,8 +108,8 @@ int cregex_find_sv(csview input, const cregex* re, csview match[]) { } /* match + compile RE pattern */ -int cregex_find_p(const char* input, const char* pattern, - csview match[], int cmflags); +int cregex_find_pt(const char* input, const char* pattern, + csview match[], int cmflags); static inline bool cregex_is_match(const char* input, const cregex* re) @@ -126,7 +126,7 @@ cstr cregex_replace(const char* input, const cregex* re, const char* replace, un cstr cregex_replace_pe(const char* input, const char* pattern, const char* replace, unsigned count, int crflags, bool (*mfun)(int i, csview match, cstr* mstr)); static inline -cstr cregex_replace_p(const char* input, const char* pattern, const char* replace, unsigned count) +cstr cregex_replace_pt(const char* input, const char* pattern, const char* replace, unsigned count) { return cregex_replace_pe(input, pattern, replace, count, 0, NULL); } /* destroy regex */ -- cgit v1.2.3