Home
last modified time | relevance | path

Searched refs:to_ascii (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/idna/tests/
Dunit.rs12 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 …]
Duts46.rs97 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()
/external/rust/crates/idna/benches/
Dall.rs29 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()
/external/rust/crates/idna/src/
Dlib.rs51 Config::default().to_ascii(domain) in domain_to_ascii()
60 .to_ascii(domain) in domain_to_ascii_strict()
Duts46.rs454 pub fn to_ascii<'a>(&'a mut self, domain: &str, out: &mut String) -> Result<(), Errors> { in to_ascii() method
558 pub fn to_ascii(self, domain: &str) -> Result<String, Errors> { in to_ascii() method
561 codec.to_ascii(domain, &mut result).map(|()| result) in to_ascii()
/external/fmtlib/include/fmt/
Dformat.h2785 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)) {
/external/fmtlib/test/
Dformat-test.cc2442 int to_ascii(custom_char c) { return c; } in to_ascii() function