| ... | @@ -19,8 +19,6 @@ pub fn ToASCII( | ... | @@ -19,8 +19,6 @@ pub fn ToASCII( |
| 19 | VerifyDnsLength: bool, | 19 | VerifyDnsLength: bool, |
| 20 | IgnoreInvalidPunycode: bool, | 20 | IgnoreInvalidPunycode: bool, |
| 21 | ) ![]u8 { | 21 | ) ![]u8 { |
| 22 | // if (extras.matchesAll(u8, domain_name, std.ascii.isAscii)) return allocator.dupe(u8, domain_name); | | |
| 23 | | | |
| 24 | var map = extras.ManyArrayList(u8).init(allocator); | 22 | var map = extras.ManyArrayList(u8).init(allocator); |
| 25 | defer map.deinit(); | 23 | defer map.deinit(); |
| 26 | | 24 | |
| ... | @@ -56,7 +54,6 @@ pub fn ToUnicode( | ... | @@ -56,7 +54,6 @@ pub fn ToUnicode( |
| 56 | Transitional_Processing: bool, //deprecated | 54 | Transitional_Processing: bool, //deprecated |
| 57 | IgnoreInvalidPunycode: bool, | 55 | IgnoreInvalidPunycode: bool, |
| 58 | ) ![]u8 { | 56 | ) ![]u8 { |
| 59 | // if (extras.matchesAll(u8, domain_name, std.ascii.isAscii)) return allocator.dupe(u8, domain_name); | | |
| 60 | var map = extras.ManyArrayList(u8).init(allocator); | 57 | var map = extras.ManyArrayList(u8).init(allocator); |
| 61 | defer map.deinit(); | 58 | defer map.deinit(); |
| 62 | try Processing(&map, domain_name, UseSTD3ASCIIRules, CheckHyphens, CheckBidi, CheckJoiners, Transitional_Processing, IgnoreInvalidPunycode); | 59 | try Processing(&map, domain_name, UseSTD3ASCIIRules, CheckHyphens, CheckBidi, CheckJoiners, Transitional_Processing, IgnoreInvalidPunycode); |