codecs.bespokecodecs

← codecs

Contains various WHATWG-defined codecs which require dedicated implementations.

Also includes utf-8-sig which, while not a WHATWG-specified codec per se, is detected, interpreted and handled by WHATWG BOM tag logic, in preference above any label, before the codec gets to see it. WHATWG BOM tag logic is not implemented here (it is not always sensible in a non-browser context); hence, they remain separate codecs.

Classes

_class Gb18030IncrementalDecoder(IncrementalDecoder)

IncrementalDecoder implementation for GB18030 (Mainland Chinese Unicode), extension of GB2312 (Simplified Chinese)

_Gb18030IncrementalDecoder.decode(data_in,final)

Implements IncrementalDecoder.decode

_class Gb18030IncrementalEncoder(IncrementalEncoder)

IncrementalEncoder implementation for GB18030 (Mainland Chinese Unicode format)

_Gb18030IncrementalEncoder.encode(string,final)

Implements IncrementalEncoder.encode

_class GbkIncrementalEncoder(Gb18030IncrementalEncoder)

IncrementalEncoder implementation for GBK (Chinese), extension of GB2312 (Simplified Chinese)

_class Iso2022JpIncrementalDecoder(IncrementalDecoder)

IncrementalDecoder implementation for ISO-2022-JP (7-bit stateful Japanese JIS)

_Iso2022JpIncrementalDecoder.decode(data_in,final)

Implements IncrementalDecoder.decode

_Iso2022JpIncrementalDecoder.getstate()

Implements IncrementalDecoder.getstate

_Iso2022JpIncrementalDecoder.reset()

Implements IncrementalDecoder.reset

_Iso2022JpIncrementalDecoder.setstate(state)

Implements IncrementalDecoder.setstate

_property Iso2022JpIncrementalDecoder.decodes_dbcs

_property Iso2022JpIncrementalDecoder.decodes_sbcs

_class Iso2022JpIncrementalEncoder(IncrementalEncoder)

IncrementalEncoder implementation for ISO-2022-JP (7-bit stateful Japanese JIS)

_Iso2022JpIncrementalEncoder.encode(string,final)

Implements IncrementalEncoder.encode

_Iso2022JpIncrementalEncoder.ensure_state_number(state,out)

_Iso2022JpIncrementalEncoder.getstate()

Implements IncrementalEncoder.getstate

_Iso2022JpIncrementalEncoder.reset()

Implements IncrementalEncoder.reset

_Iso2022JpIncrementalEncoder.setstate(state)

Implements IncrementalEncoder.setstate

_property Iso2022JpIncrementalEncoder.encodes_dbcs

_class Utf16BeIncrementalDecoder(Utf16IncrementalDecoder)

IncrementalDecoder implementation for UTF-16 Big Endian without Byte Order Mark

_class Utf16BeIncrementalEncoder(Utf16IncrementalEncoder)

IncrementalEncoder implementation for UTF-16 Big Endian without Byte Order Mark

_class Utf16IncrementalDecoder(IncrementalDecoder)

IncrementalDecoder implementation for UTF-16

_Utf16IncrementalDecoder.decode(data_in,final)

Implements IncrementalDecoder.decode

_Utf16IncrementalDecoder.getstate()

Implements IncrementalDecoder.getstate

_Utf16IncrementalDecoder.reset()

Implements IncrementalDecoder.reset

_Utf16IncrementalDecoder.setstate(state)

Implements IncrementalDecoder.setstate

_class Utf16IncrementalEncoder(IncrementalEncoder)

IncrementalEncoder implementation for UTF-16 with Byte Order Mark

_Utf16IncrementalEncoder.encode(string,final)

Implements IncrementalEncoder.encode

_Utf16IncrementalEncoder.getstate()

Implements IncrementalEncoder.getstate

_Utf16IncrementalEncoder.push_word(word,out)

_Utf16IncrementalEncoder.reset()

Implements IncrementalEncoder.reset

_Utf16IncrementalEncoder.setstate(state)

Implements IncrementalEncoder.setstate

_class Utf16LeIncrementalDecoder(Utf16IncrementalDecoder)

IncrementalDecoder implementation for UTF-16 Little Endian without Byte Order Mark

_class Utf16LeIncrementalEncoder(Utf16IncrementalEncoder)

IncrementalEncoder implementation for UTF-16 Little Endian without Byte Order Mark

_class Utf8IncrementalDecoder(IncrementalDecoder)

IncrementalDecoder implementation for UTF-8

_Utf8IncrementalDecoder._error_handler(error)

_Utf8IncrementalDecoder.decode(data_in,final)

Implements IncrementalDecoder.decode

_Utf8IncrementalDecoder.getstate()

Implements IncrementalDecoder.getstate

_Utf8IncrementalDecoder.reset()

Implements IncrementalDecoder.reset

_Utf8IncrementalDecoder.setstate(state)

Implements IncrementalDecoder.setstate

_class Utf8IncrementalEncoder(IncrementalEncoder)

IncrementalEncoder implementation for UTF-8

_Utf8IncrementalEncoder.encode(string,final)

Implements IncrementalEncoder.encode

_Utf8IncrementalEncoder.getstate()

Implements IncrementalEncoder.getstate

_Utf8IncrementalEncoder.reset()

Implements IncrementalEncoder.reset

_Utf8IncrementalEncoder.setstate(state)

Implements IncrementalEncoder.setstate

_class Utf8SigIncrementalDecoder(Utf8IncrementalDecoder)

IncrementalDecoder implementation for UTF-8 with Byte Order Mark

_class Utf8SigIncrementalEncoder(Utf8IncrementalEncoder)

IncrementalEncoder implementation for UTF-8 with Byte Order Mark

Other Members

let more_dbdata = _MoreDBData