i3
regex Struct Reference

Regular expression wrapper. More...

#include <data.h>

Data Fields

char * pattern
 
pcre2_code * regex
 

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

Field Documentation

◆ pattern

char* regex::pattern

Definition at line 281 of file data.h.

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

◆ regex

pcre2_code* regex::regex

Definition at line 282 of file data.h.

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


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