wxMaxima
Loading...
Searching...
No Matches
Functions
WorksheetSearch.cpp File Reference

Implementation of the worksheet's search engine, extracted from Worksheet::FindNext / FindNext_Regex. More...

#include "WorksheetSearch.h"
#include "cells/Cell.h"
#include "cells/EditorCell.h"
#include "cells/GroupCell.h"
#include <vector>
Include dependency graph for WorksheetSearch.cpp:

Functions

SearchTarget WorksheetSearch::FindNextTarget (GroupCell *tree, GroupCell *last, const SearchStart &start, bool down, const Matcher &matcher, bool searchInInput, bool searchInOutput)
 Find the next match, walking the group cells with wrap-around.
 

Detailed Description

Implementation of the worksheet's search engine, extracted from Worksheet::FindNext / FindNext_Regex.

Function Documentation

◆ FindNextTarget()

SearchTarget WorksheetSearch::FindNextTarget ( GroupCell tree,
GroupCell last,
const SearchStart start,
bool  down,
const Matcher matcher,
bool  searchInInput,
bool  searchInOutput 
)

Find the next match, walking the group cells with wrap-around.

Parameters
treethe first group cell of the worksheet
lastthe last group cell of the worksheet (wrap target going up)
startwhere to start and what the cursor is doing there
downsearch direction
matcherthe search expression
searchInInputwhether prompts and editors are searched
searchInOutputwhether output cells are searched

The start group is searched only once, from the cursor onwards: after a full wrap-around the loop stops when it reaches the start group again.