Merge pull request #1240 from ksergey/FIX_Reader
Added const for Reader methods
This commit is contained in:
commit
a091035846
@ -672,7 +672,7 @@ public:
|
|||||||
//! Check if token-by-token parsing JSON text is complete
|
//! Check if token-by-token parsing JSON text is complete
|
||||||
/*! \return Whether the JSON has been fully decoded.
|
/*! \return Whether the JSON has been fully decoded.
|
||||||
*/
|
*/
|
||||||
RAPIDJSON_FORCEINLINE bool IterativeParseComplete() {
|
RAPIDJSON_FORCEINLINE bool IterativeParseComplete() const {
|
||||||
return IsIterativeParsingCompleteState(state_);
|
return IsIterativeParsingCompleteState(state_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1784,7 +1784,7 @@ private:
|
|||||||
kTokenCount
|
kTokenCount
|
||||||
};
|
};
|
||||||
|
|
||||||
RAPIDJSON_FORCEINLINE Token Tokenize(Ch c) {
|
RAPIDJSON_FORCEINLINE Token Tokenize(Ch c) const {
|
||||||
|
|
||||||
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
|
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
|
||||||
#define N NumberToken
|
#define N NumberToken
|
||||||
@ -1811,7 +1811,7 @@ private:
|
|||||||
return NumberToken;
|
return NumberToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
RAPIDJSON_FORCEINLINE IterativeParsingState Predict(IterativeParsingState state, Token token) {
|
RAPIDJSON_FORCEINLINE IterativeParsingState Predict(IterativeParsingState state, Token token) const {
|
||||||
// current state x one lookahead token -> new state
|
// current state x one lookahead token -> new state
|
||||||
static const char G[cIterativeParsingStateCount][kTokenCount] = {
|
static const char G[cIterativeParsingStateCount][kTokenCount] = {
|
||||||
// Finish(sink state)
|
// Finish(sink state)
|
||||||
@ -2150,11 +2150,11 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RAPIDJSON_FORCEINLINE bool IsIterativeParsingDelimiterState(IterativeParsingState s) {
|
RAPIDJSON_FORCEINLINE bool IsIterativeParsingDelimiterState(IterativeParsingState s) const {
|
||||||
return s >= IterativeParsingElementDelimiterState;
|
return s >= IterativeParsingElementDelimiterState;
|
||||||
}
|
}
|
||||||
|
|
||||||
RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) {
|
RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) const {
|
||||||
return s <= IterativeParsingErrorState;
|
return s <= IterativeParsingErrorState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user