]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Parser.h
Remove ; from end of function definitions
[lyx.git] / src / tex2lyx / Parser.h
index 42243c6465a581a4427bca8f183310519831aef7..ca0a917f43ee967f81809a58fdea2386d3190029 100644 (file)
@@ -123,13 +123,13 @@ class iparserdocstream
 public:
        typedef idocstream::int_type int_type;
 
-       iparserdocstream(idocstream & is) : is_(is) {};
+       iparserdocstream(idocstream & is) : is_(is) {}
 
        /// Like std::istream::operator bool()
        operator bool() const { return s_.empty() ? is_ : true; }
 
        /// change the encoding of the input stream to \p e (iconv name)
-       bool setEncoding(std::string const & e);
+       void setEncoding(std::string const & e);
 
        // add to the list of characters to read before actually reading
        // the stream
@@ -280,9 +280,13 @@ public:
         * stopped at string \p end_string. Contrary to the other
         * methods, this uses proper catcode setting. This function is
         * designed to parse verbatim environments and command. The
-        * intention is to eventually replace all of its siblings.
+        * intention is to eventually replace all of its siblings. the
+        * member \p first of the result tells whether the arg was
+        * found and the member \p second is the value. If \p
+        * allow_linebreak is false, then the parsing is limited to one line
         */
-       std::string const verbatimStuff(std::string const & end_string);
+       Arg verbatimStuff(std::string const & end_string, 
+                         bool allow_linebreak = true);
        /*
         * \returns the contents of the environment \p name.
         * <tt>\begin{name}</tt> must be parsed already,