KDECore
kmacroexpander.cpp
Go to the documentation of this file.
156 KMacroMapExpander<QChar,VT>::expandEscapedMacro( const QString &str, int pos, QStringList &ret )
191 KMacroMapExpander<QString,VT>::expandPlainMacro( const QString &str, int pos, QStringList &ret )
211 KMacroMapExpander<QString,VT>::expandEscapedMacro( const QString &str, int pos, QStringList &ret )
346 QString expandMacrosShellQuote( const QString &ostr, const QHash<QString,QString> &map, QChar c )
350 QString expandMacrosShellQuote( const QString &ostr, const QHash<QChar,QStringList> &map, QChar c )
354 QString expandMacrosShellQuote( const QString &ostr, const QHash<QString,QStringList> &map, QChar c )
void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void expandMacros(QString &str)
Perform safe macro expansion (substitution) on a string.
Definition: kmacroexpander.cpp:50
Abstract base class for the worker classes behind the KMacroExpander namespace and the KCharMacroExpa...
Definition: kmacroexpander.h:41
virtual bool expandMacro(QChar chr, QStringList &ret)=0
Return substitution list ret for single-character macro chr.
static QStringList & operator+=(QStringList &s, const QString &n)
Definition: kmacroexpander.cpp:112
bool expandMacrosShellQuote(QString &str, int &pos)
Perform safe macro expansion (substitution) on a string for use in shell commands.
Definition: kmacroexpander_unix.cpp:48
virtual int expandEscapedMacro(const QString &str, int pos, QStringList &ret)
Definition: kmacroexpander.cpp:255
const_iterator constFind(const Key &key) const
QString join(const QString &separator) const
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:91
Definition: kmacroexpander_p.h:27
Definition: ksycocafactory.h:28
virtual int expandEscapedMacro(const QString &str, int pos, QStringList &ret)
Definition: kmacroexpander.cpp:285
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:88
virtual int expandPlainMacro(const QString &str, int pos, QStringList &ret)
Definition: kmacroexpander.cpp:247
virtual bool expandMacro(const QString &str, QStringList &ret)=0
Return substitution list ret for string macro str.
ushort unicode() const
QString TexpandMacros(const QString &ostr, const QHash< KT, VT > &map, QChar c)
Definition: kmacroexpander.cpp:318
QString expandMacros(const QString &ostr, const QHash< QChar, QString > &map, QChar c)
Perform safe macro expansion (substitution) on a string.
Definition: kmacroexpander.cpp:340
virtual int expandPlainMacro(const QString &str, int pos, QStringList &ret)
Definition: kmacroexpander.cpp:270
QString & replace(int position, int n, QChar after)
const QChar * unicode() const
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:342
QString mid(int position, int n) const
QString TexpandMacrosShellQuote(const QString &ostr, const QHash< KT, VT > &map, QChar c)
Definition: kmacroexpander.cpp:328
int length() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.