Liking cljdoc? Tell your friends :D

web.TextDecoder

The TextDecoder interface represents a decoder for a specific is, a specific character encoding—such as utf-8, iso-8859-2, cp1261, gbk, etc. A decoder takes a stream of bytes as input emits a stream of code points. For a more scalable, non-native see StringView – a C-like representation of strings based on arrays.

The TextDecoder interface represents a decoder for a specific
is, a specific character encoding—such as utf-8, iso-8859-2,
cp1261, gbk, etc. A decoder takes a stream of bytes as input
emits a stream of code points. For a more scalable, non-native
see StringView – a C-like representation of strings based on
arrays.
raw docstring

decodecljs

(decode this & args)

Method.

[Experimental]

The TextDecoder.prototype.decode() method returns a web.dom.DOMString the text, given in parameters, decoded with the specific method that TextDecoder object.

b1 = decoder.decode(buffer, options); b2 = decoder.decode(buffer); b3 = decoder.decode();

See also: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode

Method.

[Experimental]

The TextDecoder.prototype.decode() method returns a `web.dom.DOMString`
the text, given in parameters, decoded with the specific method
that TextDecoder object.

`b1 = decoder.decode(buffer, options);
b2 = decoder.decode(buffer);
b3 = decoder.decode();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode`
sourceraw docstring

encodingcljs

(encoding this)

Property.

[Read Only] [Experimental]

The TextDecoder.prototype.encoding read-only property returns web.dom.DOMString containing the name of the decoding algorithm by the specific decoder.

var b = decoder.decoding;

See also: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding

Property.

[Read Only]
[Experimental]

The TextDecoder.prototype.encoding read-only property returns
`web.dom.DOMString` containing the name of the decoding algorithm
by the specific decoder.

`var b = decoder.decoding;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding`
sourceraw docstring

fatalcljs

(fatal this)

Property.

Is a Boolean indicating whether the error mode is fatal.

Property.

Is a Boolean indicating whether the error mode is fatal.
sourceraw docstring

ignore-bomcljs

(ignore-bom this)

Property.

Is a Boolean indicating whether the byte order marker is ignored.

Property.

Is a Boolean indicating whether the byte order marker is ignored.
sourceraw docstring

set-fatal!cljs

(set-fatal! this val)

Property.

Is a Boolean indicating whether the error mode is fatal.

Property.

Is a Boolean indicating whether the error mode is fatal.
sourceraw docstring

set-ignore-bom!cljs

(set-ignore-bom! this val)

Property.

Is a Boolean indicating whether the byte order marker is ignored.

Property.

Is a Boolean indicating whether the byte order marker is ignored.
sourceraw docstring

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

× close