diff options
| author | Tyge Løvset <[email protected]> | 2023-06-09 19:31:59 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-06-09 19:31:59 +0200 |
| commit | 72b0f0e7839b487a5df7c79ffe84511480cad251 (patch) | |
| tree | e38e997c39bbaad183250c39971222e48bb2d59e /include/stc/cregex.h | |
| parent | abd3b4372dee2291a81271f02588228279139960 (diff) | |
| download | STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.tar.gz STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.zip | |
Fixed issues with linking params i_implement, i_extern.
Diffstat (limited to 'include/stc/cregex.h')
| -rw-r--r-- | include/stc/cregex.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h index 919f5474..e6180a31 100644 --- a/include/stc/cregex.h +++ b/include/stc/cregex.h @@ -135,7 +135,7 @@ STC_INLINE bool cregex_is_match(const cregex* re, const char* input) #define cregex_replace_sv_4(pattern, input, replace, count) \ cregex_replace_sv_6(pattern, input, replace, count, NULL, CREG_DEFAULT) cstr cregex_replace_sv_6(const cregex* re, csview input, const char* replace, int count, - bool (*mfun)(int i, csview match, cstr* mstr), int rflags); + bool (*transform)(int group, csview match, cstr* result), int rflags); /* replace input with replace using regular expression */ #define cregex_replace(...) c_MACRO_OVERLOAD(cregex_replace, __VA_ARGS__) @@ -153,20 +153,20 @@ STC_INLINE cstr cregex_replace_4(const cregex* re, const char* input, const char #define cregex_replace_pattern_4(pattern, input, replace, count) \ cregex_replace_pattern_6(pattern, input, replace, count, NULL, CREG_DEFAULT) cstr cregex_replace_pattern_6(const char* pattern, const char* input, const char* replace, int count, - bool (*mfun)(int i, csview match, cstr* mstr), int crflags); + bool (*transform)(int group, csview match, cstr* result), int crflags); /* destroy regex */ void cregex_drop(cregex* re); -#endif // CREGEX_H_INCLUDED -#if defined i_extern || defined i_implement +#if defined i_implement # include "../../src/cregex.c" #endif #if defined i_extern # include "../../src/utf8code.c" #endif +#endif // CREGEX_H_INCLUDED #undef i_opt #undef i_header #undef i_static -#undef i_implement #undef i_extern +#undef i_implement |
