Kate
katematch.cpp
Go to the documentation of this file.
34 KTextEditor::Range KateMatch::searchText(const KTextEditor::Range &range, const QString &pattern)
42 KTextEditor::Range KateMatch::replace(const QString &replacement, bool blockMode, int replacementCounter)
48 const QString finalReplacement = usePlaceholders ? buildReplacement(replacement, blockMode, replacementCounter)
52 KTextEditor::MovingRange *const afterReplace = m_document->newMovingRange(range(), KTextEditor::MovingRange::ExpandLeft | KTextEditor::MovingRange::ExpandRight);
85 QString KateMatch::buildReplacement(const QString &replacement, bool blockMode, int replacementCounter) const {
static QString buildReplacement(const QString &text, const QStringList &capturedTexts, int replacementCounter)
Returns a modified version of text where.
Definition: kateregexpsearch.cpp:537
virtual KTextEditor::MovingRange * newMovingRange(const KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors=KTextEditor::MovingRange::DoNotExpand, KTextEditor::MovingRange::EmptyBehavior emptyBehavior=KTextEditor::MovingRange::AllowEmpty)
Create a new moving range for this document.
Definition: katedocument.cpp:4742
KTextEditor::Range replace(const QString &replacement, bool blockMode, int replacementCounter=1)
Definition: katematch.cpp:42
virtual bool isValid() const
virtual bool replaceText(const KTextEditor::Range &range, const QString &s, bool block=false)
Definition: katedocument.cpp:4687
static Range invalid()
bool onSingleLine() const
Definition: katedocument.h:74
virtual QVector< KTextEditor::Range > searchText(const KTextEditor::Range &range, const QString &pattern, const KTextEditor::Search::SearchOptions options)
Definition: katedocument.cpp:1387
virtual QString text(const KTextEditor::Range &range, bool blockwise=false) const
Definition: katedocument.cpp:337
KateMatch(KateDocument *document, KTextEditor::Search::SearchOptions options)
Definition: katematch.cpp:26
bool isEmpty() const
KTextEditor::Range searchText(const KTextEditor::Range &range, const QString &pattern)
Definition: katematch.cpp:34
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.