Lines Matching refs:LineEditor
24 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) { in getDefaultHistoryPath()
33 LineEditor::CompleterConcept::~CompleterConcept() = default;
34 LineEditor::ListCompleterConcept::~ListCompleterConcept() = default;
36 std::string LineEditor::ListCompleterConcept::getCommonPrefix( in getCommonPrefix()
53 LineEditor::CompletionAction
54 LineEditor::ListCompleterConcept::complete(StringRef Buffer, size_t Pos) const { in complete()
81 LineEditor::CompletionAction LineEditor::getCompletionAction(StringRef Buffer, in getCompletionAction()
96 struct LineEditor::InternalData {
97 LineEditor *LE;
111 LineEditor::InternalData *Data; in ElGetPromptFn()
122 LineEditor::InternalData *Data; in ElCompletionFn()
143 LineEditor::CompletionAction Action = Data->LE->getCompletionAction( in ElCompletionFn()
147 case LineEditor::CompletionAction::AK_Insert: in ElCompletionFn()
151 case LineEditor::CompletionAction::AK_ShowCompletions: in ElCompletionFn()
193 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() function in LineEditor
229 LineEditor::~LineEditor() { in ~LineEditor()
237 void LineEditor::saveHistory() { in saveHistory()
244 void LineEditor::loadHistory() { in loadHistory()
251 std::optional<std::string> LineEditor::readLine() const { in readLine()
276 struct LineEditor::InternalData {
281 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() function in LineEditor
288 LineEditor::~LineEditor() { in ~LineEditor()
292 void LineEditor::saveHistory() {} in saveHistory()
293 void LineEditor::loadHistory() {} in loadHistory()
295 std::optional<std::string> LineEditor::readLine() const { in readLine()