tin  2.6.1
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.6.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

wildmat.c File Reference
#include "tin.h"
Include dependency graph for wildmat.c:

Go to the source code of this file.

Macros

#define ABORT   -1
 
#define NEGATE_CLASS   '^'
 
#define OPTIMIZE_JUST_STAR   1
 

Functions

static int DoMatch (const char *text, char *p)
 
t_bool wildmat (const char *text, char *p, t_bool icase)
 
t_bool wildmatpos (const char *text, char *p, t_bool icase, int *srch_offsets, int srch_offsets_size)
 

Macro Definition Documentation

◆ ABORT

#define ABORT   -1

Definition at line 43 of file wildmat.c.

◆ NEGATE_CLASS

#define NEGATE_CLASS   '^'

Definition at line 46 of file wildmat.c.

◆ OPTIMIZE_JUST_STAR

#define OPTIMIZE_JUST_STAR   1

Definition at line 49 of file wildmat.c.

Function Documentation

◆ DoMatch()

static int DoMatch ( const char *  text,
char *  p 
)
static

Definition at line 64 of file wildmat.c.

References ABORT, DoMatch(), FALSE, NEGATE_CLASS, and TRUE.

Referenced by DoMatch(), wildmat(), and wildmatpos().

◆ wildmat()

t_bool wildmat ( const char *  text,
char *  p,
t_bool  icase 
)

Definition at line 128 of file wildmat.c.

References DoMatch(), FALSE, my_strdup(), str_lwr(), and TRUE.

Referenced by match_regex(), and test_regex().

◆ wildmatpos()

t_bool wildmatpos ( const char *  text,
char *  p,
t_bool  icase,
int *  srch_offsets,
int  srch_offsets_size 
)

Definition at line 164 of file wildmat.c.

References DoMatch(), FALSE, my_strdup(), srch_offsets, srch_offsets_size, str_lwr(), and TRUE.

Referenced by body_search(), and search_article().