Lines Matching defs:search
1 /* $NetBSD: search.c,v 1.5 2023/10/06 05:49:49 simonb Exp $ */
14 * Routines to search a file for a pattern.
61 * search for constant-time lookup if the next search is near enough to
113 * search pattern and filter pattern.
163 * Compile and save a search pattern.
204 * Initialize search variables.
230 * Is there a previous (remembered) search pattern?
338 * Toggle or clear search string highlighting.
429 * distance, don't keep doing a linear search!
1018 * Figure out where to start a search.
1204 /* When the search wraps around, end at starting position. */
1217 * A signal aborts the search.
1266 * The search wraps around the current file, so
1285 * continue the search at new pos.
1302 * the search. Remember the line number only if
1317 * If it's a caseless search, convert the line to lowercase.
1384 * search match is fully visible.
1436 * search for a pattern in history. If found, compile that pattern.
1464 * Updates the internal search state to reflect a change in the -i flag.
1472 * Set the search caselessness to the global caselessness.
1495 * Return -1 if the search should be aborted.
1496 * Caller may continue the search in another file
1499 public int search(int search_type, char *pattern, int n)
1522 error("Please re-enter search pattern", NULL_PARG);
1530 * If the search fails, we'll redisplay them later.
1538 * before we actually start the search.
1568 * before we actually start the search.
1576 * Figure out where to start the search.
1591 error("Nothing to search", NULL_PARG);
1639 * the current search pattern, and hilites have been created for such matches.
1654 * Search beyond where we're asked to search, so the prep region covers
1655 * more than we need. Do one big search instead of a bunch of small ones.
1683 * The range that we need to search (spos,epos); and the range that
1722 * Truncate search to end at start of old prep region.
1743 * Trim search to start at end of old prep region.