Module

Data.Owoify.Internal.Entity.Word

Package
purescript-owoify
Repository
deadshot465/purescript-owoify

#replace Source

replace :: Word -> Regex -> String -> Boolean -> Word

replace word searchValue replaceValue replaceReplacedWords will match the word against searchValue and replace matched strings with replaceValue.

#replaceWithFuncSingle Source

replaceWithFuncSingle :: Word -> Regex -> (Unit -> String) -> Boolean -> Word

replaceWithFuncSingle word searchValue f replaceReplacedWords will match the word against searchValue and replace matched strings with the string resulting from invoking f.

#replaceWithFuncMultiple Source

replaceWithFuncMultiple :: Word -> Regex -> (String -> String -> String) -> Boolean -> Word

replaceWithFuncMultiple word searchValue f replaceReplacedWords will 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.

#Word Source

newtype Word

Basic type for manipulating strings.

Constructors

Instances