diff options
| author | Tyge Løvset <[email protected]> | 2022-07-22 13:52:38 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-07-22 13:52:38 +0200 |
| commit | 28ee78e128c14fe309cb5f7cfc3f2172bf675ea7 (patch) | |
| tree | 484370fe1b83e0954cfaa081b03d3f0a87341b86 /src | |
| parent | 698e70e7d3e7dcdf6b6e7b03689dabc184d34bf6 (diff) | |
| download | STC-modified-28ee78e128c14fe309cb5f7cfc3f2172bf675ea7.tar.gz STC-modified-28ee78e128c14fe309cb5f7cfc3f2172bf675ea7.zip | |
Last minor API changes for cregex. Added descriptions in header. Updated RE examples.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cregex.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cregex.c b/src/cregex.c index 54b13431..8705b335 100644 --- a/src/cregex.c +++ b/src/cregex.c @@ -1221,8 +1221,8 @@ cregex_match(const char* input, const cregex* re, } } -int cregex_match_pat(const char* input, const char* pattern, - csview match[], int cmflags) { +int cregex_match_p(const char* input, const char* pattern, + csview match[], int cmflags) { cregex re = cregex_init(); int res = cregex_compile(&re, pattern, cmflags); if (res < 0) return res; @@ -1254,9 +1254,8 @@ cregex_replace(const char* input, const cregex* re, const char* replace, } cstr -cregex_replace_patx(const char* input, const char* pattern, - const char* replace, cstr (*mfun)(int i, csview match), - unsigned count, int cflags) { +cregex_replace_pe(const char* input, const char* pattern, const char* replace, + cstr (*mfun)(int i, csview match), unsigned count, int cflags) { cregex re = cregex_init(); int res = cregex_compile(&re, pattern, cflags); if (res < 0) |
