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