bool caseSens
Whether the last search was case sensitive.
static int * createNexttab(const char *needle, bool caseSens, bool backwards)
The patten does not at all occur in the text.
CharIterator * hlIterator
The position from where the characters are highlighted.
The next occurrence of the pattern has been found.
void resetSearch()
This method is called when the user closes the "find text" dialog.
bool search0(bool backwards, bool firstTrial)
static const char * rev(const char *_str)
There is no further occurrence of the pattern, instead, the first occurrence has been selected.
static bool charsEqual(char c1, char c2, bool caseSens)
int * nexttab
The table used for KMP search.
Result search(const char *key, bool caseSens, bool backwards)
char * key
The key used for the last search.
Widget * widget
The top of the widget tree, in which the search is done.
bool unhighlight()
Unhighlight, and return whether a region was highlighted.
CharIterator * iterator
The position from where the next search will start.
void setWidget(Widget *widget)