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
116f6599
Commit
116f6599
authored
Feb 04, 2017
by
StilesCrisis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve coverage and performance
Further improvement to perftest and hoping to make coveralls happy.
parent
5de72584
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
reader.h
include/rapidjson/reader.h
+10
-8
No files found.
include/rapidjson/reader.h
View file @
116f6599
...
...
@@ -537,19 +537,18 @@ public:
IterativeParsingState
n
=
Predict
(
state_
,
t
);
IterativeParsingState
d
=
Transit
<
parseFlags
>
(
state_
,
t
,
n
,
is
,
handler
);
// If we've finished or hit an error...
if
(
IsIterativeParsingCompleteState
(
d
))
{
// Report errors.
if
(
d
==
IterativeParsingErrorState
)
{
HandleError
(
state_
,
is
);
return
false
;
}
// Transition to the finish state.
RAPIDJSON_ASSERT
(
d
==
IterativeParsingFinishState
);
state_
=
d
;
// Do not further consume streams if we've parsed a complete object or hit an error.
if
(
IsIterativeParsingCompleteState
(
state_
))
{
// If we hit an error, we are done.
if
(
HasParseError
())
return
false
;
// If StopWhenDone is not set...
if
(
!
(
parseFlags
&
kParseStopWhenDoneFlag
))
{
// ... and extra non-whitespace data is found...
...
...
@@ -561,11 +560,14 @@ public:
}
}
// We are done!
//
Success!
We are done!
return
true
;
}
// If we found anything other than a delimiter, we invoked the handler, so we can return true now.
// Transition to the new state.
state_
=
d
;
// If we parsed anything other than a delimiter, we invoked the handler, so we can return true now.
if
(
!
IsIterativeParsingDelimiterState
(
n
))
return
true
;
}
...
...
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