Skip to content

Commit a7f687f

Browse files
authored
Merge pull request Tencent#1153 from Haffon/master
GetParseOffset
2 parents 802ece6 + 7dfeee8 commit a7f687f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/dom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ And the `InputStream` is type of input stream.
128128
129129
## Parse Error {#ParseError}
130130
131-
When the parse processing succeeded, the `Document` contains the parse results. When there is an error, the original DOM is *unchanged*. And the error state of parsing can be obtained by `bool HasParseError()`, `ParseErrorCode GetParseError()` and `size_t GetParseOffset()`.
131+
When the parse processing succeeded, the `Document` contains the parse results. When there is an error, the original DOM is *unchanged*. And the error state of parsing can be obtained by `bool HasParseError()`, `ParseErrorCode GetParseError()` and `size_t GetErrorOffset()`.
132132
133133
Parse Error Code | Description
134134
--------------------------------------------|---------------------------------------------------

doc/dom.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ GenericDocument& GenericDocument::Parse(const Ch* str);
128128
129129
## 解析错误 {#ParseError}
130130
131-
当解析过程顺利完成,`Document` 便会含有解析结果。当过程出现错误,原来的 DOM 会*维持不变*。可使用 `bool HasParseError()`、`ParseErrorCode GetParseError()` 及 `size_t GetParseOffset()` 获取解析的错误状态。
131+
当解析过程顺利完成,`Document` 便会含有解析结果。当过程出现错误,原来的 DOM 会*维持不变*。可使用 `bool HasParseError()`、`ParseErrorCode GetParseError()` 及 `size_t GetErrorOffset()` 获取解析的错误状态。
132132
133133
解析错误代号 | 描述
134134
--------------------------------------------|---------------------------------------------------

0 commit comments

Comments
 (0)