KCharMacroExpander Class Reference
Abstract base class for single char macro substitutors. More...
#include <kmacroexpander.h>
Inheritance diagram for KCharMacroExpander:

Public Member Functions | |
KCharMacroExpander (QChar c= '%') | |
Protected Member Functions | |
virtual int | expandPlainMacro (const QString &str, uint pos, QStringList &ret) |
virtual int | expandEscapedMacro (const QString &str, uint pos, QStringList &ret) |
virtual bool | expandMacro (QChar chr, QStringList &ret)=0 |
Detailed Description
Abstract base class for single char macro substitutors.Use this instead of the functions in the KMacroExpander namespace if speculatively pre-filling the substitution map would be too expensive.
See KWordMacroExpander for a sample application.
- Since:
- 3.3
- Author:
- Oswald Buddenhagen <ossi@kde.org>
Definition at line 223 of file kmacroexpander.h.
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
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
Reimplemented from KMacroExpanderBase. Definition at line 434 of file kmacroexpander.cpp. References expandMacro(). |
|
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
Reimplemented from KMacroExpanderBase. Definition at line 442 of file kmacroexpander.cpp. References KMacroExpanderBase::escapeChar(), and expandMacro(). |
|
Return substitution list
Referenced by expandEscapedMacro(), and expandPlainMacro(). |
The documentation for this class was generated from the following files: