Module ascii

Module ascii 

Source
Expand description

ASCII text formatter and token serialization for EITE.

Structs§

AsciiSafeSubsetFormatSettings

Functions§

dca_from_ascii
(Original JS called dcFromFormat(‘ascii’, singleByteArray).
dca_from_ascii_safe_subset
Import from ASCII safe subset. Collapses CRLF sequences to two bytes, then delegates to dca_from_ascii.
dca_to_ascii
ASCII export: attempt to map each Dc to a single ASCII byte. If the Dc encodes to a multi-byte UTF-8 or a non-ASCII scalar, it is skipped (original emitted a warning). This mirrors the permissive behavior, skipping non-mappable Dcs.
dca_to_ascii_safe_subset
Export to ASCII safe subset.
is_ascii_safe_subset_char
Predicate: ASCII safe subset char (printable or newline).