diff options
Diffstat (limited to 'app/bin/include/levenshtein.h')
-rw-r--r-- | app/bin/include/levenshtein.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/bin/include/levenshtein.h b/app/bin/include/levenshtein.h new file mode 100644 index 0000000..1ea6c36 --- /dev/null +++ b/app/bin/include/levenshtein.h @@ -0,0 +1,25 @@ +#ifndef LEVENSHTEIN_H
+#define LEVENSHTEIN_H
+
+// `levenshtein.h` - levenshtein
+// MIT licensed.
+// Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
+
+// Returns a size_t, depicting the difference between `a` and `b`.
+// See <https://en.wikipedia.org/wiki/Levenshtein_distance> for more information.
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+size_t
+levenshtein(const char *a, const char *b);
+
+size_t
+levenshtein_n (const char *a, const size_t length, const char *b,
+ const size_t bLength);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // LEVENSHTEIN_H
|