regex-dfa-0.91: Replaces/Enhances Text.RegexContentsIndex
Text.Regex.DFA.Common
Description
Common supports the Lazy Parsec backend. It defines all the data types except Pattern and exports everything but the contructors of Pattern.
Synopsis
data CompOption = CompOption {
caseSensitive :: Bool
multiline :: Bool
}
data ExecOption = ExecOption
type MatchedStrings = IntMap (String, (Int, Int))
type BoolMultiline = Bool
type BoolCaseSensitive = Bool
type StringInput = String
type StringBeforeMatch = String
type StringOfMatch = String
type StringAfterMatch = String
type StringSubgroups = String
type StringSubPattern = String
type AboutMatch = (StringBeforeMatch, StringOfMatch, StringAfterMatch, [StringSubgroups])
Documentation
data CompOption
RegexOption control whether the pattern is multiline or case-sensitive like Text.Regex and whether to capture the subgroups (1, 2, etc).
Constructors
CompOption
caseSensitive :: Bool
multiline :: Bool
show/hide Instances
data ExecOption
Constructors
ExecOption
show/hide Instances
type MatchedStrings = IntMap (String, (Int, Int))

MatchedStrings is an IntMap where the keys are PatternIndex numbers and the values are completed substring captures.

This has now been augmented to also remember the offset and length of the matched string.

type BoolMultiline = Bool
type BoolCaseSensitive = Bool
type StringInput = String
type StringBeforeMatch = String
type StringOfMatch = String
type StringAfterMatch = String
type StringSubgroups = String
type StringSubPattern = String
type AboutMatch = (StringBeforeMatch, StringOfMatch, StringAfterMatch, [StringSubgroups])
Produced by Haddock version 0.8