matchers-0.14.0.0: Text matchers

Safe HaskellSafe

Text.Matchers.Pcre.Base

Documentation

data PCRE Source

Instances

c_free :: FunPtr (Ptr a -> IO ())Source

c_pcre_compileSource

Arguments

:: CString

Pattern

-> CInt

Options

-> Ptr CString

OUT error message

-> Ptr CInt

OUT Error offset

-> Ptr CUChar

Pointer to character table. Use NULL for default.

-> IO (Ptr PCRE) 

c_pcre_execSource

Arguments

:: Ptr PCRE

Regex

-> Ptr PCRE_Extra

Result of study

-> CString

Subject

-> CInt

Length of subject string. (Apparently it does not have to be null terminated?)

-> CInt

Start at this offset in the subject string.

-> CInt

Options

-> Ptr CInt

OUT Output vector. Information about matching substrings is stored in this array.

-> CInt

Output vector size

-> IO CInt

One more than the highest numbered pair that has been set.

pcre_compileSource

Arguments

:: Caseless 
-> Text

Pattern

-> IO (Either String (Ptr PCRE))

Errors are indicated with a Left with the error message.

data Regex Source

Instances