@@ -672,7 +672,7 @@ class GenericReader {
672
672
// ! Check if token-by-token parsing JSON text is complete
673
673
/* ! \return Whether the JSON has been fully decoded.
674
674
*/
675
- RAPIDJSON_FORCEINLINE bool IterativeParseComplete () {
675
+ RAPIDJSON_FORCEINLINE bool IterativeParseComplete () const {
676
676
return IsIterativeParsingCompleteState (state_);
677
677
}
678
678
@@ -1784,7 +1784,7 @@ class GenericReader {
1784
1784
kTokenCount
1785
1785
};
1786
1786
1787
- RAPIDJSON_FORCEINLINE Token Tokenize (Ch c) {
1787
+ RAPIDJSON_FORCEINLINE Token Tokenize (Ch c) const {
1788
1788
1789
1789
// !@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
1790
1790
#define N NumberToken
@@ -1811,7 +1811,7 @@ class GenericReader {
1811
1811
return NumberToken;
1812
1812
}
1813
1813
1814
- RAPIDJSON_FORCEINLINE IterativeParsingState Predict (IterativeParsingState state, Token token) {
1814
+ RAPIDJSON_FORCEINLINE IterativeParsingState Predict (IterativeParsingState state, Token token) const {
1815
1815
// current state x one lookahead token -> new state
1816
1816
static const char G[cIterativeParsingStateCount][kTokenCount ] = {
1817
1817
// Finish(sink state)
@@ -2150,11 +2150,11 @@ class GenericReader {
2150
2150
}
2151
2151
}
2152
2152
2153
- RAPIDJSON_FORCEINLINE bool IsIterativeParsingDelimiterState (IterativeParsingState s) {
2153
+ RAPIDJSON_FORCEINLINE bool IsIterativeParsingDelimiterState (IterativeParsingState s) const {
2154
2154
return s >= IterativeParsingElementDelimiterState;
2155
2155
}
2156
2156
2157
- RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState (IterativeParsingState s) {
2157
+ RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState (IterativeParsingState s) const {
2158
2158
return s <= IterativeParsingErrorState;
2159
2159
}
2160
2160
0 commit comments