From 5de6bf399bcc13425829d196a566c609a7b325ac Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 26 Jan 2022 16:24:48 +0100 Subject: Handle line comments ('%' and ';') --- src/PGN.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/PGN.hpp') diff --git a/src/PGN.hpp b/src/PGN.hpp index 2102fa3..63493d0 100644 --- a/src/PGN.hpp +++ b/src/PGN.hpp @@ -53,13 +53,15 @@ private: /// @brief Populate @a tags with by parsing the one starting at location in /// argument long ParseNextTag(long); - /// @brief Get the next non-blank char location starting from location in - /// argument - long NextNonBlank(long); /// @brief Parse a HalfMove at a specific location into @a pgn_content long ParseHalfMove(long, HalfMove *); /// @brief Parse a consecutive sequence of comment long ParseComment(long, HalfMove *); + /// @brief Get the next non-blank char location ignoring line comments ('%' + /// and ';') + long GotoNextToken(long); + /// @brief Goto the end of the current line + long GotoEOL(long); }; struct UnexpectedEOF : public std::exception { -- cgit v1.2.3