summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-06-12 18:51:24 +0200
committerTyge Løvset <[email protected]>2022-06-12 18:51:24 +0200
commit2e289403cdeb998a38fd9467f05e9e8525cb69e7 (patch)
treebf48c7bc93faf4db7b8adb9f71db92fbd8fb9e33 /src
parent69e930f36ab18999009d064f08e2a0b4f10733b3 (diff)
downloadSTC-modified-2e289403cdeb998a38fd9467f05e9e8525cb69e7.tar.gz
STC-modified-2e289403cdeb998a38fd9467f05e9e8525cb69e7.zip
Renamed cregex_find89 => cregex_match()
Diffstat (limited to 'src')
-rw-r--r--src/cregex.c8
1 files changed, 4 insertions, 4 deletions
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;