| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Regex.Do.Pcre.Utf8.Replace
Description
see also Text.Regex.Do.Pcre.Ascii.Replace
Pattern & Body are wrapped in Utf8_ encoding tag.
This tag adds clarity, prevents calling Ascii functions by mistake.
toByteString' converts String to Utf8_ ByteString
Documentation
class Replace pat repl body out where Source
see Text.Regex.Do.Pcre.Ascii.Replace for implemented types
to catch regex construction errors, precompile Regex with makeRegexM or makeRegexOptM
in full typed instance every b is wrapped in Utf8_ newtype
GroupReplacer is implemented only for ByteString
Instances
| (Regex b, Hint all, Replace' all Utf8_ b repl, Functor all, Enc' repl Utf8_) => Replace b (all (repl b)) b b Source | hint repl
"А - Я : 5:0" |
| (Regex b, Replace' All Utf8_ b repl, Enc' repl Utf8_) => Replace b (repl b) (All b) b Source | hint
|
| (Regex b, Replace' Once Utf8_ b repl, Enc' repl Utf8_) => Replace b (repl b) (Once b) b Source | hint
|
| (Regex b, Hint all, Replace' all Utf8_ b repl, Functor all, Enc' repl Utf8_) => Replace (all b) (repl b) b b Source | hint
|
| Replace' all enc b repl => Replace (all (Pattern (enc b))) (repl (enc b)) (Body (enc b)) b Source | full typed arg
|
class Replace' all enc a repl Source
internal class & instances
use replace instead
Minimal complete definition
replace'
Instances
| Replace' All Utf8_ String Replacement Source | |
| Replace' All Utf8_ ByteString Replacement Source | |
| Replace' All Utf8_ ByteString GroupReplacer Source |
|
| Replace' Once Utf8_ String Replacement Source | |
| Replace' Once Utf8_ ByteString Replacement Source | |
| Replace' Once Utf8_ ByteString GroupReplacer Source |