summaryrefslogtreecommitdiff
path: root/src/matching.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/matching.h')
-rw-r--r--src/matching.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/matching.h b/src/matching.h
new file mode 100644
index 0000000..f619804
--- /dev/null
+++ b/src/matching.h
@@ -0,0 +1,14 @@
+#ifndef MATCHING_H
+#define MATCHING_H
+
+#include <stdint.h>
+
+enum matching_algorithm {
+ MATCHING_ALGORITHM_NORMAL,
+ MATCHING_ALGORITHM_PREFIX,
+ MATCHING_ALGORITHM_FUZZY
+};
+
+int32_t match_words(enum matching_algorithm algorithm, const char *restrict patterns, const char *restrict str);
+
+#endif /* MATCHING_H */