diff --git a/encoding.bs b/encoding.bs index 018d917..80f5f04 100644 --- a/encoding.bs +++ b/encoding.bs @@ -1625,25 +1625,24 @@ consumers of content generated with GBK's encoder.
If gb18030 third is not 0x00, then:
Let code point be null. +
If byte is not in the range 0x30 to 0x39, inclusive, then: -
If byte is in the range 0x30 to 0x39, inclusive, set - code point to the - index gb18030 ranges code point for +
Prepend gb18030 second, gb18030 third, and byte to + stream. + +
Set gb18030 first, gb18030 second, and gb18030 third to 0x00. + +
Return error. +
Let code point be the index gb18030 ranges code point for ((gb18030 first − 0x81) × (10 × 126 × 10)) + ((gb18030 second − 0x30) × (10 × 126)) + ((gb18030 third − 0x81) × 10) + byte − 0x30. -
Let buffer be a byte sequence consisting of - gb18030 second, gb18030 third, and byte, in - order. - -
Set gb18030 first, gb18030 second, and - gb18030 third to 0x00. - -
If code point is null, - prepend buffer to - stream and return error. +
If code point is null, return error.
Return a code point whose value is code point.