KTextEditor
kateregexpsearch.h
26 * I measured that, if you create it 20k times to replace for example " " in a document, that takes seconds on a modern machine!
52 * \param options QRegularExpression pattern options, we will internally add QRegularExpression::UseUnicodePropertiesOption
82 static QString buildReplacement(const QString &text, const QStringList &capturedTexts, int replacementCounter);
90 * \param replacementCounter value for replacement counter (only used when replacementGoodies == true)
95 static QString buildReplacement(const QString &text, const QStringList &capturedTexts, int replacementCounter, bool replacementGoodies);
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
QList< KTextEditor::Range > search(const QString &pattern, KTextEditor::Range inputRange, bool backwards=false, QRegularExpression::PatternOptions options=QRegularExpression::NoPatternOption)
Search for the regular expression pattern inside the range inputRange.
Definition kateregexpsearch.cpp:169
static QString escapePlaintext(const QString &text)
Returns a modified version of text where escape sequences are resolved, e.g.
Definition kateregexpsearch.cpp:492
static QString buildReplacement(const QString &text, const QStringList &capturedTexts, int replacementCounter)
Returns a modified version of text where.
Definition kateregexpsearch.cpp:497
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
typedef PatternOptions
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.