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
d0a78bf5
Commit
d0a78bf5
authored
May 03, 2018
by
Sergey Kovalevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added const for Reader methods
parent
342a616a
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 @
d0a78bf5
...
...
@@ -673,7 +673,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_
);
}
...
...
@@ -1785,7 +1785,7 @@ private:
kTokenCount
};
RAPIDJSON_FORCEINLINE
Token
Tokenize
(
Ch
c
)
{
RAPIDJSON_FORCEINLINE
Token
Tokenize
(
Ch
c
)
const
{
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
#define N NumberToken
...
...
@@ -1812,7 +1812,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)
...
...
@@ -2151,11 +2151,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
;
}
...
...
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