| 1 | // This is a part of rust-encoding. |
| 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 | //! [rust-encoding](https://github.com/lifthrasiir/rust-encoding). |
| 8 | |
| 9 | #![cfg_attr(test, feature(test))] |
| 10 | |
| 11 | #[cfg(test)] |
| 12 | #[macro_use] |
| 13 | extern crate encoding_index_tests; |
| 14 | |
| 15 | /// GB 18030 two-byte area. |
| 16 | /// |
| 17 | /// From the Encoding Standard: |
| 18 | /// |
| 19 | /// > This matches the GB18030 standard for code points encoded as two bytes, |
| 20 | /// > except `0xA3 0xA0` maps to U+3000 to be compatible with deployed content. |
| 21 | pub mod gb18030; |
| 22 | |
| 23 | /// GB 18030 four-byte area. |
| 24 | /// |
| 25 | /// From the Encoding Standard: |
| 26 | /// |
| 27 | /// > This index works different from all others. |
| 28 | /// > Listing all code points would result in over a million items |
| 29 | /// > whereas they can be represented neatly in 207 ranges combined with trivial limit checks. |
| 30 | /// > It therefore only superficially matches the GB18030 standard |
| 31 | /// > for code points encoded as four bytes. |
| 32 | pub mod gb18030_ranges; |
| 33 |