Expand description
Finding text in a buffer. Pure functions over a rope, in char offsets.
Literal substring matching, not regex: ARCHITECTURE.md §14 puts find/replace in the MVP and regex nowhere, and a literal search is what people reach for when they are looking at a symbol name. Regex belongs with the ripgrep-backed workspace search in Phase 05, where the engine already exists.
Enums§
- Case
Mode - Whether a search distinguishes case.
Functions§
- find_
all - Every occurrence of
needle, left to right, non-overlapping. - next_
from - The first match at or after
from, wrapping to the start. - prev_
from - The last match starting strictly before
from, wrapping to the end.
Type Aliases§
- Match
- A match, as a char range.