Module hyperscan_sys::chimera

source ·
Expand description

Chimera is a software regular expression matching engine that is a hybrid of Hyperscan and PCRE.

The design goals of Chimera are to fully support PCRE syntax as well as to take advantage of the high performance nature of Hyperscan.

Structs

Structure representing a captured subexpression within a match. An array of these structures corresponding to capture groups in order is passed to the callback on match, with active structures identified by the CH_CAPTURE_FLAG_ACTIVE flag.
A type containing error details that is returned by the compile calls (@ref ch_compile() and @ref ch_compile_multi() on failure. The caller may inspect the values returned in this type to determine the cause of failure.
A type containing information on the target platform which may optionally be provided to the compile calls (@ref hs_compile(), @ref hs_compile_multi(), @ref hs_compile_ext_multi()).

Constants

Functions

Allocate a “scratch” space for use by Chimera.
Allocate a scratch space that is a clone of an existing scratch space.
The basic regular expression compiler.
The multiple regular expression compiler with extended match limits support.
The multiple regular expression compiler.
Utility function providing information about a database.
Returns the size of the given database.
Free an error structure generated by @ref ch_compile(), @ref ch_compile_multi().
Free a compiled pattern database.
Free a scratch block previously allocated by @ref ch_alloc_scratch() or @ref ch_clone_scratch().
The block regular expression scanner.
Provides the size of the given scratch space.
Set the allocate and free functions used by Chimera for allocating memory at runtime for stream state, scratch space, database bytecode, and various other data structure returned by the Chimera API.
Set the allocate and free functions used by Chimera for allocating memory for database bytecode produced by the compile calls (@ref ch_compile() and @ref ch_compile_multi()).
Set the allocate and free functions used by Chimera for allocating memory for items returned by the Chimera API such as @ref ch_compile_error_t.
Set the allocate and free functions used by Chimera for allocating memory for scratch space by @ref ch_alloc_scratch() and @ref ch_clone_scratch().
Utility function for identifying this release version.

Type Definitions

The type of the callback function that will be used by Chimera to allocate more memory at runtime as required.
Callback return value used to tell the Chimera matcher what to do after processing this match.
Structure representing a captured subexpression within a match. An array of these structures corresponding to capture groups in order is passed to the callback on match, with active structures identified by the CH_CAPTURE_FLAG_ACTIVE flag.
A type containing error details that is returned by the compile calls (@ref ch_compile() and @ref ch_compile_multi() on failure. The caller may inspect the values returned in this type to determine the cause of failure.
A Chimera pattern database.
Definition of the Chimera error event callback function type.
Type used to differentiate the errors raised with the @ref ch_error_event_handler callback.
A type for errors returned by Chimera functions.
The type of the callback function that will be used by Chimera to free memory regions previously allocated using the @ref ch_alloc_t function.
Definition of the match event callback function type.
A Chimera scratch space.
A type containing information on the target platform which may optionally be provided to the compile calls (@ref hs_compile(), @ref hs_compile_multi(), @ref hs_compile_ext_multi()).