regex-pderiv-0.0.8.1: Replaces/Enhances Text.Regex
Text.Regex.PDeriv.Common
Description
this module contains the defs of common data types and type classes
Synopsis
type Range = (Int, Int)Source
(sub)words represent by range
type Letter = (Char, Int)Source
a character and its index (position)
class IsEmpty a whereSource
Methods
isEmpty :: a -> BoolSource
Instances
function isEmpty checks whether regular expressions are empty
isEmpty
my_hash :: Int -> Char -> IntSource
my_lookup :: Int -> Char -> IntMap [Int] -> [Int]Source
data GFlag Source
The greediness flag
Constructors
greedy
not greedy
class IsGreedy a whereSource
isGreedy :: a -> BoolSource
Function isGreedy checks whether a pattern is greedy
isGreedy
nub2 :: [(Int, a)] -> [(Int, a)]Source
remove duplications in a list of pairs, using the first components as key.
nub3 :: [(Int, a, Int)] -> [(Int, a, Int)]Source