Liking cljdoc? Tell your friends :D

montoux.codec.core


base16cljs

source

base16->bytescljs

(base16->bytes)

Transcode base16 characters to bytes.

Transcode base16 characters to bytes.
sourceraw docstring

base64cljs

source

base64->bytescljs

(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.
sourceraw docstring

base64-decode-byteclj/smacro

(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.
sourceraw docstring

base64-encode-byteclj/smacro

(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.
sourceraw docstring

base64urlcljs

source

bytes->base16cljs

(bytes->base16)

Trancode bytes to base16 characters.

Trancode bytes to base16 characters.
sourceraw docstring

bytes->base64cljs

(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.
sourceraw docstring

decode-datacljs

(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.
sourceraw docstring

decode-edncljs

(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.
sourceraw docstring

decode-stringcljs

(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.
sourceraw docstring

decodercljs

(decoder codec)

Return a decoding transcoder for the given string encoding.

Return a decoding transcoder for the given string encoding.
sourceraw docstring

encode-datacljs

(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.
sourceraw docstring

encode-edncljs

(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.
sourceraw docstring

encode-stringcljs

(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.
sourceraw docstring

encodercljs

(encoder codec)

Return an encoding transcoder for the given string encoding.

Return an encoding transcoder for the given string encoding.
sourceraw docstring

from-char-codecljs

(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.
sourceraw docstring

into-bytescljs

(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.
sourceraw docstring

into-stringcljs

(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.
sourceraw docstring

to-char-codecljs

(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.
sourceraw docstring

unicode->utf16cljs

(unicode->utf16)

Transcoder from unicode characters to UTF-16 characters.

Transcoder from unicode characters to UTF-16 characters.
sourceraw docstring

unicode->utf8cljs

(unicode->utf8)

Transcode from unicode code points to UTF-8 bytes.

Transcode from unicode code points to UTF-8 bytes.
sourceraw docstring

unicode-sanitisecljs

(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.
sourceraw docstring

utf16->unicodecljs

(utf16->unicode)

Transcode from javascript utf-16 characters to unicode code points.

Transcode from javascript utf-16 characters to unicode code points.
sourceraw docstring

utf8->unicodecljs

(utf8->unicode)

Transcode from utf-8 bytes to unicode code points.

Transcode from utf-8 bytes to unicode code points.
sourceraw docstring

utf8-continuationclj/smacro

(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).
sourceraw docstring

utf8-headerclj/smacro

(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).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close