about summary refs log tree commit diff
path: root/src/libstd_unicode/tables.rs
AgeCommit message (Collapse)AuthorLines
2018-04-12Move contents of libstd_unicode into libcoreSimon Sapin-2378/+0
2018-01-02Move static code outside of unciode.py.Clar Charr-107/+24
2017-07-21[libstd_unicode] Create UnicodeVersion typeBehnam Esfahbod-3/+26
Create named struct `UnicodeVersion` to use instead of tuple type for `UNICODE_VERSION` value. This allows user to access the fields with meaningful field names: `major`, `minor`, and `micro`. Per request, an empty private field is added to the struct, so it can be extended in the future without API breakage.
2017-07-21[libstd_unicode] Change UNICODE_VERSION to use u32Behnam Esfahbod-1/+1
Use `u32` for version components, as `u64` is just an overkill, and `u32` is the default type for integers and the default type used for regular internal numbers. There's no expectation for Unicode Versions to even reach one thousand in the next hundered years. This is different from *package versions*, which may become something auto-generated and exceed human-friendly range of integer values.
2017-06-30[libstd_unicode] Upgrade to Unicode 10.0.0Behnam Esfahbod-155/+168
2017-05-04Move unicode Python script into libstd_unicode crate.Corey Farwell-1/+1
The only place this Python script is used is inside the libstd_unicode crate, so lets move it there.
2017-01-03Reduce the size of static data in std_unicode::tables.Simon Sapin-208/+45
`BoolTrie` works well for sets of code points spread out through most of Unicode’s range, but is uses a lot of space for sets with few, mostly low, code points. This switches a few of its instances to a similar but simpler trie data structure. ## Before `size_of::<BoolTrie>()` is 1552, which is added to `table.r3.len() * 8 + t.r5.len() + t.r6.len() * 8`: * `Cc_table`: 1632 * `White_Space_table`: 1656 * `Pattern_White_Space_table`: 1640 * Total: 4928 bytes ## After `size_of::<SmallBoolTrie>()` is 32, which is added to `t.r1.len() + t.r2.len() * 8`: * `Cc_table`: 51 * `White_Space_table`: 273 * `Pattern_White_Space_table`: 193 * Total: 517 bytes ## Difference Every Rust program with `std` statically linked should be about 4 KB smaller.
2016-11-30Rename 'librustc_unicode' crate to 'libstd_unicode'.Corey Farwell-0/+2588
Fixes #26554.