| ... | @@ -70,11 +70,6 @@ pub fn bidiPairedBracketType(cp: u32) ?ucd.bidi_brackets.BracketPairing.Type { | ... | @@ -70,11 +70,6 @@ pub fn bidiPairedBracketType(cp: u32) ?ucd.bidi_brackets.BracketPairing.Type { |
| 70 | } | 70 | } |
| 71 | | 71 | |
| 72 | pub fn toLower(cp: u32) ?u32 { | 72 | pub fn toLower(cp: u32) ?u32 { |
| 73 | @setEvalBranchQuota(100_000); | 73 | if (cp > std.math.maxInt(u21)) return null; |
| 74 | inline for (ucd.unicode_data.data) |row| { | 74 | return ucd.unicode_data.find(@intCast(cp))[11] orelse null; // https://github.com/ziglang/zig/issues/16765 |
| 75 | if (comptime row[11]) |lc| { | | |
| 76 | if (cp == row[0]) return lc; | | |
| 77 | } | | |
| 78 | } | | |
| 79 | return null; | | |
| 80 | } | 75 | } |