diff options
| author | Tyge Lovset <[email protected]> | 2023-05-20 07:24:22 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-05-20 07:24:22 +0200 |
| commit | ed9ccf1dcca8d3651e13ff1686148b4b23773721 (patch) | |
| tree | 0594df357a1b4239a0d38c686099242cc16b0b44 /include/stc/cregex.h | |
| parent | 26513bb1352ab4e4ffe931aabd80868216afc551 (diff) | |
| download | STC-modified-ed9ccf1dcca8d3651e13ff1686148b4b23773721.tar.gz STC-modified-ed9ccf1dcca8d3651e13ff1686148b4b23773721.zip | |
Bug fix (NB!): cregex_captures() now returns num of cap. group *excluding* the full match group (0).
Diffstat (limited to 'include/stc/cregex.h')
| -rw-r--r-- | include/stc/cregex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h index a48b4c49..f90acbf4 100644 --- a/include/stc/cregex.h +++ b/include/stc/cregex.h @@ -104,7 +104,7 @@ STC_INLINE cregex cregex_from_2(const char* pattern, int cflags) { return re; } -/* number of capture groups in a regex pattern including full the match capture, 0 if regex is invalid */ +/* number of capture groups in a regex pattern, excluding the full match capture (0) */ int cregex_captures(const cregex* re); /* return CREG_OK, CREG_NOMATCH or CREG_MATCHERROR. */ |
