]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
Fix several filename and environment variable encoding problems
[lyx.git] / src / support / lstrings.h
index 25ceb527ca9a7e36c4b68f5e9cb21f8bda201cff..5f9b559dc7de77d25660011590b82fe8ce139c5b 100644 (file)
@@ -89,6 +89,7 @@ char_type uppercase(char_type c);
 
 /// same as lowercase(), but ignores locale
 std::string const ascii_lowercase(std::string const &);
+docstring const ascii_lowercase(docstring const &);
 
 ///
 std::string const lowercase(std::string const &);
@@ -97,12 +98,16 @@ docstring const lowercase(docstring const &);
 ///
 std::string const uppercase(std::string const &);
 
+/// Does the string start with this prefix?
+bool prefixIs(docstring const &, char_type);
+
 /// Does the std::string start with this prefix?
 bool prefixIs(std::string const &, std::string const &);
-bool prefixIs(lyx::docstring const &, lyx::docstring const &);
+bool prefixIs(docstring const &, docstring const &);
 
 /// Does the string end with this char?
 bool suffixIs(std::string const &, char);
+bool suffixIs(docstring const &, char_type);
 
 /// Does the std::string end with this suffix?
 bool suffixIs(std::string const &, std::string const &);
@@ -224,6 +229,8 @@ docstring const escape(docstring const & lab);
 /// gives a vector of stringparts which have the delimiter delim
 std::vector<std::string> const getVectorFromString(std::string const & str,
                                              std::string const & delim = std::string(","));
+std::vector<docstring> const getVectorFromString(docstring const & str,
+               docstring const & delim = from_ascii(","));
 
 // the same vice versa
 std::string const getStringFromVector(std::vector<std::string> const & vec,