summaryrefslogtreecommitdiff
path: root/levenshtein.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
commite2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch)
tree726f70554b4ca985a09ef6e30a7fdc8df089993c /levenshtein.h
downloadvdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz
vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2
git init1.1.103
Diffstat (limited to 'levenshtein.h')
-rw-r--r--levenshtein.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/levenshtein.h b/levenshtein.h
new file mode 100644
index 0000000..ce40762
--- /dev/null
+++ b/levenshtein.h
@@ -0,0 +1,20 @@
+/*
+ * levenshtein.h
+ *
+ * See the README file for copyright information
+ *
+ */
+
+
+#ifndef __LEVENSHTEIN_H
+#define __LEVENSHTEIN_H
+
+#include "lib/common.h"
+
+//***************************************************************************
+// LV Distance
+//***************************************************************************
+
+int lvDistance(const std::string source, const std::string target, int maxPer, int& maxDist);
+
+#endif // __LEVENSHTEIN_H