pub struct FindOptions {
pub case_sensitive: bool,
pub whole_word: bool,
pub diacritic_sensitive: bool,
pub language: String,
pub use_regex: bool,
pub search_backward: bool,
}Expand description
Options for find / find_all / replace operations.
Both folding toggles default to off = folded, which is what a writer means by
“search”: aurelien finds Aurélien, strasse finds Straße, احمد finds أَحْمَد.
Turn one on to be literal about it.
Fields§
§case_sensitive: bool§whole_word: bool§diacritic_sensitive: boolfalse (the default) folds diacritics, ligatures and Arabic orthography.
language: StringThe BCP-47 tag of the text being searched — per document, not per search.
Only Turkish and Azerbaijani (tr, az) change how text folds: there the dotted
and dotless i are different letters, and merging them turns one word into another.
Every other tag — including an empty or malformed one — folds untailored, so this is
safe to leave alone and safe to feed a user’s raw project setting.
It decides how to fold, never whether to: the toggles above stay global across a search, or the same checkbox would mean different things in different chapters.
use_regex: bool§search_backward: bool