Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Module

System.Text

module System.Text

Text building and encoding

StringBuilder accumulates text and produces immutable String snapshots. UnicodeScalar and Utf8 provide scalar and strict UTF-8 operations. Encoding, Encoder and Decoder describe the supported conversion contracts, with Encodings providing the implemented encodings.

See strings and UTF-8 and streams. String itself lives in System. Byte limits, malformed-input handling and encoder completion are explicit parts of individual APIs.

Types

11 items
Decoder Converts bounded byte ranges into valid text while owning incomplete input.
Encoder Accepts valid text and drains encoded bytes into bounded caller buffers.
EncoderProgress An immutable result describing one successful drain operation.
EncoderState Describes pending output, readiness for input or final completion.
Encoding A reusable policy for converting valid text and encoded bytes.
EncodingError A typed conversion, encoder or decoder lifecycle failure.
Encodings Built-in strict text encoding policies.
InvalidUtf8Error An error indicating a byte sequence that is not valid UTF-8.
StringBuilder Builds immutable UTF-8 strings within an explicit byte limit. Not thread-safe.
UnicodeScalar Unicode category and ASCII predicates over scalar code points.
Utf8SliceError An error indicating an out-of-range byte slice or an invalid UTF-8 boundary.