i3
Data Fields
regex Struct Reference

Regular expression wrapper. More...

#include <data.h>

Data Fields

char * pattern
pcre * regex
pcre_extra * extra

Detailed Description

Regular expression wrapper.

It contains the pattern itself as a string (like ^foo[0-9]$) as well as a pointer to the compiled PCRE expression and the pcre_extra data returned by pcre_study().

This makes it easier to have a useful logfile, including the matching or non-matching pattern.

Definition at line 169 of file data.h.


Field Documentation

pcre_extra* regex::extra

Definition at line 172 of file data.h.

Referenced by regex_free(), regex_matches(), and regex_new().

Definition at line 170 of file data.h.

Referenced by regex_free(), regex_matches(), and regex_new().

pcre* regex::regex

Definition at line 171 of file data.h.

Referenced by regex_free(), regex_matches(), and regex_new().


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