Expand description
Canonical, platform-neutral text editing values and edit transactions.
All offsets in this module are validated UTF-8 byte offsets. Platform adapters must use the named UTF-16 conversion functions rather than mixing offset units at their boundaries.
Structs§
- Text
Edit Pipeline - Text
Edit Result - Text
Editing Value - The sole value required to synchronize an editable text session.
- Text
Offset Error - Text
Position - A validated UTF-8 byte position in a particular text value.
- Text
Range - A validated half-open text range.
- Text
Selection - A directional selection.
baseis the fixed anchor andextentis the caret.
Enums§
- Text
Affinity - Direction used to resolve an ambiguous position at a soft line break.
- Text
Edit Boundary - Text
Edit Command - A complete proposed edit. Every mutation source is normalized to this model.
- Text
Edit Direction - Text
Edit Phase - Text
Edit Source - Text
Value Phase - Lifecycle meaning of a complete value supplied by a platform adapter.
Traits§
- Complete
Text Input Formatter - Application formatter extension point. Formatters receive complete values, including selection and composing state, and must return another valid value.