]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
GuiPrintNomencl: More descriptive UI.
[lyx.git] / src / Lexer.cpp
index b0fabc29ad68ef673fc840e32c1562f8975b228e..546ae0e9e9e865cd7834ebe667421abc30db618b 100644 (file)
@@ -901,6 +901,18 @@ string Lexer::quoteString(string const & arg)
 }
 
 
+// same for docstring
+docstring Lexer::quoteString(docstring const & arg)
+{
+       docstring res;
+       res += '"';
+       res += subst(subst(arg, from_ascii("\\"), from_ascii("\\\\")), 
+                    from_ascii("\""), from_ascii("\\\""));
+       res += '"';
+       return res;
+}
+
+
 Lexer & Lexer::operator>>(char const * required)
 {
        string token;