alfred-margaret-1.1.1.0: Fast Aho-Corasick string searching

Safe HaskellNone
LanguageHaskell2010

Data.Text.BoyerMoore.Replacer

Synopsis

Documentation

replaceSingleLimited Source #

Arguments

:: CaseSensitivity

In case of IgnoreCase, the automaton must have been created with a lower-case needle

-> Automaton

Matches the needles

-> Text

Replacement string

-> Text

Haystack

-> CodeUnitIndex

Maximum number of code units in the returned text

-> Maybe Text 

Replace all occurrences matched by the Boyer-Moore automaton with the given replacement text in some haystack.