65 ns = paramURI.stringValue();
69 context->
error(QtXmlPatterns::tr(
"%1 is an invalid %2").arg(
formatData(paramQName),
86 context->
error(QtXmlPatterns::tr(
87 "If the first argument is the empty sequence or " 88 "a zero-length string (no namespace), a prefix " 89 "cannot be specified. Prefix %1 was specified.")
107 const QString strName(itemName.stringValue());
178 const int len = nbs.
size();
183 for(
int i = 0; i < len; ++i)
const QString & stringForLocalName(const QXmlName::LocalNameCode code) const
Expression::List m_operands
virtual NamePool::Ptr namePool() const =0
#define QT_END_NAMESPACE
This macro expands to.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
QString formatKeyword(const QString &keyword)
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
Item toItem(const QExplicitlySharedDataPointer< T > atomicValue)
QAbstractXmlForwardIterator< T >::Ptr makeListIterator(const QList< T > &list)
static QXmlName expandQName(const QString &lexicalQName, const TReportContext &context, const NamespaceResolver::Ptr &nsResolver, const SourceLocationReflection *const r, const bool asForAttribute=false)
The QString class provides a Unicode character string.
static AtomicString::Ptr fromValue(const QString &value)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
QXmlName::PrefixCode allocatePrefix(const QString &prefix)
const QString & stringForPrefix(const QXmlName::PrefixCode code) const
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
static QNameValue::Ptr fromValue(const NamePool::Ptr &np, const QXmlName name)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The namespace for the internal API of QtXmlPatterns.
QString stringValue() const
Returns the string value of this Item.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
static QString formatData(const QString &data)
A NamespaceResolver that use a QXmlNodeModelIndex's in-scope namespace bindings for resolving namespa...
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
T & first()
Returns a reference to the first item in the list.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
Represents an item in the XPath 2.0 Data Model.
static const AtomicType::Ptr xsQName
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Implements the value instance of the xs:QName type.
T & last()
Returns a reference to the last item in the list.
const QString & stringForNamespace(const QXmlName::NamespaceCode code) const
static const AtomicValue::Ptr EmptyString
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
static void splitQName(const QString &qName, QString &prefix, QString &localName)
Splits qName into localName and prefix.
QExplicitlySharedDataPointer< DynamicContext > Ptr
static bool isQName(const QString &qName)
int size() const
Returns the number of items in the vector.
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...
static AnyURI::Ptr fromValue(const QString &value)