encoding_index_simpchinese/
lib.rs

1// This is a part of encoding-next.
2//
3// Any copyright is dedicated to the Public Domain.
4// https://creativecommons.org/publicdomain/zero/1.0/
5
6//! Simplified Chinese index tables for
7//! [encoding-next](https://github.com/alexschrod/encoding-next).
8
9#![cfg_attr(test, feature(test))]
10
11/// GB 18030 two-byte area.
12///
13/// From the Encoding Standard:
14///
15/// > This matches the GB18030 standard for code points encoded as two bytes,
16/// > except `0xA3 0xA0` maps to U+3000 to be compatible with deployed content.
17#[rustfmt::skip]
18pub mod gb18030;
19
20/// GB 18030 four-byte area.
21///
22/// From the Encoding Standard:
23///
24/// > This index works different from all others.
25/// > Listing all code points would result in over a million items
26/// > whereas they can be represented neatly in 207 ranges combined with trivial limit checks.
27/// > It therefore only superficially matches the GB18030 standard
28/// > for code points encoded as four bytes.
29#[rustfmt::skip]
30pub mod gb18030_ranges;