diff options
| author | Tyge Løvset <[email protected]> | 2022-08-09 08:56:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-08-09 08:56:41 +0200 |
| commit | fb7ca13856348182b4071135cce82075f9b95e6d (patch) | |
| tree | c4ed4c905c68faacae22703e121c27f5cc7673bd /include/stc/cregex.h | |
| parent | 2df3fb58bb21be5afcfa78fd0b5d1aee033ebe9e (diff) | |
| download | STC-modified-fb7ca13856348182b4071135cce82075f9b95e6d.tar.gz STC-modified-fb7ca13856348182b4071135cce82075f9b95e6d.zip | |
Small API change for V4.0:
Renamed cregex_find_p() => cregex_find_pt() // pattern
Renamed cregex_replace_p() => cregex_replace_pt() // pattern
Diffstat (limited to 'include/stc/cregex.h')
| -rw-r--r-- | include/stc/cregex.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |
