Searched refs:to_ascii (Results 1 – 7 of 7) sorted by relevance
12 assert!(config.to_ascii("xn--").is_err()); in test_punycode_prefix_with_length_check()13 assert!(config.to_ascii("xn---").is_err()); in test_punycode_prefix_with_length_check()14 assert!(config.to_ascii("xn-----").is_err()); in test_punycode_prefix_with_length_check()15 assert!(config.to_ascii("xn--.").is_err()); in test_punycode_prefix_with_length_check()16 assert!(config.to_ascii("xn--...").is_err()); in test_punycode_prefix_with_length_check()17 assert!(config.to_ascii(".xn--").is_err()); in test_punycode_prefix_with_length_check()18 assert!(config.to_ascii("...xn--").is_err()); in test_punycode_prefix_with_length_check()19 assert!(config.to_ascii("xn--.xn--").is_err()); in test_punycode_prefix_with_length_check()20 assert!(config.to_ascii("xn--.example.org").is_err()); in test_punycode_prefix_with_length_check()31 assert_eq!(config.to_ascii("xn--").unwrap(), ""); in test_punycode_prefix_without_length_check()[all …]
97 let to_ascii_n_result = config.transitional_processing(false).to_ascii(&source); in collect_tests()105 let to_ascii_t_result = config.transitional_processing(true).to_ascii(&source); in collect_tests()
29 bench.iter(|| config.to_ascii(black_box(encoded))); in to_ascii_puny_label()35 bench.iter(|| config.to_ascii(black_box(encoded))); in to_ascii_simple()41 bench.iter(|| config.to_ascii(black_box(encoded))); in to_ascii_merged()
51 Config::default().to_ascii(domain) in domain_to_ascii()60 .to_ascii(domain) in domain_to_ascii_strict()
454 pub fn to_ascii<'a>(&'a mut self, domain: &str, out: &mut String) -> Result<(), Errors> { in to_ascii() method558 pub fn to_ascii(self, domain: &str) -> Result<String, Errors> { in to_ascii() method561 codec.to_ascii(domain, &mut result).map(|()| result) in to_ascii()
2785 constexpr Char to_ascii(Char value) {2789 constexpr typename std::underlying_type<Char>::type to_ascii(Char value) {2802 switch (to_ascii(*p)) {2887 switch (to_ascii(*begin)) {
2442 int to_ascii(custom_char c) { return c; } in to_ascii() function