Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Text.BoyerMoore.Replacer
Synopsis
- replaceSingleLimited :: CaseSensitivity -> Automaton -> Text -> Text -> CodeUnitIndex -> Maybe Text
Documentation
Arguments
:: CaseSensitivity | In case of |
-> 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.