MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Reset

Method Reset

src/autocompletion.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void AutoCompletion::Reset()
47{
48 this->prefix = "";
49 this->query = "";
50 this->initial_buf.clear();
51 this->suggestions.clear();
52 this->current_suggestion_index = 0;
53}
54
55void AutoCompletion::InitSuggestions(std::string_view text)
56{

Callers 2

AutoCompletionMethod · 0.95
AutoCompleteMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected