Lines Matching +defs:from +defs:end
138 size_t end = input.find('\n', start);
139 if (end == std::string::npos) {
143 result.push_back(input.substr(start, end - start));
144 start = end + 1;
248 if (pos != g_weak_map.end()) {
386 void Editline::MoveCursor(CursorLocation from, CursorLocation to) {
393 int fromLine = GetLineIndexForLocation(from, editline_cursor_row);
469 // Treat moving from the "live" entry differently
481 // the end.)
506 // If we're pulling the lines from history, split them apart
555 // Respond by repainting the current state from this line on
656 // Insert the new line and repaint everything from the split line on down
669 // Don't perform end of input detection when pasting, always treat this as a
678 // If this is the end of the last line, consider whether to add a line
695 m_input_lines.insert(m_input_lines.end(), wbuffer);
697 m_input_lines.insert(m_input_lines.end(), lines[index]);
718 // Fail when at the end of the last line, except when ^D is pressed on the
741 // Clear and repaint from this line on down
769 // Repaint from the new line down
788 // Start from a known location
791 // Treat moving up from a blank last line as a deletion of that line
806 // Handle attempts to move down from the last line
822 m_input_lines.end(),
928 /// completions in the interval [start, end) are printed.
1044 std::max_element(results.begin(), results.end(), [](auto &c1, auto &c2) {
1232 // Disable edit mode to stop the terminal from flushing all input during
1271 EditLineConstString("lldb-end-or-add-line"),
1318 EditLineConstString("lldb-buffer-end"),
1319 EditLineConstString("Move to end of buffer"),
1422 el_set(m_editline, EL_BIND, "\n", "lldb-end-or-add-line", NULL);
1423 el_set(m_editline, EL_BIND, "\r", "lldb-end-or-add-line", NULL);
1436 el_set(m_editline, EL_BIND, ESCAPE ">", "lldb-buffer-end", NULL);
1489 // Disable edit mode to stop the terminal from flushing all input during
1682 auto *end_ptr = reinterpret_cast<const llvm::UTF8 *>(input.end());