#include <text_base_types.h>
Public Member Functions | |
SearchContext () | |
SearchContext (unsigned int _id, SearchType _type, const Position &_from, const string &_pattern, bool _case_sensitive, bool _forward, bool _match_whole_word) | |
SearchContext (const SearchContext &r) | |
SearchContext & | operator= (const SearchContext &r) |
Data Fields | |
unsigned int | search_id |
Search id, to identify a specific search. | |
SearchType | search_type |
Search type, search all or search next. | |
Position | from |
From which position the search starts. | |
std::string | pattern |
Search pattern. | |
bool | case_sensitive |
Case sensitive. | |
bool | forward |
Search previous or next occurrence. | |
bool | match_whole_word |
Match the whole word. |
Definition at line 159 of file text_base_types.h.
text::SearchContext::SearchContext | ( | ) | [inline] |
Definition at line 162 of file text_base_types.h.
00163 : search_id(0), 00164 search_type(SEARCH_ALL), 00165 from(0, 0), 00166 pattern(""), 00167 case_sensitive(true), 00168 forward(true), 00169 match_whole_word(true) 00170 { 00171 }
text::SearchContext::SearchContext | ( | unsigned int | _id, | |
SearchType | _type, | |||
const Position & | _from, | |||
const string & | _pattern, | |||
bool | _case_sensitive, | |||
bool | _forward, | |||
bool | _match_whole_word | |||
) | [inline] |
Definition at line 173 of file text_base_types.h.
00180 : search_id(_id), 00181 search_type(_type), 00182 from(_from), 00183 pattern(_pattern), 00184 case_sensitive(_case_sensitive), 00185 forward(_forward), 00186 match_whole_word(_match_whole_word) 00187 { 00188 }
text::SearchContext::SearchContext | ( | const SearchContext & | r | ) | [inline] |
Definition at line 190 of file text_base_types.h.
References case_sensitive, forward, from, match_whole_word, pattern, search_id, and search_type.
00191 { 00192 search_id = r.search_id; 00193 search_type = r.search_type; 00194 from = r.from; 00195 pattern = r.pattern; 00196 case_sensitive = r.case_sensitive; 00197 forward = r.forward; 00198 match_whole_word = r.match_whole_word; 00199 }
SearchContext& text::SearchContext::operator= | ( | const SearchContext & | r | ) | [inline] |
Definition at line 201 of file text_base_types.h.
References case_sensitive, forward, from, match_whole_word, pattern, search_id, and search_type.
00202 { 00203 if (this != &r) 00204 { 00205 search_id = r.search_id; 00206 search_type = r.search_type; 00207 from = r.from; 00208 pattern = r.pattern; 00209 case_sensitive = r.case_sensitive; 00210 forward = r.forward; 00211 match_whole_word = r.match_whole_word; 00212 } 00213 00214 return *this; 00215 }
Case sensitive.
Definition at line 222 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().
Search previous or next occurrence.
Definition at line 223 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().
From which position the search starts.
Definition at line 220 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().
Match the whole word.
Definition at line 224 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().
std::string text::SearchContext::pattern |
Search pattern.
Definition at line 221 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().
unsigned int text::SearchContext::search_id |
Search id, to identify a specific search.
Definition at line 218 of file text_base_types.h.
Referenced by text::SearchTask::execute(), operator=(), and SearchContext().
Search type, search all or search next.
Definition at line 219 of file text_base_types.h.
Referenced by operator=(), text::TextModel::search(), and SearchContext().