Qt 4.8
|
Implements the function fn:replace()
.
More...
#include <qpatternmatchingfns_p.h>
Private Functions | |
QString | parseReplacement (const int captureCount, const DynamicContext::Ptr &context) const |
Static Private Functions | |
static QString | errorAtEnd (const char ch) |
Centralizes the translation string. More... | |
Properties | |
QString | m_replacementString |
Implements the function fn:replace()
.
Definition at line 91 of file qpatternmatchingfns_p.h.
ReplaceFN::ReplaceFN | ( | ) |
Definition at line 72 of file qpatternmatchingfns.cpp.
|
virtual |
Overridden to attempt to pre-compile the replacement string.
Reimplemented from QPatternist::PatternPlatform.
Definition at line 176 of file qpatternmatchingfns.cpp.
|
inlinestaticprivate |
Centralizes the translation string.
Definition at line 92 of file qpatternmatchingfns.cpp.
Referenced by parseReplacement().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 76 of file qpatternmatchingfns.cpp.
|
private |
Reads the string in the third argument and converts it to a a QRegExp compatible replacement string, containing sub-group references and so forth.
Definition at line 101 of file qpatternmatchingfns.cpp.
Referenced by compress(), and evaluateSingleton().
|
private |
Definition at line 114 of file qpatternmatchingfns_p.h.
Referenced by compress(), and evaluateSingleton().