aboutsummaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authorCamil Staps2016-03-21 19:31:24 +0100
committerCamil Staps2016-03-21 19:42:59 +0100
commit58ea61a19cb9bd0f6c600ebbb643e209fdf9d7cb (patch)
tree864264245f5f1ec8d8af0162830afd9bb5a63473 /regex.h
parentInitial commit (diff)
Matching works
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/regex.h b/regex.h
new file mode 100644
index 0000000..af8e0a2
--- /dev/null
+++ b/regex.h
@@ -0,0 +1,10 @@
+#define PCRE2_CODE_UNIT_WIDTH 8
+
+#include <inttypes.h>
+#include <pcre2.h>
+#include <stdlib.h>
+#include "Clean.h"
+
+pcre2_code* cleanregex_pcre2_compile(CleanString*, int64_t flags);
+int64_t cleanregex_match(pcre2_code* regex, CleanString* subject);
+