Expand description
Logical-line fold regions and discovery. Logical-line fold regions, discovery, and collapsed-state transfer.
Structs§
- Fold
Region - Collapsible range of zero-based logical lines.
- Fold
Region Id - Packed identity for a fold region’s line range.
Functions§
- collapsed_
region_ hiding_ line - Returns the first collapsed region that hides
line. - fold_
region_ at_ line - Returns the index of the first non-empty region starting on
line. - fold_
regions_ for_ document - Discovers multi-line foldable constructs for a document.
- line_
for_ byte - Counts newline bytes before a UTF-8 byte offset.
- line_
start_ byte - Returns the UTF-8 byte offset at which a zero-based logical line starts.
- merge_
fold_ regions_ with_ previous - Transfers collapsed state from matching previous region identifiers.