API reference

python:irx:irx.analysis.text

module text

irx.analysis.text

Source: packages/irx/src/irx/analysis/text.py:1

Semantic contracts for checked Unicode text operations.

len and ord take one positional text value. int(text, base=10) accepts ASCII digits/letters with an optional sign and surrounding whitespace, returning i64 without prefixes, underscores, Unicode digits, or partial parse. split(sep=none, maxsplit=-1) and strip(chars=none) use Unicode whitespace by default. Explicit separators preserve empty fields; chars is a code-point set. Indexing and half-open slicing use nonnegative code-point positions, clipped slice bounds, and step 1. Owned results never borrow source storage.

Search documentation

Type to search.