61 const int len = input.
length();
63 for(
int i = 0; i < len; ++i)
84 context->
error(QtXmlPatterns::tr(
"The data of a processing instruction cannot contain the string %1").arg(
formatData(
"?>")),
141 return visitor->visit(
this);
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QXmlName evaluateTardata(const DynamicContext::Ptr &context) const
virtual SequenceType::List expectedOperandTypes() const
virtual NamePool::Ptr namePool() const =0
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
virtual Properties properties() const
virtual void addNodeModel(const QAbstractXmlNodeModel::Ptr &nm)=0
A push interface for the XPath Data Model. Similar to SAX's ContentHandler.
#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.
int length() const
Returns the number of characters in this string.
static QString leftTrimmed(const QString &input)
static const SequenceType::Ptr ExactlyOneString
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
virtual SequenceType::Ptr staticType() const
bool isSpace() const
Returns true if the character is a separator character (Separator_* categories); otherwise returns fa...
static const SequenceType::Ptr ZeroOrOneString
void append(const T &t)
Inserts value at the end of the list.
virtual void evaluateToSequenceReceiver(const DynamicContext::Ptr &context) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
The namespace for the internal API of QtXmlPatterns.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
virtual void processingInstruction(const QXmlName name, const QString &value)=0
static QString formatData(const QString &data)
QString data(const DynamicContext::Ptr &context) const
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
static const SequenceType::Ptr ExactlyOneProcessingInstruction
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
Represents an item in the XPath 2.0 Data Model.
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
Expression::Ptr m_operand1
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
virtual NodeBuilder::Ptr nodeBuilder(const QUrl &baseURI) const =0
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
virtual QAbstractXmlReceiver * outputReceiver() const =0
Expression::Ptr m_operand2
ProcessingInstructionConstructor(const Expression::Ptr &operand1, const Expression::Ptr &operand2)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
The QList class is a template class that provides lists.
Base class for expressions that has exactly two operands.