1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// This is a part of rust-encoding.
//
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/publicdomain/zero/1.0/

//! Simplified Chinese index tables for
//! [rust-encoding](https://github.com/lifthrasiir/rust-encoding).

#![cfg_attr(test, feature(test))]

#[cfg(test)]
#[macro_use]
extern crate encoding_index_tests;

/// GB 18030 two-byte area.
///
/// From the Encoding Standard:
///
/// > This matches the GB18030 standard for code points encoded as two bytes,
/// > except `0xA3 0xA0` maps to U+3000 to be compatible with deployed content.
pub mod gb18030;

/// GB 18030 four-byte area.
///
/// From the Encoding Standard:
///
/// > This index works different from all others.
/// > Listing all code points would result in over a million items
/// > whereas they can be represented neatly in 207 ranges combined with trivial limit checks.
/// > It therefore only superficially matches the GB18030 standard
/// > for code points encoded as four bytes.
pub mod gb18030_ranges;