#include <config.h>
-#include "Encoding.h"
#include "Parser.h"
+
+#include "Encoding.h"
#include "support/lstrings.h"
#include "support/textutils.h"
}
-void iparserdocstream::putback(docstring s)
+void iparserdocstream::putback(docstring const & s)
{
s_ = s + s_;
}
}
-bool Parser::setEncoding(std::string const & e, int const & p)
+bool Parser::setEncoding(std::string const & e, int p)
{
// We may (and need to) use unsafe encodings here: Since the text is
// converted to unicode while reading from is_, we never see text in
}
-bool Parser::good()
+bool Parser::good() const
{
if (pos_ < tokens_.size())
return true;
}
-void Parser::error(string const & msg)
+void Parser::error(string const & msg) const
{
cerr << "Line ~" << lineno_ << ": parse error: " << msg << endl;
dump();