Liking cljdoc? Tell your friends :D
All platforms.

dk.simongray.whatwg-url.punycode

Punycode by RFC 3492, which writes a Unicode label of a domain name in ASCII, e.g. the xn--fa-hia of xn--fa-hia.de for faß.de.

Like most implementations, it limits its numbers to 31 bits.

Punycode by RFC 3492, which writes a Unicode label of a domain name in
ASCII, e.g. the xn--fa-hia of xn--fa-hia.de for faß.de.

Like most implementations, it limits its numbers to 31 bits.
raw docstring

decodeclj/s

(decode s)

The Unicode text of the Punycode s, without its xn--, or nil when it isn't Punycode.

(decode "fa-hia")
;; => "faß"
The Unicode text of the Punycode `s`, without its xn--, or nil when it
isn't Punycode.

    (decode "fa-hia")
    ;; => "faß"
sourceraw docstring

encodeclj/s

(encode s)

The Punycode of the Unicode text s, without an xn--, or nil when it's too long to encode.

(encode "faß")
;; => "fa-hia"
The Punycode of the Unicode text `s`, without an xn--, or nil when it's
too long to encode.

    (encode "faß")
    ;; => "fa-hia"
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close