From f26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Dec 2023 16:39:59 +0200 Subject: [browser] Implemented anchor parsing and navigation --- util.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index 7ea5311..b8936ab 100644 --- a/util.h +++ b/util.h @@ -3,10 +3,15 @@ #include #include +#include uint16_t inet_atop(const char *port); void herr(int output, const char* funcName); void herrc(int output, const char* funcName); -sds gsub(sds str, const char* regex, const char* repl); + +sds gsub(sds str, const regex_t* regex, const char* repl); +sds gsub_getm(sds str, const regex_t *regex, const char* repl, int* *matches, int *matchesCount); + +int digits(int num); #endif -- cgit v1.2.3