Mercurial > repo
view src/ploki/re.h @ 12511:1c41c70a24da draft default tip
<int-e> mkx ../bin/tio//<<<"$@" sed \'s=.*##==\' | tr @- ++ | base64 -d 2>/dev/null | cat <(printf "\\x1f\\x8b\\x08\\x00\\x00\\x00\\x00\\x00\\x00\\x00") - | gzip -dq 2>/dev/null | LC_CTYPE=C sed -zE \'s=.*\\xFF\\xFF(.*)\\xFF\\xFF.*=\\1=\'
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 04 Aug 2024 19:18:25 +0100 |
parents | ac0403686959 |
children |
line wrap: on
line source
#ifndef RE_H_ #define RE_H_ #include "config.h" #include "IO.h" #include "Str.h" #include <stddef.h> #include <stdio.h> typedef struct my_regex t_regex; void re_init(void); void re_end(void); t_regex *re_compile(const String *); void re_free(t_regex *); t_regex *re_dup(t_regex *); ATTR_PURE int re_match(t_regex *, const String *, size_t *, size_t *); int re_iomatch(t_regex *, IO *, size_t *, size_t *); ATTR_PURE size_t re_cabra(const t_regex *); int re_backref(const t_regex *, size_t, size_t *, size_t *); void re_dump(const t_regex *, FILE *); void re_decompile(const t_regex *, String *); #endif /* RE_H_ */