Text.Regex.Glob.Generic

hxt-regex-xmlschema-9.2.0.3: A regular expression library for W3C XML Schema regular expressions

Copyright | Copyright (C) 2011- Uwe Schmidt
License | MIT
Maintainer | Uwe Schmidt <uwe@fh-wedel.de>
Stability | stable
Portability | portable
Safe Haskell | Safe
Language | Haskell2010

Text.Regex.Glob.Generic

Description

csh glob style pattern matcher

Synopsis

- data GenRegex s
- type Regex = GenRegex String
- type RegexText = GenRegex Text
- type RegexTextLazy = GenRegex Text
- type RegexByteString = GenRegex ByteString
- type RegexByteStringLazy = GenRegex ByteString
- match :: StringLike s => s -> s -> Bool
- matchNoCase :: StringLike s => s -> s -> Bool
- parseRegex :: StringLike s => s -> GenRegex s
- parseRegexNoCase :: StringLike s => s -> GenRegex s

# Documentation

data GenRegex s #

Instances

Eq s => Eq (GenRegex s) # |
Methods (==) :: GenRegex s -> GenRegex s -> Bool # (/=) :: GenRegex s -> GenRegex s -> Bool #
Ord s => Ord (GenRegex s) # |
Methods compare :: GenRegex s -> GenRegex s -> Ordering # (<) :: GenRegex s -> GenRegex s -> Bool # (<=) :: GenRegex s -> GenRegex s -> Bool # (>) :: GenRegex s -> GenRegex s -> Bool # (>=) :: GenRegex s -> GenRegex s -> Bool # max :: GenRegex s -> GenRegex s -> GenRegex s # min :: GenRegex s -> GenRegex s -> GenRegex s #
StringLike s => Show (GenRegex s) # |
Methods showsPrec :: Int -> GenRegex s -> ShowS # show :: GenRegex s -> String # showList :: [GenRegex s] -> ShowS #

type Regex = GenRegex String #

type RegexText = GenRegex Text #

type RegexTextLazy = GenRegex Text #

type RegexByteString = GenRegex ByteString #

type RegexByteStringLazy = GenRegex ByteString #

match :: StringLike s => s -> s -> Bool #

matchNoCase :: StringLike s => s -> s -> Bool #

parseRegex :: StringLike s => s -> GenRegex s #

parse a glob pattern

parseRegexNoCase :: StringLike s => s -> GenRegex s #