Lines Matching +full:whatwg +full:- +full:url
1 // Copyright 2016 The rust-url developers.
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10 //! [per the WHATWG URL Standard](https://url.spec.whatwg.org/#idna).
56 /// The [domain to ASCII](https://url.spec.whatwg.org/#concept-domain-to-ascii) algorithm.
59 /// normalizing characters (upper-case to lower-case and other kinds of equivalence)
63 pub fn domain_to_ascii(domain: &str) -> Result<String, uts46::Errors> { in domain_to_ascii()
67 /// The [domain to ASCII](https://url.spec.whatwg.org/#concept-domain-to-ascii) algorithm,
69 pub fn domain_to_ascii_strict(domain: &str) -> Result<String, uts46::Errors> { in domain_to_ascii_strict()
76 /// The [domain to Unicode](https://url.spec.whatwg.org/#concept-domain-to-unicode) algorithm.
79 /// normalizing characters (upper-case to lower-case and other kinds of equivalence)
82 /// This may indicate [syntax violations](https://url.spec.whatwg.org/#syntax-violation)
84 pub fn domain_to_unicode(domain: &str) -> (String, Result<(), uts46::Errors>) { in domain_to_unicode()