Safe Haskell | None |
---|---|
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]
- matches' :: RurePtr -> ByteString -> IO [RureMatch]
- mkIter :: RurePtr -> IO RureIterPtr
- findCaptures :: RurePtr -> ByteString -> CSize -> CSize -> IO (Maybe RureMatch)
- captures :: RurePtr -> ByteString -> CSize -> IO [RureMatch]
- 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 [RureMatch] |
:: RureFlags | |
-> ByteString | Regex |
-> ByteString | Haystack (unicode) |
-> Either String Bool |
:: RureFlags | |
-> [ByteString] | Needles (regex) |
-> ByteString | Haystack |
-> Either String Bool |
:: RureFlags | |
-> ByteString | Regex |
-> ByteString | Haystack |
-> Either String (Maybe RureMatch) |
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 #
Deprecated: Use matches', which is not stateful
mkIter :: RurePtr -> IO RureIterPtr Source #
Deprecated: This creates a stateful pointer in an otherwise pure API
Since: 0.1.2.0
:: RurePtr | |
-> ByteString | |
-> CSize | Index (for captures) |
-> IO [RureMatch] |
Since: 0.1.2.0
Types
Pointer types
type RurePtr = ForeignPtr Rure Source #
type RureIterPtr = ForeignPtr RureIter Source #
type RureSetPtr = ForeignPtr RureSet Source #