]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.h
Cmake build: Don't use temporary doc-files as source for installation
[lyx.git] / src / Lexer.h
index dc56a4a70af47781471837b000aa5e98e5db2742..149cc7ddf2962bca6daaa6e3e131f1560ae51201 100644 (file)
@@ -27,7 +27,7 @@ namespace support { class FileName; }
 class PushPopHelper;
 
 /** A helper structure to describe a keyword for the Lexer.
-       Usually used bundled in C style arrays and passed to the 
+       Usually used bundled in C style arrays and passed to the
        Lexer using a LexerKeywordTable object.
 */
 struct LexerKeyword
@@ -110,8 +110,8 @@ public:
        /// returns a lex code
        int lex();
 
-       /// Read the next string, as delimited by double quotes or 
-       /// whitespace. If esc is true, then we remember that some chars 
+       /// Read the next string, as delimited by double quotes or
+       /// whitespace. If esc is true, then we remember that some chars
        /// might be escaped: \" at least.
        bool next(bool esc = false);
 
@@ -120,7 +120,7 @@ public:
        /// split a word if it contains a backslash.
        bool nextToken();
 
-       /// Puts the rest of the line in the buffer, where it will 
+       /// Puts the rest of the line in the buffer, where it will
        /// be available via getString() or getDocString().
        bool eatLine();
 
@@ -137,9 +137,9 @@ public:
        ///
        double getFloat() const;
        ///
-       std::string const getString() const;
+       std::string const getString(bool trim = false) const;
        ///
-       docstring const getDocString() const;
+       docstring const getDocString(bool trim = false) const;
        /** Get a long string, ended by the tag `endtag'.
            This string can span several lines. The first line
            serves as a template for how many spaces the lines
@@ -147,7 +147,7 @@ public:
            each following line. This mechanism does not work
            perfectly if you use tabs.
        */
-       std::string const getLongString(std::string const & endtag);
+       docstring getLongString(docstring const & endtag);
 
        /// Pushes a token list on a stack and replaces it with a new one.
        template<int N> void pushTable(LexerKeyword (&table)[N])