ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
grep_pattern_t Struct Reference

Single filter pattern with all its settings. More...

Data Fields

const char * original
 Original pattern string (for display)
 
char * parsed_pattern
 Parsed pattern (without delimiters/flags)
 
pcre2_singleton_tsingleton
 PCRE2 singleton (NULL if fixed string)
 
bool is_fixed_string
 True for fixed string matching (no regex)
 
bool case_insensitive
 Case-insensitive matching (i flag)
 
bool invert
 Invert match (I flag)
 
bool global_flag
 Highlight all matches (g flag)
 
int context_before
 Lines before match (B flag)
 
int context_after
 Lines after match (A flag)
 

Detailed Description

Single filter pattern with all its settings.

Definition at line 59 of file grep.c.

Field Documentation

◆ case_insensitive

bool grep_pattern_t::case_insensitive

Case-insensitive matching (i flag)

Definition at line 64 of file grep.c.

Referenced by grep_init(), and grep_should_output().

◆ context_after

int grep_pattern_t::context_after

Lines after match (A flag)

Definition at line 68 of file grep.c.

Referenced by grep_init(), and grep_should_output().

◆ context_before

int grep_pattern_t::context_before

Lines before match (B flag)

Definition at line 67 of file grep.c.

Referenced by grep_init(), and grep_should_output().

◆ global_flag

bool grep_pattern_t::global_flag

Highlight all matches (g flag)

Definition at line 66 of file grep.c.

Referenced by grep_init().

◆ invert

bool grep_pattern_t::invert

Invert match (I flag)

Definition at line 65 of file grep.c.

Referenced by grep_init(), and grep_should_output().

◆ is_fixed_string

bool grep_pattern_t::is_fixed_string

True for fixed string matching (no regex)

Definition at line 63 of file grep.c.

Referenced by grep_init(), and grep_should_output().

◆ original

const char* grep_pattern_t::original

Original pattern string (for display)

Definition at line 60 of file grep.c.

Referenced by grep_destroy(), and grep_init().

◆ parsed_pattern

char* grep_pattern_t::parsed_pattern

Parsed pattern (without delimiters/flags)

Definition at line 61 of file grep.c.

Referenced by grep_destroy(), grep_init(), grep_restore_patterns(), grep_save_patterns(), and grep_should_output().

◆ singleton

pcre2_singleton_t* grep_pattern_t::singleton

PCRE2 singleton (NULL if fixed string)

Definition at line 62 of file grep.c.

Referenced by grep_destroy(), grep_highlight(), grep_highlight_colored(), grep_init(), grep_restore_patterns(), grep_save_patterns(), and grep_should_output().


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