Module mapping

Module mapping 

Source
Expand description

Unified table-driven single-byte character mapping and encoding abstractions.

Structs§

LineEndingFormat
Full specification of line ending style and termination mode.
SingleByteMapping
A 256-entry bidirectional mapping between single bytes and Unicode characters.

Enums§

CharEncoding
Structured single-byte character encoding settings.
LineEndingKind
Line ending delimiter pattern.
LineEndingOption
Option controlling line ending conversion during encoding, decoding, and transcoding.
LowArea
Mode for handling low character codes (0x00..=0x1F) in single-byte encodings.
NeoRegion
Regional character layout for Neo encodings.
TerminationMode
Mode defining whether newlines terminate every line or only separate lines.

Functions§

asc
Returns the byte value for the first character of a string in the specified encoding.
chr
Returns the string representation of a character code in the specified encoding.
chr_char
Returns the character corresponding to a byte in the specified encoding.
decode
Decodes a byte slice into a Unicode string using the specified character encoding.
decode_with_options
Decodes a byte slice into a Unicode string with optional line ending conversion.
encode
Encodes a Unicode string using the specified character encoding.
encode_with_options
Encodes a Unicode string with optional line ending conversion.
mapping
Returns the static SingleByteMapping for the specified CharEncoding.
transcode
Transcodes bytes from one character encoding to another with optional line ending conversion.