diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-01 17:31:45 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-01 17:31:45 -0800 |
commit | 36622c35781c3212c2102c45781a496f3e1b3659 (patch) | |
tree | 532707edfd80cd1a903489d3e9feef112a550ce2 /common.h | |
parent | fd4df6f9bb918d62ae31881230f2d5f8b09e129e (diff) |
Fix to properly handle case insensitive autosuggestions
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -252,6 +252,9 @@ std::string wcs2string(const wcstring &input); /** Test if a string prefixes another. Returns true if a is a prefix of b */ bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value); +/** Test if a string prefixes another without regard to case. Returns true if a is a prefix of b */ +bool string_prefixes_string_case_insensitive(const wcstring &proposed_prefix, const wcstring &value); + /** Test if a list contains a string using a linear search. */ bool list_contains_string(const wcstring_list_t &list, const wcstring &str); |