diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-26 20:11:34 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-26 20:11:34 -0800 |
commit | f74a82776f9a20f09149712d50cee557d8302ec0 (patch) | |
tree | c24d45936ba2d272035709f8dd7f8943cd24f5c8 /common.h | |
parent | 3553e650891db84b3feffaef872d378c750f807b (diff) |
Some more changes in preparation for turning on complete-based autosuggestions
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -250,6 +250,10 @@ 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 list contains a string using a linear search. */ +bool list_contains_string(const wcstring_list_t &list, const wcstring &str); + + void assert_is_main_thread(const char *who); #define ASSERT_IS_MAIN_THREAD_TRAMPOLINE(x) assert_is_main_thread(x) #define ASSERT_IS_MAIN_THREAD() ASSERT_IS_MAIN_THREAD_TRAMPOLINE(__FUNCTION__) |