]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
TR1: check in cmake for GCC version, fallback in checktr1.h for other build systems...
[lyx.git] / src / support / lstrings.h
index 5acd0d247d44abc18418b2bce82baebf5d327d5e..85ea79b8df54ffe7f086956a6292f5cd9686207d 100644 (file)
@@ -173,6 +173,9 @@ std::string const subst(std::string const & a,
 docstring const subst(docstring const & a,
                docstring const & oldstr, docstring const & newstr);
 
+/// Count all occurences of char \a chr inside \a str
+int count_char(docstring const & str, docstring::value_type chr);
+
 /** Trims characters off the end and beginning of a string.
     \code
     trim("ccabccc", "c") == "ab".