Skip to main content

Module find_replace

Module find_replace 

Source
Expand description

find_replace: literal or regex search, optionally replace, over the raw stored strings of text-bearing block attributes. Matching sees markup: <em>for</em> loops doesn’t match “for loops”.

Structs§

FindReplaceRequest
What a find_replace call searches for, where, and what it puts in place of each match.
FindReplaceResult
What a search found and, for a replace, the pages it changed.
InflectedVariant
A word that starts with a literal find but goes on, and how often it occurs.
TextMatch
An attribute whose text matched, with how many times.

Enums§

AttributeFilter 🔒
Matcher 🔒

Functions§

attribute_filters 🔒
attribute_selected 🔒
context_preview 🔒
find_replace
Searches pages and, with request.replace, replaces every match. Fails without changing anything when request.expected_count differs from the matches found.
for_each_text 🔒
Strings of one attribute value that count as text: the value itself, or nested content strings (table cells).
for_each_text_mut 🔒
for_each_text, for changing the strings in place.