Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- newtype GroupReplacer b = GroupReplacer (MatchArray -> ReplaceAcc b -> ReplaceAcc b)
- data ReplaceAcc b = ReplaceAcc {}
- data Pattern a = Pattern a
- data Body b = Body b
- data Replacement r = Replacement r
- type PosLen = (MatchOffset, MatchLength)
- newtype Utf8_ a = Utf8_ a
- class Enc enc where
- class Enc' f enc where
Documentation
newtype GroupReplacer b Source
see Text.Regex.Do.Pcre.ReplaceOpen defaultReplacer
for example implementation
GroupReplacer (MatchArray -> ReplaceAcc b -> ReplaceAcc b) |
Enc enc => Enc' GroupReplacer enc Source | |
ReplaceOpen [] GroupReplacer Source | |
ReplaceOpen Maybe GroupReplacer Source | |
Replace All Utf8_ ByteString GroupReplacer Source |
|
Replace Once Utf8_ ByteString GroupReplacer Source |
data ReplaceAcc b Source
data Replacement r Source
type PosLen = (MatchOffset, MatchLength) Source
Offset, Length
Utf8_ a | values |
Functor Utf8_ Source | |
Applicative Utf8_ Source | does not do any codec. Plain wrap / unwrap newtype |
Enc Utf8_ Source | |
MatchHint PosLen_ Utf8_ String Source | |
MatchHint PosLen_ Utf8_ ByteString Source | |
MatchHint PosLen' Utf8_ String Source |
[(13,2)] |
MatchHint PosLen' Utf8_ ByteString Source | |
MatchHint All Utf8_ String Source | |
MatchHint All Utf8_ ByteString Source | |
MatchHint Once Utf8_ String Source |
["all"] |
MatchHint Once Utf8_ ByteString Source | |
MatchHint Test Utf8_ String Source | |
MatchHint Test Utf8_ ByteString Source |
True |
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 | |
Rx_ a b => Match Utf8_ a b Bool Source | test. Note that a and b may be different types e.g.
True |
Rx_ a b => Match Utf8_ a b [[PosLen]] Source | match all |
Rx_ a b => Match Utf8_ a b [PosLen] Source | match once
[(13,2)] |
Rx_ a b => Match Utf8_ a b [[b]] Source | match all
[["well"],["well"]] |
Rx_ a b => Match Utf8_ a b [b] Source | match once
|
Eq a => Eq (Utf8_ a) Source | |
Ord a => Ord (Utf8_ a) Source | |
Regex a => Regex (Utf8_ a) Source | |
Extract' (Utf8_ ByteString) Source |
does not do any codec. Plain wrap / unwrap newtype