diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
commit | e2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch) | |
tree | 726f70554b4ca985a09ef6e30a7fdc8df089993c /tools/fuzzy.h | |
download | vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2 |
git init1.1.103
Diffstat (limited to 'tools/fuzzy.h')
-rw-r--r-- | tools/fuzzy.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/fuzzy.h b/tools/fuzzy.h new file mode 100644 index 0000000..7d90466 --- /dev/null +++ b/tools/fuzzy.h @@ -0,0 +1,10 @@ +#ifndef __FUZZY_H__ +#define __FUZZY_H__ + +#include <string> + +size_t letter_distance(char letter1, char letter2); +size_t word_distance(const std::string& word1, const std::string& word2); +size_t sentence_distance(const std::string& sentence1, const std::string& sentence2); + +#endif |