| 110 | } |
| 111 | |
| 112 | const QString textFromDoc(const IDocument* doc, const KTextEditor::Range& range) { |
| 113 | return doc->textDocument()->line(range.start().line()).mid(range.start().column(), range.end().column()-range.start().column()); |
| 114 | } |
| 115 | |
| 116 | // Finds how many spaces the given string has at one end. |
| 117 | // direction=+1 -> left end of the string, -1 for right end. |
no test coverage detected