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)  

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

Go to the source code of this file.

Functions

static char * get_search_pattern (t_bool *forward, t_bool repeat, const char *fwd_msg, const char *bwd_msg, char *def, int which_hist)
 
static int author_search (int i, char *searchbuf)
 
static int body_search (int i, char *searchbuf)
 
static int subject_search (int i, char *searchbuf)
 
static int search_group (t_bool forward, int current_art, char *searchbuff, int(*search_func)(int i, char *searchbuff))
 
enum option_enum search_config (t_bool forward, t_bool repeat, enum option_enum current, enum option_enum last)
 
int generic_search (t_bool forward, t_bool repeat, int current, int last, int level)
 
int search_active (t_bool forward, t_bool repeat)
 
int search (t_function func, int current_art, t_bool repeat)
 
int search_article (t_bool forward, t_bool repeat, int start_line, int lines, t_lineinfo *line, int reveal_ctrl_l_lines, FILE *fp)
 
int search_body (struct t_group *group, int current_art, t_bool repeat)
 
int get_search_vectors (int *start, int *end)
 
void reset_srch_offsets (void)
 

Variables

int srch_lineno = -1
 
static int total_cnt = 0
 
static int curr_cnt = 0
 
static int srch_offsets [6]
 
static int srch_offsets_size = ((int) (sizeof( srch_offsets ) / sizeof( srch_offsets [0])))
 
static struct regex_cache search_regex = { NULL, NULL }
 

Function Documentation

◆ author_search()

static int author_search ( int  i,
char *  searchbuf 
)
static

Definition at line 428 of file search.c.

References arts, buf, IS_LOCAL_CHARSET, match_regex(), my_malloc, my_strdup(), name, search_regex, snprintf, and TRUE.

Referenced by search().

◆ body_search()

◆ generic_search()

◆ get_search_pattern()

◆ get_search_vectors()

int get_search_vectors ( int *  start,
int *  end 
)

Definition at line 766 of file search.c.

References end, srch_lineno, and srch_offsets.

Referenced by process_search().

◆ reset_srch_offsets()

void reset_srch_offsets ( void  )

Definition at line 784 of file search.c.

References srch_offsets.

Referenced by info_pager(), and load_article().

◆ search()

◆ search_active()

◆ search_article()

◆ search_body()

◆ search_config()

◆ search_group()

◆ subject_search()

static int subject_search ( int  i,
char *  searchbuf 
)
static

Definition at line 466 of file search.c.

References arts, buf, IS_LOCAL_CHARSET, match_regex(), my_strdup(), search_regex, and TRUE.

Referenced by search().

Variable Documentation

◆ curr_cnt

int curr_cnt = 0
static

Definition at line 60 of file search.c.

Referenced by body_search(), and search_body().

◆ search_regex

struct regex_cache search_regex = { NULL, NULL }
static

◆ srch_lineno

int srch_lineno = -1

◆ srch_offsets

int srch_offsets[6]
static

◆ srch_offsets_size

int srch_offsets_size = ((int) (sizeof( srch_offsets ) / sizeof( srch_offsets [0])))
static

Definition at line 67 of file search.c.

Referenced by body_search(), search_article(), and wildmatpos().

◆ total_cnt

int total_cnt = 0
static

Definition at line 60 of file search.c.

Referenced by body_search(), and search_body().