regex-rure-0.1.2.0: Bindings to Rust's regex library
Safe HaskellNone
LanguageHaskell2010

Regex.Rure

Synopsis

Higher-level functions

hsMatches Source #

Arguments

:: RureFlags 
-> ByteString

Regex

-> ByteString

Haystack (unicode)

-> Either String [RureMatch] 

hsIsMatch Source #

Arguments

:: RureFlags 
-> ByteString

Regex

-> ByteString

Haystack (unicode)

-> Either String Bool 

hsSetIsMatch Source #

Arguments

:: RureFlags 
-> [ByteString]

Needles (regex)

-> ByteString

Haystack

-> Either String Bool 

Functions in IO.

isMatch Source #

Arguments

:: RurePtr 
-> ByteString

Unicode

-> CSize

Start

-> IO Bool 

setIsMatch Source #

Arguments

:: RureSetPtr 
-> ByteString

Unicode

-> CSize

Start

-> IO Bool 

find Source #

Arguments

:: RurePtr 
-> ByteString

Unicode

-> CSize

Start

-> IO (Maybe RureMatch) 

matches :: RureIterPtr -> ByteString -> IO [RureMatch] Source #

Deprecated: Use matches', which is not stateful

matches' :: RurePtr -> ByteString -> IO [RureMatch] Source #

Since: 0.1.2.0

mkIter :: RurePtr -> IO RureIterPtr Source #

Deprecated: This creates a stateful pointer in an otherwise pure API

findCaptures Source #

Arguments

:: RurePtr 
-> ByteString 
-> CSize

Index (captures)

-> CSize

Start

-> IO (Maybe RureMatch) 

Since: 0.1.2.0

captures Source #

Arguments

:: RurePtr 
-> ByteString 
-> CSize

Index (for captures)

-> IO [RureMatch] 

Since: 0.1.2.0

Types

data RureMatch Source #

Constructors

RureMatch 

Fields

Instances

Instances details
Show RureMatch Source # 
Instance details

Defined in Regex.Rure.FFI

Eq RureMatch Source # 
Instance details

Defined in Regex.Rure.FFI

Pointer types

Options/flags

data RureFlags Source #

Instances

Instances details
Semigroup RureFlags Source # 
Instance details

Defined in Regex.Rure.FFI