summaryrefslogtreecommitdiff
path: root/src/fuzzy_match.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2023-04-17 23:43:05 +0100
committerPhil Jones <philj56@gmail.com>2023-04-17 23:43:05 +0100
commit574eff0df1aff9bdc6d32939a03312cc08803de3 (patch)
tree5aeca72f70314bee3bf95db99f10d89f0a7b4032 /src/fuzzy_match.h
parent71a4801d20d8904cfcfa5e92c96d53ee06a2c69f (diff)
Add --matching-algorithm option.
This replaces the --fuzzy-match algorithm. Available choices are normal, prefix and fuzzy. Levenshtein distance was investigated, but it seems pretty rubbish for tofi's use case, where you normally want a good match when you've only typed a small portion of the target string.
Diffstat (limited to 'src/fuzzy_match.h')
-rw-r--r--src/fuzzy_match.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fuzzy_match.h b/src/fuzzy_match.h
deleted file mode 100644
index d427bc6..0000000
--- a/src/fuzzy_match.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef FUZZY_MATCH_H
-#define FUZZY_MATCH_H
-
-#include <stdint.h>
-
-int32_t fuzzy_match_simple_words(const char *restrict patterns, const char *restrict str);
-int32_t fuzzy_match_words(const char *restrict patterns, const char *restrict str);
-int32_t fuzzy_match(const char *restrict pattern, const char *restrict str);
-
-#endif /* FUZZY_MATCH_H */