KMacroExpanderBase Class Reference
Abstract base class for the worker classes behind the KMacroExpander namespace. More...
#include <kmacroexpander.h>
Collaboration diagram for KMacroExpanderBase:

| Public Member Functions | |
| KMacroExpanderBase (QChar c= '%') | |
| virtual | ~KMacroExpanderBase () | 
| void | expandMacros (QString &str) | 
| bool | expandMacrosShellQuote (QString &str, uint &pos) | 
| bool | expandMacrosShellQuote (QString &str) | 
| void | setEscapeChar (QChar c) | 
| QChar | escapeChar () const | 
| Protected Member Functions | |
| virtual int | expandPlainMacro (const QString &str, uint pos, QStringList &ret) | 
| virtual int | expandEscapedMacro (const QString &str, uint pos, QStringList &ret) | 
Detailed Description
Abstract base class for the worker classes behind the KMacroExpander namespace.
Definition at line 36 of file kmacroexpander.h.
Constructor & Destructor Documentation
| 
 | 
| Constructor. 
 
 Definition at line 28 of file kmacroexpander.cpp. | 
| 
 | 
| Destructor. 
 Definition at line 33 of file kmacroexpander.cpp. | 
Member Function Documentation
| 
 | 
| Perform safe macro expansion (substitution) on a string. 
 
 Definition at line 49 of file kmacroexpander.cpp. References expandEscapedMacro(), expandPlainMacro(), QStringList::join(), QString::length(), QString::replace(), and QString::unicode(). | 
| 
 | 
| Same as above, but always starts at position 0, and unmatched closing parens and braces are treated as errors. 
 Definition at line 280 of file kmacroexpander.cpp. References QString::length(). | 
| 
 | 
| Set the macro escape character. 
 
 Definition at line 38 of file kmacroexpander.cpp. | 
| 
 | 
| Obtain the macro escape character. 
 
 Definition at line 44 of file kmacroexpander.cpp. | 
| 
 | ||||||||||||||||
| This function is called for every single char within the string if the escape char is QChar::null. 
It should determine whether the string starting at  
 
 Definition at line 286 of file kmacroexpander.cpp. Referenced by expandMacros(). | 
| 
 | ||||||||||||||||
| This function is called every time the escape char is found if it is not QChar::null. 
It should determine whether the string starting at  
 
 Definition at line 289 of file kmacroexpander.cpp. Referenced by expandMacros(). | 
The documentation for this class was generated from the following files:

