Lines Matching defs:line
143 false, // Multi-line
167 std::string &line) {
168 if (line.empty()) {
175 if (line.size() == 1) {
176 switch (line[0]) {
192 if (line == "yes" || line == "YES" || line == "Yes") {
195 } else if (line == "no" || line == "NO" || line == "No") {
203 llvm::StringRef line) {
206 .GetAutoSuggestionForCommand(line);
278 m_editline_up->SetSuggestionCallback([this](llvm::StringRef line) {
279 return this->SuggestionCallback(line);
328 // Split out a line from the buffer, if there is a full one to get.
333 std::string line =
336 return line;
339 // If the final line of the file ends without a end-of-line, return
340 // it as a line anyway.
344 std::string line = std::move(line_buffer);
346 return line;
349 bool IOHandlerEditline::GetLine(std::string &line, bool &interrupted) {
352 return m_editline_up->GetLine(line, interrupted);
356 line.clear();
431 line = *got_line;
450 IOHandlerEditline::SuggestionCallback(llvm::StringRef line) {
451 return m_delegate.IOHandlerSuggestion(*this, line);
504 void IOHandlerEditline::SetBaseLineNumber(uint32_t line) {
505 m_base_line_number = line;
522 // `m_current_lines_ptr`, which is updated whenever a new line is processed.
544 // Show line numbers if we are asked to
545 std::string line;
557 if (GetLine(line, interrupted) && !interrupted) {
558 lines.AppendString(line);
574 std::string line;
582 m_delegate.IOHandlerInputInterrupted(*this, line);
585 line = lines.CopyList();
586 m_delegate.IOHandlerInputComplete(*this, line);
592 if (GetLine(line, interrupted)) {
594 m_delegate.IOHandlerInputInterrupted(*this, line);
596 m_delegate.IOHandlerInputComplete(*this, line);