|
Blender V5.0
|
#include <BLI_string_search.hh>
Public Attributes | |
| void * | user_data |
| Span< StringRef > | normalized_words |
| Span< int > | word_group_ids |
| int | main_group_id |
| int | main_group_length |
| int | total_length |
| float | weight |
| int | recent_time |
| bool | is_deprecated |
Definition at line 19 of file BLI_string_search.hh.
| bool blender::string_search::SearchItem::is_deprecated |
Deprecated items can still be found via search, but are at the bottom of the list.
Definition at line 44 of file BLI_string_search.hh.
Referenced by blender::string_search::score_query_against_words().
| int blender::string_search::SearchItem::main_group_id |
The id of the group that is highlighted in the UI. In some places, the words in this group are given higher weight.
Definition at line 32 of file BLI_string_search.hh.
Referenced by blender::string_search::InitialsMatch::count_main_group_matches(), blender::string_search::get_best_word_index_that_startswith(), and blender::string_search::score_query_against_words().
| int blender::string_search::SearchItem::main_group_length |
Definition at line 33 of file BLI_string_search.hh.
Definition at line 21 of file BLI_string_search.hh.
Referenced by blender::string_search::get_best_word_index_that_startswith(), blender::string_search::match_word_initials(), and blender::string_search::score_query_against_words().
| int blender::string_search::SearchItem::recent_time |
This is a logical time stamp, i.e. the greater it is, the more recent the item was used. The number is not based on an actual clock.
Definition at line 40 of file BLI_string_search.hh.
| int blender::string_search::SearchItem::total_length |
Definition at line 34 of file BLI_string_search.hh.
| void* blender::string_search::SearchItem::user_data |
Definition at line 20 of file BLI_string_search.hh.
| float blender::string_search::SearchItem::weight |
Definition at line 35 of file BLI_string_search.hh.
| Span<int> blender::string_search::SearchItem::word_group_ids |
When using menu-search, the search item is often split into multiple groups of words, each of which corresponds to a menu entry. This id is the same for words in the same group and different otherwise.
Definition at line 27 of file BLI_string_search.hh.
Referenced by blender::string_search::InitialsMatch::count_main_group_matches(), blender::string_search::get_best_word_index_that_startswith(), and blender::string_search::score_query_against_words().