KCharMacroExpander Class Reference
#include <kmacroexpander.h>
Inheritance diagram for KCharMacroExpander:

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 224 of file kmacroexpander.h.
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 |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 231 of file kmacroexpander.h. |
Member Function Documentation
|
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 443 of file kmacroexpander.cpp. |
|
Return substitution list
|
|
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 435 of file kmacroexpander.cpp. |
The documentation for this class was generated from the following files: