owoify-hs-1.0.0.1: Turn any English text into nonsensical babyspeaks.
Safe HaskellNone
LanguageHaskell2010

Data.Owoify.Internal.Entity.Word

Synopsis

Documentation

data InnerWord Source #

Basic type for manipulating strings.

Constructors

InnerWord 

Instances

Instances details
Eq InnerWord Source # 
Instance details

Defined in Data.Owoify.Internal.Entity.Word

Show InnerWord Source # 
Instance details

Defined in Data.Owoify.Internal.Entity.Word

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.