diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-13 20:49:14 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-13 20:49:14 -0700 |
commit | f5442bdd4a8edd80158fca2ee0e1c2e311531e1c (patch) | |
tree | c2c0d9e504d4fa2667328501f96628afb7a6c0bc /common.h | |
parent | 129525af21d069943bb062e69a2a174e01a2c0e4 (diff) |
Fixed cd autosuggestion for absolute paths
Removed some unnecessary path cleanup that is_potential_path now handles
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -249,6 +249,11 @@ std::string wcs2string(const wcstring &input); bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value); bool string_prefixes_string(const wchar_t *proposed_prefix, const wcstring &value); +/** Test if a string is a suffix of another */ +bool string_suffixes_string(const wcstring &proposed_suffix, const wcstring &value); +bool string_suffixes_string(const wchar_t *proposed_suffix, 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); |