Skip to main content

Crate korrektor_utils

Crate korrektor_utils 

Source

Functions§

replace_pairs
Replaces constants represented as a tuple array. Each first element of the tuple replaces each second element with the help of the regex crate.
unwrap_text
Removes all brackets that wrap special text protected from korrektor operations.
wrap_matches
Wraps all regex matches of pcre crate in 〈〉 brackets in order to preserve some text from some operations in korrektor.
wrap_regex
Wrap all matches in the given text with provided pattern that must be a valid regex.