52 #ifndef Patternist_NCNameConstructor_H 53 #define Patternist_NCNameConstructor_H 57 #include "private/qxmlutils_p.h" 97 template<
typename TReportContext,
102 const TReportContext &context,
113 return QtXmlPatterns::tr(
"The target name in a processing instruction " 114 "cannot be %1 in any combination of upper " 115 "and lower case. Therefore, %2 is invalid.")
120 template<
typename TReportContext,
125 const TReportContext &context,
133 context->error(
nameIsXML(lexicalTarget), NameIsXML, r);
137 context->error(QtXmlPatterns::tr(
"%1 is not a valid target name in " 138 "a processing instruction. It " 139 "must be a %2 value, e.g. %3.")
#define QT_END_NAMESPACE
This macro expands to.
static const QString nameIsXML(const QString &lexTarget)
QString formatKeyword(const QString &keyword)
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
virtual SequenceType::List expectedOperandTypes() const
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Ensures the lexical space of the string value of the Item returned from its child Expression is an NC...
#define QT_BEGIN_NAMESPACE
This macro expands to.
NCNameConstructor(const Expression::Ptr &source)
The namespace for the internal API of QtXmlPatterns.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
int compare(const QString &s) const
Represents an item in the XPath 2.0 Data Model.
static void validateTargetName(const QString &lexicalNCName, const TReportContext &context, const SourceLocationReflection *const r)
virtual Item evaluateSingleton(const DynamicContext::Ptr &) const
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
static const AtomicType::Ptr xsNCName
virtual SequenceType::Ptr staticType() const
static bool isNCName(const QStringRef &ncName)
Determines whether c is a valid instance of production [4]NCName in the XML 1.0 Namespaces specificat...
The QList class is a template class that provides lists.
Base class for all instances that represents something at a certain location.
Base class for expressions that has exactly one operand.