object Punycode
source · line 73public
public object Punycode
Raw Punycode conversion without domain-name validation. Use Idna when processing a host name.
function decode
source · line 81public
public fun decode(text: String): String
Decodes a Punycode payload without a label prefix. Invalid payloads throw IdnaException.
parameter text
source · line 81public
text: String
function encode
source · line 77public
public fun encode(text: String): String
Encodes Unicode text as a Punycode payload without adding the xn-- label prefix.
parameter text
source · line 77public
text: String