aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-13 20:49:14 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-13 20:49:14 -0700
commitf5442bdd4a8edd80158fca2ee0e1c2e311531e1c (patch)
treec2c0d9e504d4fa2667328501f96628afb7a6c0bc /common.h
parent129525af21d069943bb062e69a2a174e01a2c0e4 (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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.h b/common.h
index 019af2ca..5cf54171 100644
--- a/common.h
+++ b/common.h
@@ -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);