KCoreAddons
kmacroexpander.cpp
132int KMacroMapExpander<QChar, VT>::expandPlainMacro(const QString &str, int pos, QStringList &ret)
143int KMacroMapExpander<QChar, VT>::expandEscapedMacro(const QString &str, int pos, QStringList &ret)
181int KMacroMapExpander<QString, VT>::expandPlainMacro(const QString &str, int pos, QStringList &ret)
202int KMacroMapExpander<QString, VT>::expandEscapedMacro(const QString &str, int pos, QStringList &ret)
365QString expandMacrosShellQuote(const QString &ostr, const QHash<QChar, QStringList> &map, QChar c)
373QString expandMacrosShellQuote(const QString &ostr, const QHash<QString, QStringList> &map, QChar c)
int expandEscapedMacro(const QString &str, int pos, QStringList &ret) override
Definition kmacroexpander.cpp:250
virtual bool expandMacro(QChar chr, QStringList &ret)=0
Return substitution list ret for single-character macro chr.
int expandPlainMacro(const QString &str, int pos, QStringList &ret) override
Definition kmacroexpander.cpp:242
Abstract base class for the worker classes behind the KMacroExpander namespace and the KCharMacroExpa...
Definition kmacroexpander.h:32
void expandMacros(QString &str)
Perform safe macro expansion (substitution) on a string.
Definition kmacroexpander.cpp:31
virtual int expandPlainMacro(const QString &str, int pos, QStringList &ret)
This function is called for every single char within the string if the escape char is QChar::null.
Definition kmacroexpander.cpp:72
virtual int expandEscapedMacro(const QString &str, int pos, QStringList &ret)
This function is called every time the escape char is found if it is not QChar::null.
Definition kmacroexpander.cpp:78
bool expandMacrosShellQuote(QString &str, int &pos)
Perform safe macro expansion (substitution) on a string for use in shell commands.
Definition kmacroexpander_unix.cpp:77
int expandEscapedMacro(const QString &str, int pos, QStringList &ret) override
Definition kmacroexpander.cpp:284
int expandPlainMacro(const QString &str, int pos, QStringList &ret) override
Definition kmacroexpander.cpp:266
virtual bool expandMacro(const QString &str, QStringList &ret)=0
Return substitution list ret for string macro str.
KDB_EXPORT bool isIdentifier(const QString &s)
A group of functions providing macro expansion (substitution) in strings, optionally with quoting app...
Definition kmacroexpander.cpp:344
QString expandMacros(const QString &ostr, const QHash< QChar, QString > &map, QChar c)
Perform safe macro expansion (substitution) on a string.
Definition kmacroexpander.cpp:345
QString expandMacrosShellQuote(const QString &ostr, const QHash< QChar, QString > &map, QChar c)
Perform safe macro expansion (substitution) on a string for use in shell commands.
Definition kmacroexpander.cpp:349
char16_t & unicode()
void clear()
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
const QChar * unicode() const const
QString join(QChar separator) const const
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.