Skip to main content

Module search

Module search 

Source
Expand description

Literal, line-scoped search.

Line-scoped on purpose: a match never spans a line break, so every result is expressible as (line, grapheme) without a second coordinate system, and that is what a user typing into a search box means anyway. Regex belongs behind this same SearchQuery type later, not beside it.

Structs§

SearchQuery

Functions§

find_in_line
Grapheme index pairs of every non-overlapping match in one line.