summaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
parent69e930f36ab18999009d064f08e2a0b4f10733b3 (diff)
downloadSTC-modified-2e289403cdeb998a38fd9467f05e9e8525cb69e7.tar.gz
STC-modified-2e289403cdeb998a38fd9467f05e9e8525cb69e7.zip
Renamed cregex_find89 => cregex_match()
Diffstat (limited to 'include')
-rw-r--r--include/stc/cregex.h10
1 files changed, 5 insertions, 5 deletions
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[]);