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() --- src/cregex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cregex.c b/src/cregex.c index 69fc6cbb..8ec56fae 100644 --- a/src/cregex.c +++ b/src/cregex.c @@ -1104,7 +1104,7 @@ regexec2(const Reprog *progp, /* program to run */ } static int -regexec9(const Reprog *progp, /* program to run */ +regexec(const Reprog *progp, /* program to run */ const char *bol, /* string to run machine on */ int ms, /* number of elements at mp */ Resub mp[], /* subexpression elements */ @@ -1215,9 +1215,9 @@ int cregex_captures(cregex rx) { return rx.prog ? 1 + rx.prog->nsubids : 0; } -int cregex_find(const cregex *rx, const char* string, - size_t nmatch, cregmatch match[], int mflags) { - int res = regexec9(rx->prog, string, nmatch, match, mflags); +int cregex_match(const cregex *rx, const char* string, + size_t nmatch, cregmatch match[], int mflags) { + int res = regexec(rx->prog, string, nmatch, match, mflags); switch (res) { case 1: return 1 + rx->prog->nsubids; case 0: return creg_nomatch; -- cgit v1.2.3