alfred-margaret-2.1.0.0: Fast Aho-Corasick string searching
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Text.BoyerMoore.Replacer

Synopsis

Documentation

replaceSingleLimited Source #

Arguments

:: 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. Performs case-sensitive replacement.