Skip to main content

Crate neco_textview

Crate neco_textview 

Source
Expand description

Text position primitives: line/column ↔ byte offset conversion, UTF-16 mapping, and selection/caret model.

Structs§

LineIndex
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.
RangeChange
Abstract description of one text range change.
Selection
Directional selection with anchor and head (caret position).
TextRange
Byte offset range in a UTF-8 string. start <= end is enforced.
Utf16Mapping
Bidirectional UTF-8 byte offset ↔ UTF-16 code unit offset mapping.

Enums§

TextViewError
Errors returned by text view operations.