|
| void | InitSuggestions (std::string_view text) |
| |
|
virtual std::vector< std::string > | GetSuggestions (std::string_view prefix, std::string_view query)=0 |
| |
|
virtual void | ApplySuggestion (std::string_view prefix, std::string_view suggestion)=0 |
| |
|
| std::string | initial_buf |
| | Value of text buffer when we started current suggestion session.
|
| |
| std::string_view | prefix |
| | Prefix of the text before the last space.
|
| |
| std::string_view | query |
| | Last token of the text. This is used to based the suggestions on.
|
| |
| std::vector< std::string > | suggestions |
| |
| size_t | current_suggestion_index |
| |
Definition at line 15 of file autocompletion.h.
◆ AutoCompletion()
| AutoCompletion::AutoCompletion |
( |
Textbuf * |
textbuf | ) |
|
|
inline |
◆ AutoComplete()
| bool AutoCompletion::AutoComplete |
( |
| ) |
|
◆ InitSuggestions()
| void AutoCompletion::InitSuggestions |
( |
std::string_view |
text | ) |
|
|
private |
◆ Reset()
| void AutoCompletion::Reset |
( |
| ) |
|
◆ current_suggestion_index
| size_t AutoCompletion::current_suggestion_index |
|
private |
◆ initial_buf
| std::string AutoCompletion::initial_buf |
|
private |
◆ prefix
| std::string_view AutoCompletion::prefix |
|
private |
◆ query
| std::string_view AutoCompletion::query |
|
private |
Last token of the text. This is used to based the suggestions on.
Definition at line 23 of file autocompletion.h.
◆ suggestions
| std::vector<std::string> AutoCompletion::suggestions |
|
private |
◆ textbuf
The documentation for this class was generated from the following files: