CWB
|
Underlying structure for CL_Regex object. More...
#include <regopt.h>
Underlying structure for CL_Regex object.
TODO: change structure name as it breaks rules for ANSI reserved-words (uscore followed by uppercase)
int anchor_end |
Referenced by cl_regex_match(), and regopt_data_copy_to_regex_object().
int anchor_start |
Referenced by cl_regex_match(), and regopt_data_copy_to_regex_object().
the character set in use for this regex
Referenced by cl_new_regex(), and cl_regex_match().
pcre_extra* extra |
buffer for PCRE's internal optimisation data
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().
int flags |
flags for this regex: can be IGNORE_CASE and/or IGNORE_DIAC
Referenced by cl_new_regex(), and cl_regex_match().
char* grain[MAX_GRAINS] |
Referenced by cl_delete_regex(), cl_regex_match(), and regopt_data_copy_to_regex_object().
int grain_len |
Referenced by cl_regex_match(), cl_regex_optimised(), and regopt_data_copy_to_regex_object().
int grains |
number of grains (0 = not optimised).
Referenced by cl_delete_regex(), cl_new_regex(), cl_regex_match(), cl_regex_optimised(), and regopt_data_copy_to_regex_object().
char* haystack_buf |
a buffer of size CL_MAX_LINE_LENGTH used for normalisation by cl_regex_match().
It will be allocated iff one of the flags c or d is set. Note this buffer is for the string being tested NOT for the regular expression.
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().
int jumptable[256] |
Referenced by cl_regex_match(), and regopt_data_copy_to_regex_object().
pcre* needle |
buffer for the actual regex object (PCRE)
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().