kmacroexpander.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _KMACROEXPANDER_H
00023 #define _KMACROEXPANDER_H
00024
00025 #include <qstringlist.h>
00026 #include <qstring.h>
00027 #include <qmap.h>
00028
00036 class KMacroExpanderBase {
00037
00038 public:
00043 KMacroExpanderBase( QChar c = '%' );
00044
00048 virtual ~KMacroExpanderBase();
00049
00055 void expandMacros( QString &str );
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 bool expandMacrosShellQuote( QString &str, uint &pos );
00086
00091 bool expandMacrosShellQuote( QString &str );
00092
00097 void setEscapeChar( QChar c );
00098
00103 QChar escapeChar() const;
00104
00105 protected:
00119 virtual int expandPlainMacro( const QString &str, uint pos, QStringList &ret );
00120
00135 virtual int expandEscapedMacro( const QString &str, uint pos, QStringList &ret );
00136
00137 private:
00138 QChar escapechar;
00139 };
00140
00146 namespace KMacroExpander {
00167 QString expandMacros( const QString &str, const QMap<QChar,QString> &map, QChar c = '%' );
00168
00192 QString expandMacrosShellQuote( const QString &str, const QMap<QChar,QString> &map, QChar c = '%' );
00193
00217 QString expandMacros( const QString &str, const QMap<QString,QString> &map, QChar c = '%' );
00218
00245 QString expandMacrosShellQuote( const QString &str, const QMap<QString,QString> &map, QChar c = '%' );
00246
00251 QString expandMacros( const QString &str, const QMap<QChar,QStringList> &map, QChar c = '%' );
00252 QString expandMacros( const QString &str, const QMap<QString,QStringList> &map, QChar c = '%' );
00253
00254
00255
00256
00257
00258
00259
00260 QString expandMacrosShellQuote( const QString &str, const QMap<QChar,QStringList> &map, QChar c = '%' );
00261 QString expandMacrosShellQuote( const QString &str, const QMap<QString,QStringList> &map, QChar c = '%' );
00262 }
00263
00264 #endif
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 21 18:42:57 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003