NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
PrexStorage Struct Reference

A predefined / precompiled regex. More...

Data Fields

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

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 69 of file prex.c.

Field Documentation

◆ which

enum Prex PrexStorage::which

Regex type, e.g. PREX_URL.

Definition at line 71 of file prex.c.

◆ nmatches

size_t PrexStorage::nmatches

Number of regex matches.

Definition at line 72 of file prex.c.

◆ str

const char* PrexStorage::str

Regex string.

Definition at line 73 of file prex.c.

◆ re

regex_t* PrexStorage::re

Compiled regex.

Definition at line 78 of file prex.c.

◆ matches

regmatch_t* PrexStorage::matches

Resulting matches.

Definition at line 80 of file prex.c.


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