|
Commander-API V3.0.0
Lightweight Command Parser
|
#include <Commander-Autocomplete.hpp>
Classes | |
| struct | TrieElement_t |
Public Member Functions | |
| AutoComplete (TrieElement_t *trie_p) | |
| void | searchRecursive (int current_index, char *key, int key_size) |
| int | searchLastMatchingNode (const char *key) |
| int | generateHint (const char *key_p, char *buffer_p, int buffer_size_p) |
| const char * | getResult (int index, bool only_remaining_chars=false) |
Private Attributes | |
| TrieElement_t * | trie = NULL |
| char * | buffer |
| int | buffer_size |
| int | input_data_size |
| int | work_buffer_size |
| int | result_buffer_start |
| int | result_buffer_counter |
| const char * | result_pointers [AUTOCOMPLETE_RESULT_SIZE] |
| int | result_counter |
Static Private Attributes | |
| static const char | empty_result = '\0' |
Definition at line 48 of file Commander-Autocomplete.hpp.
| AutoComplete::AutoComplete | ( | TrieElement_t * | trie_p | ) |
Definition at line 39 of file Commander-Autocomplete.cpp.
| int AutoComplete::generateHint | ( | const char * | key_p, |
| char * | buffer_p, | ||
| int | buffer_size_p | ||
| ) |
Definition at line 156 of file Commander-Autocomplete.cpp.
| const char * AutoComplete::getResult | ( | int | index, |
| bool | only_remaining_chars = false |
||
| ) |
Definition at line 191 of file Commander-Autocomplete.cpp.
| int AutoComplete::searchLastMatchingNode | ( | const char * | key | ) |
Definition at line 112 of file Commander-Autocomplete.cpp.
| void AutoComplete::searchRecursive | ( | int | current_index, |
| char * | key, | ||
| int | key_size | ||
| ) |
Definition at line 47 of file Commander-Autocomplete.cpp.
|
private |
Definition at line 69 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 70 of file Commander-Autocomplete.hpp.
|
staticprivate |
Definition at line 77 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 71 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 76 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 74 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 79 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 78 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 68 of file Commander-Autocomplete.hpp.
|
private |
Definition at line 73 of file Commander-Autocomplete.hpp.