mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn
This commit is contained in:
commit
ec9c7c324e
@ -235,6 +235,10 @@ for i in [r]:
|
|||||||
rf = open(r, "w")
|
rf = open(r, "w")
|
||||||
|
|
||||||
(canon_decomp, compat_decomp, gencats) = load_unicode_data("UnicodeData.txt")
|
(canon_decomp, compat_decomp, gencats) = load_unicode_data("UnicodeData.txt")
|
||||||
|
|
||||||
|
# Explain that the source code was generated by this script.
|
||||||
|
rf.write('// The following code was generated by "src/etc/unicode.py"\n\n')
|
||||||
|
|
||||||
emit_property_module(rf, "general_category", gencats)
|
emit_property_module(rf, "general_category", gencats)
|
||||||
|
|
||||||
#emit_decomp_module(rf, canon_decomp, compat_decomp)
|
#emit_decomp_module(rf, canon_decomp, compat_decomp)
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#[doc(hidden)]; // FIXME #3538
|
#[doc(hidden)]; // FIXME #3538
|
||||||
|
|
||||||
|
// The following code was generated by "src/etc/unicode.py"
|
||||||
|
|
||||||
pub mod general_category {
|
pub mod general_category {
|
||||||
|
|
||||||
fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool {
|
fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user