Skip to content

Commit

Permalink
Update to Unicode 15.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 14, 2023
1 parent 50ec57d commit ce6b6dc
Showing 1 changed file with 54 additions and 4 deletions.
58 changes: 54 additions & 4 deletions src/unicode/map.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by scripts/mapgen.py
// 2019-08-31
// 2023-08-14

use super::fold::Fold;

Expand Down Expand Up @@ -329,7 +329,7 @@ pub fn lookup(orig: char) -> Fold {
0x2a => from,
0x2b => from,
0x2c => match low_byte {
x @ _ if x <= 0x2e => from.wrapping_add(0x0030),
x @ _ if x <= 0x2f => from.wrapping_add(0x0030),
0x60 => 0x2c61,
0x62 => 0x026b,
0x63 => 0x1d7d,
Expand Down Expand Up @@ -372,11 +372,14 @@ pub fn lookup(orig: char) -> Fold {
0xa7b1 => 0x0287,
0xa7b2 => 0x029d,
0xa7b3 => 0xab53,
x @ _ if 0xa7b4 <= x && x <= 0xa7be => from | 1,
0xa7c2 => 0xa7c3,
x @ _ if 0xa7b4 <= x && x <= 0xa7c2 => from | 1,
0xa7c4 => 0xa794,
0xa7c5 => 0x0282,
0xa7c6 => 0x1d8e,
x @ _ if 0xa7c7 <= x && x <= 0xa7c9 => (from + 1) & !1,
0xa7d0 => 0xa7d1,
x @ _ if 0xa7d6 <= x && x <= 0xa7d8 => from | 1,
0xa7f5 => 0xa7f6,
x @ _ if 0xab70 <= x && x <= 0xabbf => from.wrapping_sub(0x97d0),
0xfb00 => return Fold::Two('\u{0066}', '\u{0066}'),
0xfb01 => return Fold::Two('\u{0066}', '\u{0069}'),
Expand All @@ -393,6 +396,10 @@ pub fn lookup(orig: char) -> Fold {
x @ _ if 0xff21 <= x && x <= 0xff3a => from.wrapping_add(0x0020),
x @ _ if 0x10400 <= x && x <= 0x10427 => from.wrapping_add(0x0028),
x @ _ if 0x104b0 <= x && x <= 0x104d3 => from.wrapping_add(0x0028),
x @ _ if 0x10570 <= x && x <= 0x1057a => from.wrapping_add(0x0027),
x @ _ if 0x1057c <= x && x <= 0x1058a => from.wrapping_add(0x0027),
x @ _ if 0x1058c <= x && x <= 0x10592 => from.wrapping_add(0x0027),
x @ _ if 0x10594 <= x && x <= 0x10595 => from.wrapping_add(0x0027),
x @ _ if 0x10c80 <= x && x <= 0x10cb2 => from.wrapping_add(0x0040),
x @ _ if 0x118a0 <= x && x <= 0x118bf => from.wrapping_add(0x0020),
x @ _ if 0x16e40 <= x && x <= 0x16e5f => from.wrapping_add(0x0020),
Expand Down Expand Up @@ -1367,6 +1374,7 @@ fn lookup_consistency() {
0x2c2c => 0x2c5c,
0x2c2d => 0x2c5d,
0x2c2e => 0x2c5e,
0x2c2f => 0x2c5f,
0x2c60 => 0x2c61,
0x2c62 => 0x026b,
0x2c63 => 0x1d7d,
Expand Down Expand Up @@ -1547,10 +1555,17 @@ fn lookup_consistency() {
0xa7ba => 0xa7bb,
0xa7bc => 0xa7bd,
0xa7be => 0xa7bf,
0xa7c0 => 0xa7c1,
0xa7c2 => 0xa7c3,
0xa7c4 => 0xa794,
0xa7c5 => 0x0282,
0xa7c6 => 0x1d8e,
0xa7c7 => 0xa7c8,
0xa7c9 => 0xa7ca,
0xa7d0 => 0xa7d1,
0xa7d6 => 0xa7d7,
0xa7d8 => 0xa7d9,
0xa7f5 => 0xa7f6,
0xab70 => 0x13a0,
0xab71 => 0x13a1,
0xab72 => 0x13a2,
Expand Down Expand Up @@ -1745,6 +1760,41 @@ fn lookup_consistency() {
0x104d1 => 0x104f9,
0x104d2 => 0x104fa,
0x104d3 => 0x104fb,
0x10570 => 0x10597,
0x10571 => 0x10598,
0x10572 => 0x10599,
0x10573 => 0x1059a,
0x10574 => 0x1059b,
0x10575 => 0x1059c,
0x10576 => 0x1059d,
0x10577 => 0x1059e,
0x10578 => 0x1059f,
0x10579 => 0x105a0,
0x1057a => 0x105a1,
0x1057c => 0x105a3,
0x1057d => 0x105a4,
0x1057e => 0x105a5,
0x1057f => 0x105a6,
0x10580 => 0x105a7,
0x10581 => 0x105a8,
0x10582 => 0x105a9,
0x10583 => 0x105aa,
0x10584 => 0x105ab,
0x10585 => 0x105ac,
0x10586 => 0x105ad,
0x10587 => 0x105ae,
0x10588 => 0x105af,
0x10589 => 0x105b0,
0x1058a => 0x105b1,
0x1058c => 0x105b3,
0x1058d => 0x105b4,
0x1058e => 0x105b5,
0x1058f => 0x105b6,
0x10590 => 0x105b7,
0x10591 => 0x105b8,
0x10592 => 0x105b9,
0x10594 => 0x105bb,
0x10595 => 0x105bc,
0x10c80 => 0x10cc0,
0x10c81 => 0x10cc1,
0x10c82 => 0x10cc2,
Expand Down

0 comments on commit ce6b6dc

Please sign in to comment.