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
188b99b4
Commit
188b99b4
authored
Jun 26, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the stack after parsing and fixes indentation.
parent
74a24377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
reader.h
include/rapidjson/reader.h
+4
-3
No files found.
include/rapidjson/reader.h
View file @
188b99b4
...
...
@@ -240,9 +240,9 @@ public:
RAPIDJSON_PARSE_ERROR_NORETURN
(
"Text only contains white space(s)"
,
is
.
Tell
());
else
{
switch
(
is
.
Peek
())
{
case
'{'
:
ParseObject
<
parseFlags
>
(
is
,
handler
);
break
;
case
'['
:
ParseArray
<
parseFlags
>
(
is
,
handler
);
break
;
default
:
RAPIDJSON_PARSE_ERROR_NORETURN
(
"Expect either an object or array at root"
,
is
.
Tell
());
case
'{'
:
ParseObject
<
parseFlags
>
(
is
,
handler
);
break
;
case
'['
:
ParseArray
<
parseFlags
>
(
is
,
handler
);
break
;
default
:
RAPIDJSON_PARSE_ERROR_NORETURN
(
"Expect either an object or array at root"
,
is
.
Tell
());
}
SkipWhitespace
(
is
);
...
...
@@ -250,6 +250,7 @@ public:
RAPIDJSON_PARSE_ERROR_NORETURN
(
"Nothing should follow the root object or array."
,
is
.
Tell
());
}
stack_
.
Clear
();
return
!
HasParseError
();
}
...
...
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