Skip to main content

Crate neco_editor_search

Crate neco_editor_search 

Source
Expand description

Text search engine for editor buffers.

Provides find and replace operations over UTF-8 text, using neco_textview::LineIndex for line/column resolution.

Structs§

SearchMatch
A single search hit with its byte range and line/column position.
SearchQuery
Search parameters. Plain struct (parameter bag).

Enums§

SearchError
Errors produced by search operations.

Functions§

find_all
Find every occurrence of query in text.
find_next
Find the first occurrence of query at or after from_offset.
find_previous
Find the last occurrence of query whose match ends at or before to_offset.
replace_all
Replace every occurrence of query in text with replacement.
replace_all_ranges
Return every replacement as an original byte range plus expanded text.
replace_next
Replace the first occurrence of query at or after from_offset.