|
wxMaxima
|
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>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. | |
Implementation of the worksheet's search engine, extracted from Worksheet::FindNext / FindNext_Regex.
| 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.
| tree | the first group cell of the worksheet |
| last | the last group cell of the worksheet (wrap target going up) |
| start | where to start and what the cursor is doing there |
| down | search direction |
| matcher | the search expression |
| searchInInput | whether prompts and editors are searched |
| searchInOutput | whether 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.