CWB
Data Fields
_CL_Regex Struct Reference

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]
 

Detailed Description

Underlying structure for CL_Regex object.

TODO: change structure name as it breaks rules for ANSI reserved-words (uscore followed by uppercase)

See also
regopt.c

Field Documentation

int anchor_end
int anchor_start
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]
int grain_len
int grains
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]
See also
cl_regopt_jumptable
make_jump_table

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().


The documentation for this struct was generated from the following file: