summaryrefslogtreecommitdiff
path: root/src/core/parser/utils/Tokenizer.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-04 01:05:13 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:32 +0200
commit4242f61db825b68821bc0cde49157c0b62b16b89 (patch)
tree05be42e48fc9605f98f8f0fe8dd7907b1d24320e /src/core/parser/utils/Tokenizer.hpp
parent797b44aa4ec5dfc7a68aa914aad774a10320e79a (diff)
Make Tokenizer functions const
Diffstat (limited to 'src/core/parser/utils/Tokenizer.hpp')
-rw-r--r--src/core/parser/utils/Tokenizer.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/parser/utils/Tokenizer.hpp b/src/core/parser/utils/Tokenizer.hpp
index 74e3f0d..9137180 100644
--- a/src/core/parser/utils/Tokenizer.hpp
+++ b/src/core/parser/utils/Tokenizer.hpp
@@ -124,7 +124,7 @@ private:
* @return false if the end of the stream has been reached, true otherwise.
*/
template <bool read>
- bool next(CharReader &reader, Token &token, TokenizedData &data);
+ bool next(CharReader &reader, Token &token, TokenizedData &data) const;
public:
/**
@@ -181,7 +181,7 @@ public:
* @return true if a token could be read, false if the end of the stream
* has been reached.
*/
- bool read(CharReader &reader, Token &token, TokenizedData &data);
+ bool read(CharReader &reader, Token &token, TokenizedData &data) const;
/**
* The peek method does not advance the read position of the char reader,
@@ -196,7 +196,7 @@ public:
* @return true if a token could be read, false if the end of the stream
* has been reached.
*/
- bool peek(CharReader &reader, Token &token, TokenizedData &data);
+ bool peek(CharReader &reader, Token &token, TokenizedData &data) const;
};
}