NetSurf
|
Free text search (core) More...
#include <stdbool.h>
#include "utils/errors.h"
#include "content/textsearch.h"
#include "netsurf/types.h"
#include "netsurf/browser_window.h"
#include "desktop/browser_private.h"
#include "desktop/search.h"
Go to the source code of this file.
Functions | |
void | browser_window_search (struct browser_window *bw, void *context, search_flags_t flags, const char *string) |
Starts or continues an existing search. More... | |
void | browser_window_search_clear (struct browser_window *bw) |
Clear up a search. More... | |
Free text search (core)
Definition in file search.c.
void browser_window_search | ( | struct browser_window * | bw, |
void * | context, | ||
search_flags_t | flags, | ||
const char * | string | ||
) |
Starts or continues an existing search.
bw | The browser_window to search. |
context | A context pointer passed to the callbacks. |
flags | Flags controlling the search operation. |
string | The string being searched for. |
Definition at line 37 of file search.c.
References content_textsearch(), and browser_window::current_content.
Referenced by ami_search_event(), nsatari_search_perform(), nsgtk_search_back_button_clicked(), nsgtk_search_entry_activate(), nsgtk_search_entry_changed(), nsgtk_search_forward_button_clicked(), ro_gui_search_click(), ro_gui_search_keypress(), and ro_gui_search_next().
void browser_window_search_clear | ( | struct browser_window * | bw | ) |
Clear up a search.
Frees any memory used by the search.
bw | The browser window to clean up the search for. |
Definition at line 47 of file search.c.
References content_textsearch_clear(), and browser_window::current_content.
Referenced by ami_search_close(), ami_search_event(), ami_search_open(), back_button_clicked_cb(), forward_button_clicked_cb(), nsatari_search_perform(), nsatari_search_session_create(), nsatari_search_session_destroy(), nsgtk_search_toggle_visibility(), reload_button_clicked_cb(), reloadstop_button_clicked_cb(), ro_gui_search_click(), ro_gui_search_end(), and ro_gui_search_keypress().