Kate
kateplaintextsearch.cpp
Go to the documentation of this file.
37 KatePlainTextSearch::KatePlainTextSearch ( KTextEditor::Document *document, Qt::CaseSensitivity caseSensitivity, bool wholeWords )
52 KTextEditor::Range KatePlainTextSearch::search (const QString & text, const KTextEditor::Range & inputRange, bool backwards)
60 return KateRegExpSearch(m_document, m_caseSensitivity).search(workPattern, inputRange, backwards)[0];
98 const int maxRight = (j + k == inputRange.end().line()) ? inputRange.end().column() : hayLine.length();
123 for (int line = backwards ? endLine : startLine; (startLine <= line) && (line <= endLine); line += forInc)
127 kWarning() << "line " << line << " is not within interval [0.." << m_document->lines() << ") ... returning invalid range";
135 const int foundAt = backwards ? textLine.lastIndexOf(text, line_end-text.length(), m_caseSensitivity) :
Cursor & start()
~KatePlainTextSearch()
Definition: kateplaintextsearch.cpp:47
virtual bool isValid() const
KTextEditor::Range search(const QString &text, const KTextEditor::Range &inputRange, bool backwards=false)
Search for the given text inside the range inputRange taking into account whether to search casesensi...
Definition: kateplaintextsearch.cpp:52
static Range invalid()
virtual QString line(int line) const =0
virtual int line() const
QVector< KTextEditor::Range > search(const QString &pattern, const KTextEditor::Range &inputRange, bool backwards=false)
Search for the regular expression regexp inside the range inputRange.
Definition: kateregexpsearch.cpp:201
virtual int lineLength(int line) const =0
Cursor & end()
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int column() const
KatePlainTextSearch(KTextEditor::Document *document, Qt::CaseSensitivity caseSensitivity, bool wholeWords)
Definition: kateplaintextsearch.cpp:37
virtual int lines() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.