Lines Matching defs:search
1 /* $NetBSD: search.c,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $ */
3 /* search.c -- searching large bodies of text.
4 Id: search.c,v 1.3 2004/04/11 17:56:46 karl Exp
26 #include "search.h"
29 /* The search functions take two arguments:
31 1) a string to search for, and
34 and end of the search.
74 The search is forwards if BINDING->start is greater than BINDING->end. */
76 search (char *string, SEARCH_BINDING *binding)
80 /* If the search is backwards, then search backwards, otherwise forwards. */
99 /* We match characters in the search buffer against STRING and ALTERNATE.
159 /* Reverse the characters in the search string. */
166 /* We match characters in the search buffer against STRING and ALTERNATE.
219 Return an offset of -1 if STRING does not appear in LINE. The search
245 search_end = search (string, binding);
369 BINDING-buffer. The search starts at BINDING->start. Return -1 if no node
434 binding starting the search at binding->start. */
459 This is a brute force search, and we wish to avoid it when possible.