From 2e289403cdeb998a38fd9467f05e9e8525cb69e7 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 12 Jun 2022 18:51:24 +0200 Subject: Renamed cregex_find89 => cregex_match() --- include/stc/cregex.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/stc') diff --git a/include/stc/cregex.h b/include/stc/cregex.h index 1afe484f..448f9405 100644 --- a/include/stc/cregex.h +++ b/include/stc/cregex.h @@ -23,10 +23,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef CREGEX9_H_ -#define CREGEX9_H_ +#ifndef CREGEX_H_ +#define CREGEX_H_ /* - * cregex9.h + * cregex.h * * This is a extended version of regexp9, supporting UTF8 input, common * shorthand character classes, ++. @@ -79,8 +79,8 @@ int cregex_compile(cregex *self, const char* pattern, int cflags); int cregex_captures(cregex rx); /* return number of capture groups on success, or (negative) error code on failure. */ -int cregex_find(const cregex *self, const char* string, - size_t nmatch, cregmatch match[], int mflags); +int cregex_match(const cregex *self, const char* string, + size_t nmatch, cregmatch match[], int mflags); void cregex_replace(const char* src, char* dst, int dsize, int nmatch, const cregmatch match[]); -- cgit v1.2.3