diff options
| author | Syndamia <kamen@syndamia.com> | 2023-12-08 16:39:59 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2023-12-08 16:39:59 +0200 |
| commit | f26e610c2f0bdb07fce3f7a100b3ef6159c2ffe7 (patch) | |
| tree | a7b590d71d7e25ddd870eab949e7ce065f80f3db /util.h | |
| parent | 0382fccd17bdab223166f20541005bf45f113726 (diff) | |
| download | pico-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
