This is an early experiment! Both the code and the Basic Text format are actively evolving!
basic-text
defines several utilities for working with a subset of Unicode
called [Basic Text]:
[TextString
] and [TextStr
] are similar to [String
] and [str
] using
Basic Text. Basic Text excludes things like unprintable control characters,
escape sequences, and non-canonical sequences, but preserves any practical
Unicode textual content.
[TextReader
] and [TextWriter
] are input and output streams which use the
Basic Text format, and which ensure a consistent line-ending convention.
On input, non-text content is lossily converted, and on output, non-text
content is diagnosed as errors.
[TextDuplexer
] is a [Duplex
] for reading and writing on an interactive
stream using Basic Text.