diff options
author | 2015-08-04 00:32:34 -0700 | |
---|---|---|
committer | 2015-08-08 13:55:51 -0700 | |
commit | fd96bafbc85d44ea74f39cc2a1b4cbd846f5f51f (patch) | |
tree | 1258f2672fa0b5260cb3118f30af30bc8f83aaaa /src/wildcard.h | |
parent | b7e16cb0ddbaab083592c61b2418390b9ee7ee43 (diff) |
Experiment to rework wildcard matching
Preparation for zsh-style intermediate component
tab completion
Diffstat (limited to 'src/wildcard.h')
-rw-r--r-- | src/wildcard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wildcard.h b/src/wildcard.h index 37b53fd2..3820fc3e 100644 --- a/src/wildcard.h +++ b/src/wildcard.h @@ -76,6 +76,9 @@ int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_ */ bool wildcard_match(const wcstring &str, const wcstring &wc, bool leading_dots_fail_to_match = false); +/* Like wildcard_match, but returns a fuzzy match type */ +enum fuzzy_match_type_t wildcard_match_fuzzy(const wcstring &str, const wcstring &wc, bool leading_dots_fail_to_match = false, enum fuzzy_match_type_t max_type = fuzzy_match_none); + /** Check if the specified string contains wildcards */ bool wildcard_has(const wcstring &, bool internal); bool wildcard_has(const wchar_t *, bool internal); |