- public bool is_ascii_encoded (string hostname)
Tests if hostname
contains segments with an ASCII-compatible
encoding of an Internationalized Domain Name.
- public bool is_ip_address (string hostname)
Tests if hostname
is the string form of an IPv4 or IPv6
address.
- public bool is_non_ascii (string hostname)
Tests if hostname
contains Unicode characters.
- public string to_ascii (string hostname)
Converts hostname
to its canonical ASCII form; an ASCII-only
string containing no uppercase letters and not ending with a trailing dot.
- public string to_unicode (string hostname)
Converts hostname
to its canonical presentation form; a UTF-8
string in Unicode normalization form C, containing no uppercase letters, no forbidden characters, and no ASCII-encoded segments, and not
ending with a trailing dot.