Expand description
Text position primitives: line/column ↔ byte offset conversion, UTF-16 mapping, and selection/caret model.
Structs§
- Line
Index - Precomputed line-start offset table for O(log n) line/column ↔ byte offset conversion.
- Position
- 0-based line and column position in a text document.
- Range
Change - Abstract description of one text range change.
- Selection
- Directional selection with anchor and head (caret position).
- Text
Range - Byte offset range in a UTF-8 string.
start <= endis enforced. - Utf16
Mapping - Bidirectional UTF-8 byte offset ↔ UTF-16 code unit offset mapping.
Enums§
- Text
View Error - Errors returned by text view operations.