X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLexer.h;h=7f1f1a00f091735cfaf6105b74ab05b144d92392;hb=4a75fe0310ac64a079edab0c07d8f8eebaf519c0;hp=3324bdcad60b078b5b57366e1fb91ea3c9ea5306;hpb=193c25946baa53f69e5dea54b9dc4e706cabf95e;p=lyx.git diff --git a/src/Lexer.h b/src/Lexer.h index 3324bdcad6..7f1f1a00f0 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -111,7 +111,7 @@ public: int lex(); /** Just read the next word. If esc is true remember that - some chars might be escaped: "\ atleast + some chars might be escaped: "\ at least */ bool next(bool esc = false); @@ -182,9 +182,13 @@ public: Lexer & operator>>(unsigned int &); /// extract bool Lexer & operator>>(bool &); + /// extract first char of the string + Lexer & operator>>(char &); /// read and check a required token Lexer & operator>>(char const * required); + /// check for an optional token and swallow it if present. + bool checkFor(char const * required); /// Quotes a string so that reading it again with Lexer::next(true) /// gets the original string