aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2023-12-08 16:39:59 +0200
committerSyndamia <kamen@syndamia.com>2023-12-08 16:39:59 +0200
commitf26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7 (patch)
treea7b590d71d7e25ddd870eab949e7ce065f80f3db /util.h
parent0382fccd17bdab223166f20541005bf45f113726 (diff)
downloadpico-web-f26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7.tar
pico-web-f26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7.tar.gz
pico-web-f26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7.zip
[browser] Implemented anchor parsing and navigation
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.h b/util.h
index 7ea5311..b8936ab 100644
--- a/util.h
+++ b/util.h
@@ -3,10 +3,15 @@
#include <inttypes.h>
#include <sds/sds.h>
+#include <regex.h>
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