aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-01 17:31:45 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-01 17:31:45 -0800
commit36622c35781c3212c2102c45781a496f3e1b3659 (patch)
tree532707edfd80cd1a903489d3e9feef112a550ce2 /common.h
parentfd4df6f9bb918d62ae31881230f2d5f8b09e129e (diff)
Fix to properly handle case insensitive autosuggestions
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 468ab75e..bb745559 100644
--- a/common.h
+++ b/common.h
@@ -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);