Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
a0910358
Unverified
Commit
a0910358
authored
6 years ago
by
Milo Yip
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1240 from ksergey/FIX_Reader
Added const for Reader methods
parents
b32cd942
d0a78bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
reader.h
include/rapidjson/reader.h
+5
-5
No files found.
include/rapidjson/reader.h
View file @
a0910358
...
...
@@ -672,7 +672,7 @@ public:
//! Check if token-by-token parsing JSON text is complete
/*! \return Whether the JSON has been fully decoded.
*/
RAPIDJSON_FORCEINLINE
bool
IterativeParseComplete
()
{
RAPIDJSON_FORCEINLINE
bool
IterativeParseComplete
()
const
{
return
IsIterativeParsingCompleteState
(
state_
);
}
...
...
@@ -1784,7 +1784,7 @@ private:
kTokenCount
};
RAPIDJSON_FORCEINLINE
Token
Tokenize
(
Ch
c
)
{
RAPIDJSON_FORCEINLINE
Token
Tokenize
(
Ch
c
)
const
{
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
#define N NumberToken
...
...
@@ -1811,7 +1811,7 @@ private:
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
static
const
char
G
[
cIterativeParsingStateCount
][
kTokenCount
]
=
{
// Finish(sink state)
...
...
@@ -2150,11 +2150,11 @@ private:
}
}
RAPIDJSON_FORCEINLINE
bool
IsIterativeParsingDelimiterState
(
IterativeParsingState
s
)
{
RAPIDJSON_FORCEINLINE
bool
IsIterativeParsingDelimiterState
(
IterativeParsingState
s
)
const
{
return
s
>=
IterativeParsingElementDelimiterState
;
}
RAPIDJSON_FORCEINLINE
bool
IsIterativeParsingCompleteState
(
IterativeParsingState
s
)
{
RAPIDJSON_FORCEINLINE
bool
IsIterativeParsingCompleteState
(
IterativeParsingState
s
)
const
{
return
s
<=
IterativeParsingErrorState
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment