1
/* $Id: search.h,v 1.15 2003/12/26 23:16:42 miciah Exp $ */
3
#ifndef EL__VIEWER_TEXT_SEARCH_H
4
#define EL__VIEWER_TEXT_SEARCH_H
6
#include "document/view.h"
11
void draw_searched(struct terminal *term, struct document_view *doc_view);
13
void search_for(struct session *, unsigned char *);
14
void search_for_back(struct session *, unsigned char *);
15
void find_next(struct session *, struct document_view *doc_view, int);
16
void find_next_back(struct session *, struct document_view *doc_view, int);
25
do_typeahead(struct session *ses, struct document_view *doc_view,
26
unsigned char *typeahead, struct term_event *event);
28
void search_dlg(struct session *ses, struct document_view *doc_view, int a);
29
void search_back_dlg(struct session *ses, struct document_view *doc_view, int a);
30
void search_typeahead(struct session *ses, struct document_view *doc_view, int a);
32
void init_search_history(void);
33
void done_search_history(void);
35
static inline int has_search_word(struct document_view *doc_view)
37
return (doc_view->search_word
38
&& *doc_view->search_word
39
&& (*doc_view->search_word)[0]);