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
f431aaff
Commit
f431aaff
authored
Jul 20, 2015
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dom.zh-cn.md
parent
8c0e50f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dom.zh-cn.md
doc/dom.zh-cn.md
+3
-3
No files found.
doc/dom.zh-cn.md
View file @
f431aaff
...
...
@@ -124,7 +124,7 @@ GenericDocument& GenericDocument::Parse(const Ch* str);
## 解析错误 {#ParseError}
当解析过程顺利完成,
`Document`
便会含有解析结果。当过程出现错误,原来的DOM会
*维持不便*
。可使用
`bool HasParseError()`
、
`ParseErrorCode GetParseError()`
及
`size_t GetParseOffet()`
获取解析的错误状态。
当解析过程顺利完成,
`Document`
便会含有解析结果。当过程出现错误,原来的DOM会
*维持不便*
。可使用
`bool HasParseError()`
、
`ParseErrorCode GetParseError()`
及
`size_t GetParseOff
s
et()`
获取解析的错误状态。
解析错误代号 | 描述
--------------------------------------------|---------------------------------------------------
...
...
@@ -159,8 +159,8 @@ GenericDocument& GenericDocument::Parse(const Ch* str);
Document d;
if (d.Parse(json).HasParseError()) {
fprintf(stderr, "\nError(offset %u): %s\n",
(unsigned)
reader
.GetErrorOffset(),
GetParseError_En(
reader
.GetParseErrorCode()));
(unsigned)
d
.GetErrorOffset(),
GetParseError_En(
d
.GetParseErrorCode()));
// ...
}
~~~
~~~~~~~
...
...
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