#include <auto-complete.h>
Public Member Functions | |
auto_complete (std::set< std::string > dictionary, bool bypass=false) | |
std::string | get_line (std::function< bool()> to_stop=[](){return false;}) |
Private Member Functions | |
void | backspace (const int num_of_backspaces) |
std::string | chars2_queue_to_string () const |
std::string | get_last_word (const std::string &line) const |
char | getch_nolock (std::function< bool()> stop=[](){return false;}) |
void | handle_special_key (const std::vector< uint8_t > &chars) |
std::vector< std::string > | search (const std::string &word) const |
Private Attributes | |
bool | _bypass |
std::vector< char > | _chars2_queue |
std::set< std::string > | _dictionary |
std::vector< std::string > | _finds_vec |
std::vector< std::string > | _history_words |
unsigned | _history_words_index |
bool | _is_first_time_up_arrow |
int | _num_of_chars2_in_line |
unsigned | _tab_index |
Definition at line 28 of file auto-complete.h.
|
explicit |
Definition at line 38 of file auto-complete.cpp.
|
private |
Definition at line 60 of file auto-complete.cpp.
|
private |
Definition at line 42 of file auto-complete.cpp.
|
private |
Definition at line 51 of file auto-complete.cpp.
string auto_complete::get_line | ( | std::function< bool()> | to_stop = []() {return false;} | ) |
Definition at line 181 of file auto-complete.cpp.
|
private |
Definition at line 124 of file auto-complete.cpp.
Definition at line 81 of file auto-complete.cpp.
|
private |
Definition at line 12 of file auto-complete.cpp.
|
private |
Definition at line 50 of file auto-complete.h.
|
private |
Definition at line 45 of file auto-complete.h.
|
private |
Definition at line 42 of file auto-complete.h.
|
private |
Definition at line 48 of file auto-complete.h.
|
private |
Definition at line 43 of file auto-complete.h.
|
private |
Definition at line 44 of file auto-complete.h.
|
private |
Definition at line 49 of file auto-complete.h.
|
private |
Definition at line 46 of file auto-complete.h.
|
private |
Definition at line 47 of file auto-complete.h.