PCRE API

Modules

 Compiler Error Codes
 All functions within the PCRE API, with the exception of AP_CreateExpressionDB(), return zero on success or a negative integer on error.
 
 Expression Modifiers
 Modifiers control how the syntax tree is built and can be combined by a bitwise OR operation.
 
 Supported Grammars
 Each grammar is assigned a unique integer identifier.
 
 Compile Options
 

Typedefs

typedef struct ap_automaton_objref * ap_automaton_t
 Opaque object for storing a compiled automaton.
 
typedef struct ap_exprdb_objref * ap_exprdb_t
 Opaque object for storing expressions. More...
 

Functions

COMPILE_API ap_exprdb_t AP_CreateExpressionDB (void)
 Create an expression database and return a reference to the empty database. More...
 
COMPILE_API int AP_DestroyExpressionDB (ap_exprdb_t db)
 Destroy an expression database and free all internal resources. More...
 
COMPILE_API int AP_AddExpression (ap_exprdb_t db, int *errcol, const char *expression, unsigned report_code, unsigned modifier, unsigned grammar)
 Add an expression to an existing expression database. More...
 
COMPILE_API int AP_Compile (const ap_exprdb_t db, ap_automaton_t *amton, unsigned *expr_id, ap_cbinfo_t *callback, unsigned options, int devfamily)
 Compile all expressions in the expression database into an automaton. More...
 
COMPILE_API int AP_Place (ap_automaton_t amton, ap_cbinfo_t *callback, unsigned options, unsigned timing, int subgraphId, int devfamily, ap_element_map_t element_map)
 Re-run placement on an automaton. More...
 
COMPILE_API int AP_Merge (ap_automaton_t amton, ap_cbinfo_t *callback, unsigned options, int mergeSize)
 Merge sub-graphs on a placed automaton. More...
 
COMPILE_API int AP_Route (ap_automaton_t amton, ap_cbinfo_t *callback, unsigned options, int subgraphId, ap_element_map_t element_map)
 Re-run routing on an automaton. More...
 
COMPILE_API void AP_SetCompileThreadCount (unsigned threadCount)
 Set the maximum number of threads that will be used when compiling with option AP_OPT_MT. More...
 

Detailed Description

The programming interface for compiling regular expressions.

All functions within the PCRE API, with the exception of AP_CreateExpressionDB(), return zero on success or a negative integer on error.

#include <micron/ap/ap_error.h>
#include <micron/ap/ap_compile.h>