FACT++
1.0
|
|
protectedvirtual |
The readline manual says about this function:
A pointer to an alternative function to create matches. The function is called with text, start, and end. start and end are indices in rl_line_buffer saying what the boundaries of text are. If this function exists and returns NULL, or if this variable is set to NULL, then rl_complete() will call the value of rl_completion_entry_function to generate matches, otherwise the array of strings returned will be used.
This function is virtual and can be overwritten. It defaults to a call to rl_completion_matches with CompleteImp as an argument which defaults to filename completion, but can also be overwritten.
It is suggested that you call Complete(const vector<string>&, const char*) from here.
text | A pointer to a char array conatining the text which should be completed. The text is null-terminated. |
start | The start index within readline's line buffer rl_line_buffer, at which the text starts which presumably should be completed. |
end | The end index within readline's line buffer rl_line_buffer, at which the text ends which presumably should be completed. |
Reimplemented in RemoteControl< Console >, RemoteControl< ConsoleStream >, RemoteControl< Shell >, LocalControl< Console >, LocalControl< Shell >, and LocalControl< ConsoleStream >.
Definition at line 541 of file Readline.cc.
References CompleteImp().
Referenced by rl_ncurses_completion_function().