115 const Item val(
cast(item, context));
135 else if(prepareCasting(context, sourceType))
165 while(!ancestor.isNull())
170 while(!attribute.isNull())
174 if(attribute.name() == xmlLang)
176 if(isLangMatch(attribute.stringValue(), lang))
182 attribute = attributes->next();
185 ancestor = ancestors->next();
const QString & stringForLocalName(const QXmlName::LocalNameCode code) const
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Contains classes implementing the functions found in XQuery 1.0 and XPath 2.0 Functions and Operators...
Expression::List m_operands
virtual NamePool::Ptr namePool() const =0
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
#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.
static const AtomicValue::Ptr BooleanTrue
virtual bool hasError() const
virtual SequenceType::Ptr staticType() const
int length() const
Returns the number of characters in this string.
static const AtomicValue::Ptr EmptyAnyURI
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Item toItem(const QExplicitlySharedDataPointer< T > atomicValue)
static const AtomicValue::Ptr DoubleNaN
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
The QString class provides a Unicode character string.
static AtomicString::Ptr fromValue(const QString &value)
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Base class for all classes representing atomic values.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
const T & at(int i) const
Returns the item at index position i in the list.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
The namespace for the internal API of QtXmlPatterns.
static const AtomicType::Ptr xsDouble
virtual Cardinality cardinality() const =0
static const AnyNodeType::Ptr node
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
T & first()
Returns a reference to the first item in the list.
virtual SequenceType::Ptr staticType() const =0
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
int compare(const QString &s) const
const QXmlNodeModelIndex & asNode() const
Represents an item in the XPath 2.0 Data Model.
QXmlNodeModelIndex root() const
Cardinality toWithoutMany() const
const QString & stringForNamespace(const QXmlName::NamespaceCode code) const
static const AtomicValue::Ptr EmptyString
static Cardinality exactlyOne()
virtual ItemType::Ptr itemType() const =0
static const AtomicValue::Ptr BooleanFalse
QString toLexical(const QXmlName qName) const
static bool isLangMatch(const QString &candidate, const QString &toMatch)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
static AnyURI::Ptr fromValue(const QString &value)