| hxt-8.5.2: A collection of tools for processing XML with Haskell. | Source code | Contents | Index

Text.XML.HXT.RelaxNG.XmlSchema.Regex

Portability | portable
Stability | experimental
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)

Description
W3C XML Schema Regular Expression Matcher Grammar can be found under http://www.w3.org/TR/xmlschema11-2/#regexs
Synopsis

data Regex
chars :: (Char -> Bool) -> [Char]
charRngs :: [Char] -> [(Char, Char)]
mkZero :: String -> Regex
mkUnit :: Regex
mkSym :: (Char -> Bool) -> Regex
mkSym1 :: Char -> Regex
mkSymRng :: Char -> Char -> Regex
mkDot :: Regex
mkStar :: Regex -> Regex
mkAlt :: Regex -> Regex -> Regex
mkSeq :: Regex -> Regex -> Regex
mkRep :: Int -> Regex -> Regex
mkRng :: Int -> Int -> Regex -> Regex
mkOpt :: Regex -> Regex
mkDif :: Regex -> Regex -> Regex
mkCompl :: Regex -> Regex
isZero :: Regex -> Bool
nullable :: Regex -> Bool
delta :: Regex -> Char -> Regex
matchWithRE :: Regex -> String -> Maybe String
(<&&>) :: (Char -> Bool) -> (Char -> Bool) -> Char -> Bool
(<||>) :: (Char -> Bool) -> (Char -> Bool) -> Char -> Bool

Documentation

data Regex | Source

Instances

Show Regex

chars :: (Char -> Bool) -> [Char] | Source

enumerate all chars specified by a predicate this function is expensive, it should only be used for testing

charRngs :: [Char] -> [(Char, Char)] | Source

mkZero :: String -> Regex | Source

mkUnit :: Regex | Source

mkSym :: (Char -> Bool) -> Regex | Source

mkSym1 :: Char -> Regex | Source

mkSymRng :: Char -> Char -> Regex | Source

mkDot :: Regex | Source

mkStar :: Regex -> Regex | Source

mkAlt :: Regex -> Regex -> Regex | Source

mkSeq :: Regex -> Regex -> Regex | Source

mkRep :: Int -> Regex -> Regex | Source

mkRng :: Int -> Int -> Regex -> Regex | Source

mkOpt :: Regex -> Regex | Source

mkDif :: Regex -> Regex -> Regex | Source

mkCompl :: Regex -> Regex | Source

isZero :: Regex -> Bool | Source

nullable :: Regex -> Bool | Source

delta :: Regex -> Char -> Regex | Source

matchWithRE :: Regex -> String -> Maybe String | Source

(<&&>) :: (Char -> Bool) -> (Char -> Bool) -> Char -> Bool | Source

(<||>) :: (Char -> Bool) -> (Char -> Bool) -> Char -> Bool | Source

Produced by Haddock version 2.4.2