scoop:scoop.charset:0.1.0
scoop.charset
API
-
class
Charset
A supported character encoding identified by its canonical name. Equality and hashing use that name. Whole-value conversions are convenient for bounded input; [CharsetTranscoder] preserves conversion state across buffers.
-
enum
CharsetBomPolicy
How decoding treats an initial byte-order mark.
-
class
CharsetDecodeOptions
BOM handling and fallback byte order for decoding. Explicit-endian encodings retain their own byte-order contract.
-
class
CharsetEncodeOptions
BOM emission and byte-order selection for encoding Unicode text.
-
enum
CharsetErrorAction
Whether malformed input or an unrepresentable output character aborts conversion or is replaced.
-
class
CharsetException
A conversion failure carrying the operation, source and destination encodings, failure kind, and available byte-offset/backend details.
-
enum
CharsetFailureKind
The text, option, or backend category of a failed conversion.
-
enum
CharsetState
The condition required to continue an incremental conversion.
-
struct
CharsetStep
Progress from one incremental conversion call.
-
class
CharsetTranscodeOptions
Independent source-decoding and destination-encoding policies for a conversion. Malformed source bytes and unmappable output characters have separate error actions.
-
class
CharsetTranscoder
A stateful native converter between two encodings. Close it after use, including after a conversion failure.
-
class
UnsupportedCharsetException
A requested name or alias is not supported by the conversion backend.
-
function
graphemeBoundaries
Returns extended-grapheme boundaries as scalar indices, using the fixed terminal Unicode data.
-
function
graphemes
Splits text into independent extended-grapheme strings.
-
function
isUnicodeAlphanumeric
Tests Unicode Alphabetic or Decimal_Number without using the process locale.
-
function
normalizeNfc
Returns Unicode text in canonical composition form NFC.
-
function
unicodeCasefold
Applies locale-independent Unicode full case folding for caseless matching.
-
function
unicodeLowercase
Applies root-locale lowercase with full string context and multi-scalar mappings.
-
function
unicodeScalarWidth
Returns terminal scalar width, or -1 for a control including NUL. Ambiguous width is explicit.
-
function
unicodeTerminalDataVersion
Unicode data version shared by grapheme/word segmentation and terminal widths, independent of the host OS.
-
function
unicodeTextWidth
Returns contextual terminal width of complete text; controls including NUL return -1, empty text returns 0.
-
function
unicodeUppercase
Applies root-locale uppercase with full string context and multi-scalar mappings.
-
function
wordBoundaries
Returns locale-independent dictionary word boundaries as scalar indices, including whitespace and punctuation segments.