96 QtXmlPatterns::tr(
"%1 and %2 match the start and end of a line.")
102 QtXmlPatterns::tr(
"Matches are case insensitive")));
106 QtXmlPatterns::tr(
"Whitespace characters are removed, except when they appear " 107 "in character classes")));
114 m_flagsPosition(flagsPosition)
137 flags =
parseFlags(flagsOp->evaluateSingleton(context).stringValue(), context);
155 return retvalPattern;
185 context->error(
QLatin1String(
"We don't want to hang infinitely on K2-MatchesFunc-9, " 191 QString rewrittenPattern(patternP);
206 context->error(QtXmlPatterns::tr(
"%1 is an invalid regular expression pattern: %2")
221 const int len = flags.
length();
224 for(
int i = 0; i < len; ++i)
227 const Flag specified = flagDescrs.
value(flag).flag;
236 QString message(QtXmlPatterns::tr(
"%1 is an invalid flag for regular expressions. Valid flags are:")
251 message.
append(
it.value().description);
Expression::List m_operands
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
#define QT_END_NAMESPACE
This macro expands to.
const QChar at(int i) const
Returns the character at the given index position in the string.
The QRegExp class provides pattern matching using regular expressions.
QString formatKeyword(const QString &keyword)
#define it(className, varName)
QString errorString() const
Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns...
QString & replace(int i, int len, QChar after)
int length() const
Returns the number of characters in this string.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool testFlag(Enum f) const
Returns true if the flag is set, otherwise false.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
PatternPlatform::Flag flag
The QChar class provides a 16-bit Unicode character.
const T value(const Key &key) const
Returns the value associated with the key.
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
bool isValid() const
Returns true if the regular expression is valid; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
PatternFlag(const PatternPlatform::Flag opt, const QString &descr)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static Hash flagDescriptions()
const T & at(int i) const
Returns the item at index position i in the list.
The namespace for the internal API of QtXmlPatterns.
QString stringValue() const
Returns the string value of this Item.
T value(int i) const
Returns the value at index position i in the list.
Used internally by PatternPlatform and describes a flag that affects how a pattern is treated...
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
QString & append(QChar c)
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
virtual QExplicitlySharedDataPointer< DynamicContext > dynamicContext() const =0
QHash< QChar, PatternFlag > Hash
static QTestResult::TestLocation location
static QString formatExpression(const QString &expr)
void setCaseSensitivity(Qt::CaseSensitivity cs)
Sets case sensitive matching to cs.
static const KeyPair *const end
bool is(const ID id) const
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Base class for all instances that represents something at a certain location.