(base16->bytes)
Transcode base16 characters to bytes.
Transcode base16 characters to bytes.
(base64->bytes web-safe?)
Transcode base64 characters to bytes. Takes groups of four 6-bit inputs and converts them to three 8-bit outputs.
Transcode base64 characters to bytes. Takes groups of four 6-bit inputs and converts them to three 8-bit outputs.
(base64-decode-byte n b0 b1 b2 b3)
Decodes an 8-bit byte from 6-bit base64 bytes. n is one of 0-2 indicating position in 24-bit group.
Decodes an 8-bit byte from 6-bit base64 bytes. n is one of 0-2 indicating position in 24-bit group.
(base64-encode-byte n b0 b1 b2)
Encodes a 6-bit byte from three 8-bit base64 bytes. n is one of 0-3 indicating position in 24-bit group.
Encodes a 6-bit byte from three 8-bit base64 bytes. n is one of 0-3 indicating position in 24-bit group.
(bytes->base16)
Trancode bytes to base16 characters.
Trancode bytes to base16 characters.
(bytes->base64 web-safe?)
Transcode from bytes to base64 using the specified alphabet (standard or websafe). Takes groups of three 8-bit inputs and converts them to four 6-bit characters.
Transcode from bytes to base64 using the specified alphabet (standard or websafe). Takes groups of three 8-bit inputs and converts them to four 6-bit characters.
(decode-data data codec)
Decode a byte array from a string using the given encoding.
Decode a byte array from a string using the given encoding.
(decode-edn in codec)
Read EDN data from a UTF-8 string encoded with the given codec.
Read EDN data from a UTF-8 string encoded with the given codec.
(decode-string in codec)
Decode a string from the given data string using the given codec, assuming UTF-8 bytes.
Decode a string from the given data string using the given codec, assuming UTF-8 bytes.
(decoder codec)
Return a decoding transcoder for the given string encoding.
Return a decoding transcoder for the given string encoding.
(encode-data bytes codec)
Encode a byte array to a string using the given codec.
Encode a byte array to a string using the given codec.
(encode-edn in codec)
Render the given input as EDN then encode as UTF-8 bytes using the given codec.
Render the given input as EDN then encode as UTF-8 bytes using the given codec.
(encode-string in codec)
Encode a string to UTF-8 bytes using the given codec.
Encode a string to UTF-8 bytes using the given codec.
(encoder codec)
Return an encoding transcoder for the given string encoding.
Return an encoding transcoder for the given string encoding.
(from-char-code c)
Given a numerical unicode code point, returns a javascript UTF-16 string.
Given a numerical unicode code point, returns a javascript UTF-16 string.
(into-bytes xf inputs)
Returns an array constructed from applying the given transducing stack to the input sequence.
Returns an array constructed from applying the given transducing stack to the input sequence.
(into-string xf inputs)
Returns a string constructed from applying the given transducing stack to the input sequence.
Returns a string constructed from applying the given transducing stack to the input sequence.
(to-char-code string)
(to-char-code string index)
Given a javascript UTF-16 string and an index, return a unicode code point.
Given a javascript UTF-16 string and an index, return a unicode code point.
(unicode->utf16)
Transcoder from unicode characters to UTF-16 characters.
Transcoder from unicode characters to UTF-16 characters.
(unicode->utf8)
Transcode from unicode code points to UTF-8 bytes.
Transcode from unicode code points to UTF-8 bytes.
(unicode-sanitise char)
(unicode-sanitise size char)
Sanitise unicode code points by replacing overlong and non-character code points with the unicode replacement character (0xfffd). Optionally takes a UTF-8 codepoint size to check for overlong encodings.
Sanitise unicode code points by replacing overlong and non-character code points with the unicode replacement character (0xfffd). Optionally takes a UTF-8 codepoint size to check for overlong encodings.
(utf16->unicode)
Transcode from javascript utf-16 characters to unicode code points.
Transcode from javascript utf-16 characters to unicode code points.
(utf8->unicode)
Transcode from utf-8 bytes to unicode code points.
Transcode from utf-8 bytes to unicode code points.
(utf8-continuation char)
(utf8-continuation n char)
Returns a UTF-8 continuation byte for the given code point data (2 bit header plus 6 bits of data).
Returns a UTF-8 continuation byte for the given code point data (2 bit header plus 6 bits of data).
(utf8-header size char)
Returns a UTF-8 header byte for a given code point (length prefix plus data bits).
Returns a UTF-8 header byte for a given code point (length prefix plus data bits).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close