summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-02 23:56:07 +0200
committerTyge Løvset <[email protected]>2022-08-02 23:56:07 +0200
commitf738106b75d9c4d7998294ffac9ee43f04e18667 (patch)
treeecb013116f138ccb0ed3e8b15c4780318659047b /include/stc/cregex.h
parent2329ff3b35d80a4c357708ed9456d72f6db6a5dd (diff)
downloadSTC-modified-f738106b75d9c4d7998294ffac9ee43f04e18667.tar.gz
STC-modified-f738106b75d9c4d7998294ffac9ee43f04e18667.zip
Removed mflags parameter in cregex_is_match(input, re).
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index 653b0b07..7c4d0a4c 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -112,8 +112,8 @@ int cregex_find_p(const char* input, const char* pattern,
csview match[], int cmflags);
static inline
-bool cregex_is_match(const char* input, const cregex* re, int mflags)
- { return cregex_find(input, re, NULL, mflags) == 1; }
+bool cregex_is_match(const char* input, const cregex* re)
+ { return cregex_find(input, re, NULL, 0) == cre_success; }
/* replace regular expression */
cstr cregex_replace_ex(const char* input, const cregex* re, const char* replace, unsigned count,