Skip to main content

Module search

Module search 

Source
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§

CaseMode
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.