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 215 of file data.h.

Field Documentation

pcre_extra* regex::extra

Definition at line 218 of file data.h.

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

char* regex::pattern

Definition at line 216 of file data.h.

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

pcre* regex::regex

Definition at line 217 of file data.h.

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


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