glibFunction hostname_to_ascii
Source pub fn hostname_to_ascii(hostname: &str) -> Option<GString>
Expand description
Converts @hostname to its canonical ASCII form; an ASCII-only
string containing no uppercase letters and not ending with a
trailing dot.
§hostname
a valid UTF-8 or ASCII hostname
§Returns
an ASCII hostname, which must be freed,
or None
if @hostname is in some way invalid.