CWB
|
Underlying structure for CL_Regex object. More...
#include <regopt.h>
Data Fields | |
pcre * | needle |
buffer for the actual regex object (PCRE) More... | |
pcre_extra * | extra |
buffer for PCRE's internal optimisation data More... | |
CorpusCharset | charset |
the character set in use for this regex More... | |
int | icase |
whether IGNORE_CASE flag was set for this regex (needs special processing) More... | |
int | idiac |
whether IGNORE_DIAC flag was set for this regex More... | |
char * | haystack_buf |
a buffer of size CL_MAX_LINE_LENGTH used for accent folding by cl_regex_match(), allocated only if IGNOR_DIAC was specified More... | |
char * | haystack_casefold |
additional, larger buffer for a case-folded version, allocated only if optimizer is active and IGNORE_CASE was specified More... | |
int | grains |
number of grains (0 = not optimised). More... | |
int | grain_len |
char * | grain [MAX_GRAINS] |
int | anchor_start |
int | anchor_end |
int | jumptable [256] |
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().
CorpusCharset charset |
the character set in use for this regex
Referenced by cl_new_regex(), cl_regex_match(), and regopt_data_copy_to_regex_object().
pcre_extra* extra |
buffer for PCRE's internal optimisation data
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().
char* grain[MAX_GRAINS] |
Referenced by cl_delete_regex(), cl_regex_match(), make_jump_table(), and regopt_data_copy_to_regex_object().
int grain_len |
Referenced by cl_regex_match(), cl_regex_optimised(), make_jump_table(), 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(), make_jump_table(), and regopt_data_copy_to_regex_object().
char* haystack_buf |
a buffer of size CL_MAX_LINE_LENGTH used for accent folding by cl_regex_match(), allocated only if IGNOR_DIAC was specified
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().
char* haystack_casefold |
additional, larger buffer for a case-folded version, allocated only if optimizer is active and IGNORE_CASE was specified
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().
int icase |
whether IGNORE_CASE flag was set for this regex (needs special processing)
Referenced by cl_new_regex(), cl_regex_match(), and regopt_data_copy_to_regex_object().
int idiac |
whether IGNORE_DIAC flag was set for this regex
Referenced by cl_new_regex(), and cl_regex_match().
int jumptable[256] |
Referenced by cl_regex_match(), and make_jump_table().
pcre* needle |
buffer for the actual regex object (PCRE)
Referenced by cl_delete_regex(), cl_new_regex(), and cl_regex_match().