aboutsummaryrefslogtreecommitdiff
path: root/cleanregex.h
diff options
context:
space:
mode:
authorCamil Staps2016-06-22 23:32:00 +0200
committerCamil Staps2016-06-22 23:32:00 +0200
commitf0db4afe755bb837d63f561978687328596ac7aa (patch)
treebf47f6b1d08a9945d303fb145985c22d7bd16bcf /cleanregex.h
parentMatching works (diff)
Switch to posix; minimal working version
Diffstat (limited to 'cleanregex.h')
-rw-r--r--cleanregex.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cleanregex.h b/cleanregex.h
new file mode 100644
index 0000000..397eab8
--- /dev/null
+++ b/cleanregex.h
@@ -0,0 +1,12 @@
+#include <inttypes.h>
+#include <stdlib.h>
+#include <regex.h>
+#include "Clean.h"
+
+void cleanrgx_compile(
+ CleanString*, int64_t flags,
+ int64_t* re_code, int64_t* re_regex);
+
+int64_t cleanrgx_exec(int64_t* rgx, CleanString* cs);
+
+void cleanrgx_free(regex_t* rgx);