Fix dead links

This commit is contained in:
miloyip 2015-04-07 14:11:34 +08:00
parent dd28719aae
commit 8d76b402ea
2 changed files with 4 additions and 4 deletions

View File

@ -227,9 +227,9 @@ There are some limitations of *in situ* parsing:
## Transcoding and Validation {#TranscodingAndValidation}
RapidJSON supports conversion between Unicode formats (officially termed UCS Transformation Format) internally. During DOM parsing, the source encoding of the stream can be different from the encoding of the DOM. For example, the source stream contains a UTF-8 JSON, while the DOM is using UTF-16 encoding. There is an example code in [EncodedInputStream](doc/stream.md#EncodedInputStream).
RapidJSON supports conversion between Unicode formats (officially termed UCS Transformation Format) internally. During DOM parsing, the source encoding of the stream can be different from the encoding of the DOM. For example, the source stream contains a UTF-8 JSON, while the DOM is using UTF-16 encoding. There is an example code in [EncodedInputStream](doc/stream.md).
When writing a JSON from DOM to output stream, transcoding can also be used. An example is in [EncodedOutputStream](stream.md#EncodedOutputStream).
When writing a JSON from DOM to output stream, transcoding can also be used. An example is in [EncodedOutputStream](doc/stream.md).
During transcoding, the source string is decoded to into Unicode code points, and then the code points are encoded in the target format. During decoding, it will validate the byte sequence in the source string. If it is not a valid sequence, the parser will be stopped with `kParseErrorStringInvalidEncoding` error.

View File

@ -231,9 +231,9 @@ JSON string会被打上const-string的标志。但它们可能并非真正的「
## 转码与校验 {#TranscodingAndValidation}
RapidJSON内部支持不同Unicode格式正式的术语是UCS变换格式间的转换。在DOM解析时流的来源编码与DOM的编码可以不同。例如来源流可能含有UTF-8的JSON而DOM则使用UTF-16编码。在[EncodedInputStream](doc/stream.md#EncodedInputStream)一节里有一个例子。
RapidJSON内部支持不同Unicode格式正式的术语是UCS变换格式间的转换。在DOM解析时流的来源编码与DOM的编码可以不同。例如来源流可能含有UTF-8的JSON而DOM则使用UTF-16编码。在[EncodedInputStream](doc/stream.md)一节里有一个例子。
当从DOM输出一个JSON至输出流之时也可以使用转码功能。在[EncodedOutputStream](stream.md#EncodedOutputStream)一节里有一个例子。
当从DOM输出一个JSON至输出流之时也可以使用转码功能。在[EncodedOutputStream](doc/stream.md)一节里有一个例子。
在转码过程中会把来源string解码成Unicode码点然后把码点编码成目标格式。在解码时它会校验来源string的字节序列是否合法。若遇上非合法序列解析器会停止并返回`kParseErrorStringInvalidEncoding`错误。