NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
PrexStorage Struct Reference

A predefined / precompiled regex. More...

Data Fields

enum Prex which
 Regex type, e.g. PREX_URL. More...
 
size_t nmatches
 Number of regex matches. More...
 
const char * str
 Regex string. More...
 
regex_t * re
 Compiled regex. More...
 
regmatch_t * matches
 Resulting matches. More...
 

Detailed Description

A predefined / precompiled regex.

This struct holds a predefined / precompiled regex including data representing the corresponding identification enum, the regular expression in string format, information on how many matches it defines, and storage for the actual matches. The enum entry is not strictly necessary, but is kept together with the regex for validation purposes, as it allows checking that the enum and the array defined in prex() do not go out of sync.

Definition at line 67 of file prex.c.

Field Documentation

◆ which

enum Prex PrexStorage::which

Regex type, e.g. PREX_URL.

Definition at line 69 of file prex.c.

◆ nmatches

size_t PrexStorage::nmatches

Number of regex matches.

Definition at line 70 of file prex.c.

◆ str

const char* PrexStorage::str

Regex string.

Definition at line 71 of file prex.c.

◆ re

regex_t* PrexStorage::re

Compiled regex.

Definition at line 76 of file prex.c.

◆ matches

regmatch_t* PrexStorage::matches

Resulting matches.

Definition at line 78 of file prex.c.


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