Expand description
Unified table-driven single-byte character mapping and encoding abstractions.
Structs§
- Line
Ending Format - Full specification of line ending style and termination mode.
- Single
Byte Mapping - A 256-entry bidirectional mapping between single bytes and Unicode characters.
Enums§
- Char
Encoding - Structured single-byte character encoding settings.
- Line
Ending Kind - Line ending delimiter pattern.
- Line
Ending Option - 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.
- Termination
Mode - 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
SingleByteMappingfor the specifiedCharEncoding. - transcode
- Transcodes bytes from one character encoding to another with optional line ending conversion.