Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- hsMatches :: RureFlags -> ByteString -> ByteString -> Either String [RureMatch]
- hsIsMatch :: RureFlags -> ByteString -> ByteString -> Either String Bool
- hsSetIsMatch :: RureFlags -> [ByteString] -> ByteString -> Either String Bool
- hsFind :: RureFlags -> ByteString -> ByteString -> Either String (Maybe RureMatch)
- hsSetMatches :: RureFlags -> [ByteString] -> ByteString -> Either String [Bool]
- compile :: RureFlags -> ByteString -> IO (Either String RurePtr)
- compileSet :: RureFlags -> [ByteString] -> IO (Either String RureSetPtr)
- isMatch :: RurePtr -> ByteString -> CSize -> IO Bool
- setIsMatch :: RureSetPtr -> ByteString -> CSize -> IO Bool
- setMatches :: RureSetPtr -> ByteString -> CSize -> IO [Bool]
- find :: RurePtr -> ByteString -> CSize -> IO (Maybe RureMatch)
- matches :: RureIterPtr -> ByteString -> IO [RureMatch]
- mkIter :: RurePtr -> IO RureIterPtr
- data RureMatch = RureMatch {}
- type RurePtr = ForeignPtr Rure
- type RureIterPtr = ForeignPtr RureIter
- type RureSetPtr = ForeignPtr RureSet
- data RureFlags
- rureFlagCaseI :: RureFlags
- rureFlagMulti :: RureFlags
- rureFlagDotNL :: RureFlags
- rureFlagSwapGreed :: RureFlags
- rureFlagSpace :: RureFlags
- rureFlagUnicode :: RureFlags
- rureDefaultFlags :: RureFlags
Higher-level functions
:: RureFlags | |
-> ByteString | Regex |
-> ByteString | Haystack (unicode) |
-> Either String Bool |
:: RureFlags | |
-> [ByteString] | Needles (regex) |
-> ByteString | Haystack |
-> Either String Bool |
hsSetMatches :: RureFlags -> [ByteString] -> ByteString -> Either String [Bool] Source #
Functions in IO
.
compileSet :: RureFlags -> [ByteString] -> IO (Either String RureSetPtr) Source #
:: RureSetPtr | |
-> ByteString | Unicode |
-> CSize | Start |
-> IO Bool |
setMatches :: RureSetPtr -> ByteString -> CSize -> IO [Bool] Source #
matches :: RureIterPtr -> ByteString -> IO [RureMatch] Source #
mkIter :: RurePtr -> IO RureIterPtr Source #
Types
Pointer types
type RureIterPtr = ForeignPtr RureIter Source #
type RureSetPtr = ForeignPtr RureSet Source #