Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data InnerWord = InnerWord {
- innerWord :: Text
- innerReplacedWords :: [Text]
- innerReplace :: InnerWord -> RE -> Text -> Bool -> InnerWord
- innerReplaceWithFuncSingle :: InnerWord -> RE -> (() -> Text) -> Bool -> InnerWord
- innerReplaceWithFuncMultiple :: InnerWord -> RE -> (Text -> Text -> Text) -> Bool -> InnerWord
- toText :: InnerWord -> Text
Documentation
Basic type for manipulating strings.
InnerWord | |
|
innerReplace :: InnerWord -> RE -> Text -> Bool -> InnerWord Source #
Match the word
against searchValue
and replace matched strings with replaceValue
.
innerReplaceWithFuncSingle :: InnerWord -> RE -> (() -> Text) -> Bool -> InnerWord Source #
Match the word
against searchValue
and replace matched strings with the string resulting from invoking f
.
innerReplaceWithFuncMultiple :: InnerWord -> RE -> (Text -> Text -> Text) -> Bool -> InnerWord Source #
Match the word
against searchValue
and replace matched strings with the string resulting from invoking f
.
The difference between this and replaceWithFuncSingle
is that the f
here takes two String
arguments.