| author | |
| committer | |
| log | ba472f055e4e641958202b0229ef52a8c5193d8b |
| tree | e8a47ee27642bff8ac271ca7540bb8e8a8461d98 |
| parent | f8e9e53b4f547ebc4f926a6c4cd67fe8055a1db0 |
2 files changed, 1 insertions(+), 10 deletions(-)
idna.zig-3| ... | ... | @@ -19,8 +19,6 @@ pub fn ToASCII( |
| 19 | 19 | VerifyDnsLength: bool, |
| 20 | 20 | IgnoreInvalidPunycode: bool, |
| 21 | 21 | ) ![]u8 { |
| 22 | // if (extras.matchesAll(u8, domain_name, std.ascii.isAscii)) return allocator.dupe(u8, domain_name); | |
| 23 | ||
| 24 | 22 | var map = extras.ManyArrayList(u8).init(allocator); |
| 25 | 23 | defer map.deinit(); |
| 26 | 24 | |
| ... | ... | @@ -56,7 +54,6 @@ pub fn ToUnicode( |
| 56 | 54 | Transitional_Processing: bool, //deprecated |
| 57 | 55 | IgnoreInvalidPunycode: bool, |
| 58 | 56 | ) ![]u8 { |
| 59 | // if (extras.matchesAll(u8, domain_name, std.ascii.isAscii)) return allocator.dupe(u8, domain_name); | |
| 60 | 57 | var map = extras.ManyArrayList(u8).init(allocator); |
| 61 | 58 | defer map.deinit(); |
| 62 | 59 | try Processing(&map, domain_name, UseSTD3ASCIIRules, CheckHyphens, CheckBidi, CheckJoiners, Transitional_Processing, IgnoreInvalidPunycode); |
normalization.zig+1-7| ... | ... | @@ -178,13 +178,7 @@ fn CanonicalComposition(map: *extras.ManyArrayList(u8)) !void { |
| 178 | 178 | |
| 179 | 179 | const slt = map.items(i + 2); |
| 180 | 180 | const cpt = std.unicode.utf8Decode(slt) catch unreachable; |
| 181 | if ((hangul_syllable_type(cpt) orelse { | |
| 182 | // try composeHangulSyllable2(map, i, cpl, cpv); | |
| 183 | continue; | |
| 184 | }) != .T) { | |
| 185 | // try composeHangulSyllable2(map, i, cpl, cpv); | |
| 186 | continue; | |
| 187 | } | |
| 181 | if ((hangul_syllable_type(cpt) orelse continue) != .T) continue; | |
| 188 | 182 | std.debug.assert(cpt >= 0x11A8 and cpt <= 0x11C2); |
| 189 | 183 | // seq is <L,V,T> |
| 190 | 184 | try composeHangulSyllable3(map, i, cpl, cpv, cpt); |