charset library Null safety

Classes

Charset
Cp437Codec
Cp437Decoder
Cp437Encoder
EucJPCodec
EucJPDecoder
EucJPEncoder
EucKRCodec
EucKRDecoder
EucKREncoder
GbkCodec
A GbkCodec encodes strings to GBK code units (bytes) and decodes GBK code units to strings.
GbkDecoder
This class converts GBK code units (lists of unsigned 8-bit integers) to a string.
GbkEncoder
This class converts strings to their GBK code units (a list of unsigned 8-bit integers).
IterableUtf32Decoder
Return type of decodeUtf32AsIterable and variants. The Iterable type provides an iterator on demand and the iterator will only translate bytes as requested by the user of the iterator. (Note: results are not cached.)
ShiftJISCodec
ShiftJISDecoder
ShiftJISEncoder
Utf16beBytesToCodeUnitsDecoder
Convert UTF-16BE encoded bytes to utf16 code units by grouping 1-2 bytes to produce the code unit (0-(2^16)-1).
Utf16BytesToCodeUnitsDecoder
Convert UTF-16 encoded bytes to UTF-16 code units by grouping 1-2 bytes to produce the code unit (0-(2^16)-1). Relies on BOM to determine endian-ness, and defaults to BE.
Utf16Codec
Utf16Decoder
Utf16Encoder
Utf16leBytesToCodeUnitsDecoder
Convert UTF-16LE encoded bytes to utf16 code units by grouping 1-2 bytes to produce the code unit (0-(2^16)-1).
Utf32beBytesDecoder
Convert UTF-32BE encoded bytes to codepoints by grouping 4 bytes to produce the unicode codepoint.
Utf32BytesDecoder
Abstract parent class converts encoded bytes to codepoints.
Utf32Codec
Utf32Decoder
Utf32Encoder
Utf32leBytesDecoder
Convert UTF-32BE encoded bytes to codepoints by grouping 4 bytes to produce the unicode codepoint.

Constants

cp437 → const Cp437Codec
Cp437Codec(true)
eucJp → const EucJPCodec
const EucJPCodec()
eucKr → const EucKRCodec
EucKRCodec(true)
gbk → const GbkCodec
An instance of the default implementation of the GbkCodec. [...]
replacementCharacterGBK → const int
0xA7F6
replacementCharacterUnicode → const int
The GBK Replacement character U+E7B3 (). GBK 0xA7F6
0xE7B3
shiftJis → const ShiftJISCodec
const ShiftJISCodec()
unicodeBomCharacterRune → const int
The Unicode Byte Order Marker (BOM) character U+FEFF.
0xFEFF
utf16 → const Utf16Codec
const Utf16Codec()
utf32 → const Utf32Codec
const Utf32Codec()

Functions

hasUtf16BeBom(List<int> utf16EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a big-endian byte-order marker (BOM).
hasUtf16Bom(List<int> utf32EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a byte-order marker (BOM).
hasUtf16LeBom(List<int> utf16EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a little-endian byte-order marker (BOM).
hasUtf32beBom(List<int> utf32EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a big-endian byte-order marker (BOM).
hasUtf32Bom(List<int> utf32EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a byte-order marker (BOM).
hasUtf32leBom(List<int> utf32EncodedBytes, [int offset = 0, int? length]) bool
Identifies whether a List of bytes starts (based on offset) with a little-endian byte-order marker (BOM).

Typedefs

Utf32BytesDecoderProvider = Utf32BytesDecoder Function()