CWB
Data Fields

_CL_Regex Struct Reference

Underlying structure for CL_Regex object. More...

#include <regopt.h>

Data Fields


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

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]
int grain_len
int grains
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]
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: