summaryrefslogtreecommitdiff
path: root/src/match.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/match.h')
-rw-r--r--src/match.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/match.h b/src/match.h
new file mode 100644
index 0000000..941b62e
--- /dev/null
+++ b/src/match.h
@@ -0,0 +1,12 @@
+#ifndef MATCH_H
+#define MATCH_H MATCH_H
+
+typedef double score_t;
+#define SCORE_MAX INFINITY
+#define SCORE_MIN -INFINITY
+
+int has_match(const char *needle, const char *haystack);
+score_t match_positions(const char *needle, const char *haystack, size_t *positions);
+score_t match(const char *needle, const char *haystack);
+
+#endif