#include <findtext.hh>
|
| bool | unhighlight () |
| | Unhighlight, and return whether a region was highlighted.
|
| |
| bool | search0 (bool backwards, bool firstTrial) |
| |
|
| char * | key |
| | The key used for the last search.
|
| |
| bool | caseSens |
| | Whether the last search was case sensitive.
|
| |
| int * | nexttab |
| | The table used for KMP search.
|
| |
| Widget * | widget |
| | The top of the widget tree, in which the search is done.
|
| |
| CharIterator * | iterator |
| | The position from where the next search will start.
|
| |
| CharIterator * | hlIterator |
| | The position from where the characters are highlighted.
|
| |
- Enumerator:
| SUCCESS |
The next occurrence of the pattern has been found.
|
| RESTART |
There is no further occurrence of the pattern, instead, the first occurrence has been selected.
|
| NOT_FOUND |
The patten does not at all occur in the text.
|
| dw::core::FindtextState::FindtextState |
( |
| ) |
|
| dw::core::FindtextState::~FindtextState |
( |
| ) |
|
| static bool dw::core::FindtextState::charsEqual |
( |
char |
c1, |
|
|
char |
c2, |
|
|
bool |
caseSens |
|
) |
| |
|
inlinestaticprivate |
| int * dw::core::FindtextState::createNexttab |
( |
const char * |
needle, |
|
|
bool |
caseSens, |
|
|
bool |
backwards |
|
) |
| |
|
staticprivate |
| void dw::core::FindtextState::resetSearch |
( |
| ) |
|
| const char * dw::core::FindtextState::rev |
( |
const char * |
_str | ) |
|
|
staticprivate |
| FindtextState::Result dw::core::FindtextState::search |
( |
const char * |
key, |
|
|
bool |
caseSens, |
|
|
bool |
backwards |
|
) |
| |
References caseSens, dw::core::CharIterator::cloneCharIterator(), createNexttab(), dw::core::CharIterator::highlight(), dw::core::HIGHLIGHT_FINDTEXT, hlIterator, dw::core::HPOS_INTO_VIEW, iterator, dw::core::CharIterator::next(), nexttab, NOT_FOUND, dw::core::CharIterator::prev(), RESTART, dw::core::CharIterator::scrollTo(), search0(), SUCCESS, unhighlight(), dw::core::VPOS_CENTER, and widget.
Referenced by dw::core::Layout::search().
| bool dw::core::FindtextState::search0 |
( |
bool |
backwards, |
|
|
bool |
firstTrial |
|
) |
| |
|
private |
| void dw::core::FindtextState::setWidget |
( |
Widget * |
widget | ) |
|
| bool dw::core::FindtextState::unhighlight |
( |
| ) |
|
|
private |
| bool dw::core::FindtextState::caseSens |
|
private |
| char* dw::core::FindtextState::key |
|
private |
| int* dw::core::FindtextState::nexttab |
|
private |
| Widget* dw::core::FindtextState::widget |
|
private |
The top of the widget tree, in which the search is done.
From this, the iterator will be constructed. Set by dw::core::Findtext::widget
Referenced by FindtextState(), search(), and setWidget().
The documentation for this class was generated from the following files: