65 Item item((*it)->evaluateSingleton(context));
88 separator = isep.stringValue();
92 result += current.stringValue();
126 const QString str(item.stringValue());
138 length = str.length() - startingLoc;
148 if(startingLoc > startingLoc + length)
154 length = length + startingLoc;
206 static_cast<QString::NormalizationForm>(normForm)));
239 if(strRepr.isEmpty())
252 context->
error(QtXmlPatterns::tr(
"The normalization form %1 is " 253 "unsupported. The supported forms are " 254 "%2, %3, %4, and %5, and none, i.e. " 255 "the empty string (no normalization).")
295 const QString arg(item.stringValue());
297 if(mapString.isEmpty())
301 const int transLen = transString.
length();
302 const int argLen = arg.length();
308 for(
int i = 0; i < argLen; ++i)
310 const QChar argCh(arg.at(i));
311 const int mapPos = mapString.indexOf(argCh);
315 result[outI] = argCh;
319 else if(mapPos >= transLen)
322 const QChar transCh(transString.at(mapPos));
327 result[outI] = transCh;
336 const QByteArray &includeChars) : m_excludeChars(excludeChars),
337 m_includeChars(includeChars)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Expression::List m_operands
static QByteArray toPercentEncoding(const QString &, const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray())
Returns an encoded copy of input.
#define QT_END_NAMESPACE
This macro expands to.
static QString fromAscii(const char *, int size=-1)
Returns a QString initialized with the first size characters from the string str. ...
NormalizationForm
This enum describes the various normalized forms of Unicode text.
QString formatKeyword(const QString &keyword)
#define it(className, varName)
const QByteArray m_includeChars
The QByteArray class provides an array of bytes.
int length() const
Returns the number of characters in this string.
QString toUpper() const Q_REQUIRED_RESULT
Returns an uppercase copy of the string.
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
void removeLast()
Removes the last item in the list.
Item toItem(const QExplicitlySharedDataPointer< T > atomicValue)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
static const char *const exclude
The QString class provides a Unicode character string.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
static const Item IntegerZero
static const char *const include
static Item fromValue(const xsInteger num)
The QChar class provides a 16-bit Unicode character.
static AtomicString::Ptr fromValue(const QString &value)
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
void reserve(int size)
Attempts to allocate memory for at least size characters.
friend class const_iterator
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
void truncate(int pos)
Truncates the string at the given position index.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
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.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Cardinality cardinality() const =0
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Q_CORE_EXPORT bool qIsNaN(double d)
Returns true if the double {d} is not a number (NaN).
T & first()
Returns a reference to the first item in the list.
Provides functionality for encoding strings. Sub-classed by various function implementations.
virtual SequenceType::Ptr staticType() const =0
QString::NormalizationForm m_normForm
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
int determineNormalizationForm(const DynamicContext::Ptr &context) const
Represents an item in the XPath 2.0 Data Model.
Base class for all numeric values.
static const char *const include
virtual QExplicitlySharedDataPointer< DynamicContext > dynamicContext() const =0
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Contains class Numeric. This file was originally called qnumeric_p.h, but various build systems canno...
T & last()
Returns a reference to the last item in the list.
static const AtomicValue::Ptr EmptyString
virtual xsDouble toDouble() const =0
static Numeric::Ptr fromValue(const xsDouble num)
static const char *const exclude
const QByteArray m_excludeChars
static const KeyPair *const end
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
EncodeString(const QByteArray &excludeChars, const QByteArray &includeChars)
bool is(const ID id) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Contains classes implementing the functions found in XQuery 1.0 and XPath 2.0 Functions and Operators...