| author | |
| committer | |
| log | e49eef7e53025e046292d91b6072571706577eb6 |
| tree | 6cae58efdf2f04fd974b9f61df927c3514ddd9a1 |
| parent | b92acc4a372c771e461a7140b4ffaff5dbc80d21 |
| signature |
1 files changed, 2 insertions(+), 7 deletions(-)
src/root.zig+2-7| ... | ... | @@ -70,11 +70,6 @@ pub fn bidiPairedBracketType(cp: u32) ?ucd.bidi_brackets.BracketPairing.Type { |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | pub fn toLower(cp: u32) ?u32 { |
| 73 | @setEvalBranchQuota(100_000); | |
| 74 | inline for (ucd.unicode_data.data) |row| { | |
| 75 | if (comptime row[11]) |lc| { | |
| 76 | if (cp == row[0]) return lc; | |
| 77 | } | |
| 78 | } | |
| 79 | return null; | |
| 73 | if (cp > std.math.maxInt(u21)) return null; | |
| 74 | return ucd.unicode_data.find(@intCast(cp))[11] orelse null; // https://github.com/ziglang/zig/issues/16765 | |
| 80 | 75 | } |