]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
add argument to suppress event processing
[lyx.git] / src / support / lstrings.h
index 3e1aae22cf34bc532f2d2f470cd69f78635f4a1e..7b4751b020d0dddc9eb0807bdf4f804a23e62450 100644 (file)
@@ -221,6 +221,7 @@ std::string const split(std::string const & a, char delim);
 
 /// Same as split but uses the last delim.
 std::string const rsplit(std::string const & a, std::string & piece, char delim);
+docstring const rsplit(docstring const & a, char_type delim);
 
 /// Escapes non ASCII chars and other problematic characters that cause
 /// problems in latex labels.
@@ -242,7 +243,7 @@ docstring wrap(docstring const & str, int const indent = 0,
 /// \param numlines Don't return more than numlines lines. If numlines
 ///    is 0, we return everything.
 docstring wrapParas(docstring const & str, int const indent = 0,
-                    size_t const width = 80, size_t const numlines = 10);
+                    size_t const width = 80, size_t const maxlines = 10);
 
 /// gives a vector of stringparts which have the delimiter delim
 /// If \p keepempty is true, empty strings will be pushed to the vector as well
@@ -281,6 +282,7 @@ template<> docstring bformat(docstring const & fmt, unsigned int arg1);
 template<> docstring bformat(docstring const & fmt, docstring arg1);
 template<> docstring bformat(docstring const & fmt, char * arg1);
 template<> docstring bformat(docstring const & fmt, docstring arg1, docstring arg2);
+template<> docstring bformat(docstring const & fmt, docstring arg1, int arg2);
 template<> docstring bformat(docstring const & fmt, char const * arg1, docstring arg2);
 template<> docstring bformat(docstring const & fmt, int arg1, int arg2);
 template<> docstring bformat(docstring const & fmt, docstring arg1, docstring arg2, docstring arg3);