NetSurf
Functions
search.c File Reference

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"
Include dependency graph for search.c:

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...
 

Detailed Description

Free text search (core)

Definition in file search.c.

Function Documentation

◆ browser_window_search()

void browser_window_search ( struct browser_window bw,
void *  context,
search_flags_t  flags,
const char *  string 
)

Starts or continues an existing search.

Parameters
bwThe browser_window to search.
contextA context pointer passed to the callbacks.
flagsFlags controlling the search operation.
stringThe 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_search_clear()

void browser_window_search_clear ( struct browser_window bw)

Clear up a search.

Frees any memory used by the search.

Parameters
bwThe 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().

Here is the call graph for this function:
Here is the caller graph for this function: