Refactor qxmlstream_p.h
Pull the file apart, so that the parts generated from qxmlstream.g are separated from the definition of the private class. This will in the future simplify maintenance and refactoring. Change-Id: I4a9c1bb1e377dee1e6d3b9aa9b0dfa64c5806c45 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
parent
2fa660f436
commit
6eb1cdd1c6
@ -125,6 +125,8 @@ qt_add_module(Core
|
||||
serialization/qjsonwriter.cpp serialization/qjsonwriter_p.h
|
||||
serialization/qtextstream.cpp serialization/qtextstream.h serialization/qtextstream_p.h
|
||||
serialization/qxmlstream.cpp serialization/qxmlstream.h serialization/qxmlstream_p.h
|
||||
serialization/qxmlstreamgrammar.cpp serialization/qxmlstreamgrammar_p.h
|
||||
serialization/qxmlstreamparser_p.h
|
||||
serialization/qxmlutils.cpp serialization/qxmlutils_p.h
|
||||
statemachine/qabstractstate.cpp statemachine/qabstractstate.h statemachine/qabstractstate_p.h
|
||||
statemachine/qabstracttransition.cpp statemachine/qabstracttransition.h statemachine/qabstracttransition_p.h
|
||||
|
@ -148,6 +148,8 @@ qt_add_module(Core
|
||||
serialization/qjsonwriter.cpp serialization/qjsonwriter_p.h
|
||||
serialization/qtextstream.cpp serialization/qtextstream.h serialization/qtextstream_p.h
|
||||
serialization/qxmlstream.cpp serialization/qxmlstream.h serialization/qxmlstream_p.h
|
||||
serialization/qxmlstreamgrammar.cpp serialization/qxmlstreamgrammar_p.h
|
||||
serialization/qxmlstreamparser_p.h
|
||||
serialization/qxmlutils.cpp serialization/qxmlutils_p.h
|
||||
statemachine/qabstractstate.cpp statemachine/qabstractstate.h statemachine/qabstractstate_p.h
|
||||
statemachine/qabstracttransition.cpp statemachine/qabstracttransition.h statemachine/qabstracttransition_p.h
|
||||
|
@ -70,11 +70,11 @@ private:
|
||||
#include <private/qmemory_p.h>
|
||||
|
||||
#include <iterator>
|
||||
#include "qxmlstream_p.h"
|
||||
#include "qxmlstreamparser_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#include "qxmlstream_p.h"
|
||||
|
||||
enum { StreamEOF = ~0U };
|
||||
|
||||
namespace {
|
||||
|
@ -1,6 +1,6 @@
|
||||
----------------------------------------------------------------------------
|
||||
--
|
||||
-- Copyright (C) 2016 The Qt Company Ltd.
|
||||
-- Copyright (C) 2020 The Qt Company Ltd.
|
||||
-- Contact: https://www.qt.io/licensing/
|
||||
--
|
||||
-- This file is part of the QtCore module of the Qt Toolkit.
|
||||
@ -37,9 +37,8 @@
|
||||
--
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
%parser QXmlStreamReader_Table
|
||||
|
||||
%merged_output qxmlstream_p.h
|
||||
%parser QXmlStreamGrammar
|
||||
%impl qxmlstreamparser_p.h
|
||||
|
||||
%expect 4
|
||||
|
||||
@ -146,407 +145,81 @@
|
||||
|
||||
%start document
|
||||
|
||||
/./****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2020 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtQml module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
/.
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is automatically generated from qxmlstream.g.
|
||||
// Changes should be made to that file, not here. Any change to this file will
|
||||
// be lost!
|
||||
//
|
||||
// To regenerate this file, run:
|
||||
// qlalr --no-debug --no-lines --qt qxmlstream.g
|
||||
//
|
||||
|
||||
#include <QtCore/private/qglobal_p.h>
|
||||
#include <qxmlstream.h>
|
||||
#include "qxmlstream_p.h"
|
||||
#include "qxmlutils_p.h"
|
||||
#include <qstringconverter.h>
|
||||
|
||||
template <typename T> class QXmlStreamSimpleStack {
|
||||
T *data;
|
||||
qsizetype tos, cap;
|
||||
public:
|
||||
inline QXmlStreamSimpleStack():data(nullptr), tos(-1), cap(0){}
|
||||
inline ~QXmlStreamSimpleStack(){ if (data) free(data); }
|
||||
#include <memory>
|
||||
|
||||
inline void reserve(qsizetype extraCapacity) {
|
||||
if (tos + extraCapacity + 1 > cap) {
|
||||
cap = qMax(tos + extraCapacity + 1, cap << 1 );
|
||||
void *ptr = realloc(static_cast<void *>(data), cap * sizeof(T));
|
||||
data = reinterpret_cast<T *>(ptr);
|
||||
Q_CHECK_PTR(data);
|
||||
}
|
||||
}
|
||||
#ifndef QXMLSTREAMPARSER_P_H
|
||||
#define QXMLSTREAMPARSER_P_H
|
||||
|
||||
inline T &push() { reserve(1); return data[++tos]; }
|
||||
inline T &rawPush() { return data[++tos]; }
|
||||
inline const T &top() const { return data[tos]; }
|
||||
inline T &top() { return data[tos]; }
|
||||
inline T &pop() { return data[tos--]; }
|
||||
inline T &operator[](qsizetype index) { return data[index]; }
|
||||
inline const T &at(qsizetype index) const { return data[index]; }
|
||||
inline qsizetype size() const { return tos + 1; }
|
||||
inline void resize(qsizetype s) { tos = s - 1; }
|
||||
inline bool isEmpty() const { return tos < 0; }
|
||||
inline void clear() { tos = -1; }
|
||||
|
||||
using const_iterator = const T*;
|
||||
using iterator = T*;
|
||||
T *begin() { return data; }
|
||||
const T *begin() const { return data; }
|
||||
const T *cbegin() const { return begin(); }
|
||||
T *end() { return data + size(); }
|
||||
const T *end() const { return data + size(); }
|
||||
const T *cend() const { return end(); }
|
||||
};
|
||||
|
||||
|
||||
class QXmlStream
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(QXmlStream)
|
||||
};
|
||||
|
||||
class QXmlStreamPrivateTagStack {
|
||||
public:
|
||||
struct NamespaceDeclaration
|
||||
{
|
||||
QStringRef prefix;
|
||||
QStringRef namespaceUri;
|
||||
};
|
||||
|
||||
struct Tag
|
||||
{
|
||||
QStringRef name;
|
||||
QStringRef qualifiedName;
|
||||
NamespaceDeclaration namespaceDeclaration;
|
||||
int tagStackStringStorageSize;
|
||||
qsizetype namespaceDeclarationsSize;
|
||||
};
|
||||
|
||||
|
||||
QXmlStreamPrivateTagStack();
|
||||
QXmlStreamSimpleStack<NamespaceDeclaration> namespaceDeclarations;
|
||||
QString tagStackStringStorage;
|
||||
int tagStackStringStorageSize;
|
||||
int initialTagStackStringStorageSize;
|
||||
bool tagsDone;
|
||||
|
||||
inline QStringRef addToStringStorage(const QStringRef &s) {
|
||||
return addToStringStorage(qToStringViewIgnoringNull(s));
|
||||
}
|
||||
inline QStringRef addToStringStorage(const QString &s) {
|
||||
return addToStringStorage(qToStringViewIgnoringNull(s));
|
||||
}
|
||||
QStringRef addToStringStorage(QStringView s)
|
||||
{
|
||||
int pos = tagStackStringStorageSize;
|
||||
int sz = s.size();
|
||||
if (pos != tagStackStringStorage.size())
|
||||
tagStackStringStorage.resize(pos);
|
||||
tagStackStringStorage.append(s.data(), sz);
|
||||
tagStackStringStorageSize += sz;
|
||||
return QStringRef(&tagStackStringStorage, pos, sz);
|
||||
}
|
||||
|
||||
QXmlStreamSimpleStack<Tag> tagStack;
|
||||
|
||||
|
||||
inline Tag &tagStack_pop() {
|
||||
Tag& tag = tagStack.pop();
|
||||
tagStackStringStorageSize = tag.tagStackStringStorageSize;
|
||||
namespaceDeclarations.resize(tag.namespaceDeclarationsSize);
|
||||
tagsDone = tagStack.isEmpty();
|
||||
return tag;
|
||||
}
|
||||
inline Tag &tagStack_push() {
|
||||
Tag &tag = tagStack.push();
|
||||
tag.tagStackStringStorageSize = tagStackStringStorageSize;
|
||||
tag.namespaceDeclarationsSize = namespaceDeclarations.size();
|
||||
return tag;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class QXmlStreamEntityResolver;
|
||||
#ifndef QT_NO_XMLSTREAMREADER
|
||||
class QXmlStreamReaderPrivate : public QXmlStreamReader_Table, public QXmlStreamPrivateTagStack{
|
||||
QXmlStreamReader *q_ptr;
|
||||
Q_DECLARE_PUBLIC(QXmlStreamReader)
|
||||
public:
|
||||
QXmlStreamReaderPrivate(QXmlStreamReader *q);
|
||||
~QXmlStreamReaderPrivate();
|
||||
void init();
|
||||
|
||||
QByteArray rawReadBuffer;
|
||||
QByteArray dataBuffer;
|
||||
uchar firstByte;
|
||||
qint64 nbytesread;
|
||||
QString readBuffer;
|
||||
int readBufferPos;
|
||||
QXmlStreamSimpleStack<uint> putStack;
|
||||
struct Entity {
|
||||
Entity() = default;
|
||||
Entity(const QString &name, const QString &value)
|
||||
: name(name), value(value), external(false), unparsed(false), literal(false),
|
||||
hasBeenParsed(false), isCurrentlyReferenced(false){}
|
||||
static inline Entity createLiteral(QLatin1String name, QLatin1String value)
|
||||
{ Entity result(name, value); result.literal = result.hasBeenParsed = true; return result; }
|
||||
QString name, value;
|
||||
uint external : 1;
|
||||
uint unparsed : 1;
|
||||
uint literal : 1;
|
||||
uint hasBeenParsed : 1;
|
||||
uint isCurrentlyReferenced : 1;
|
||||
};
|
||||
// these hash tables use a QStringView as a key to avoid creating QStrings
|
||||
// just for lookup. The keys are usually views into Entity::name and thus
|
||||
// are guaranteed to have the same lifetime as the referenced data:
|
||||
QHash<QStringView, Entity> entityHash;
|
||||
QHash<QStringView, Entity> parameterEntityHash;
|
||||
QXmlStreamSimpleStack<Entity *>entityReferenceStack;
|
||||
int entityExpansionLimit = 4096;
|
||||
int entityLength = 0;
|
||||
inline bool referenceEntity(Entity &entity) {
|
||||
if (entity.isCurrentlyReferenced) {
|
||||
raiseWellFormedError(QXmlStream::tr("Self-referencing entity detected."));
|
||||
return false;
|
||||
}
|
||||
// entityLength represents the amount of additional characters the
|
||||
// entity expands into (can be negative for e.g. &). It's used to
|
||||
// avoid DoS attacks through recursive entity expansions
|
||||
entityLength += entity.value.size() - entity.name.size() - 2;
|
||||
if (entityLength > entityExpansionLimit) {
|
||||
raiseWellFormedError(QXmlStream::tr("Entity expands to more characters than the entity expansion limit."));
|
||||
return false;
|
||||
}
|
||||
entity.isCurrentlyReferenced = true;
|
||||
entityReferenceStack.push() = &entity;
|
||||
injectToken(ENTITY_DONE);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
QIODevice *device;
|
||||
bool deleteDevice;
|
||||
QStringDecoder decoder;
|
||||
bool atEnd;
|
||||
|
||||
/*!
|
||||
\sa setType()
|
||||
*/
|
||||
QXmlStreamReader::TokenType type;
|
||||
QXmlStreamReader::Error error;
|
||||
QString errorString;
|
||||
QString unresolvedEntity;
|
||||
|
||||
qint64 lineNumber, lastLineStart, characterOffset;
|
||||
|
||||
|
||||
void write(const QString &);
|
||||
void write(const char *);
|
||||
|
||||
|
||||
QXmlStreamAttributes attributes;
|
||||
QStringRef namespaceForPrefix(const QStringRef &prefix);
|
||||
void resolveTag();
|
||||
void resolvePublicNamespaces();
|
||||
void resolveDtd();
|
||||
uint resolveCharRef(int symbolIndex);
|
||||
bool checkStartDocument();
|
||||
void startDocument();
|
||||
void parseError();
|
||||
void checkPublicLiteral(const QStringRef &publicId);
|
||||
|
||||
bool scanDtd;
|
||||
QStringRef lastAttributeValue;
|
||||
bool lastAttributeIsCData;
|
||||
struct DtdAttribute {
|
||||
QStringRef tagName;
|
||||
QStringRef attributeQualifiedName;
|
||||
QStringRef attributePrefix;
|
||||
QStringRef attributeName;
|
||||
QStringRef defaultValue;
|
||||
bool isCDATA;
|
||||
bool isNamespaceAttribute;
|
||||
};
|
||||
QXmlStreamSimpleStack<DtdAttribute> dtdAttributes;
|
||||
struct NotationDeclaration {
|
||||
QStringRef name;
|
||||
QStringRef publicId;
|
||||
QStringRef systemId;
|
||||
};
|
||||
QXmlStreamSimpleStack<NotationDeclaration> notationDeclarations;
|
||||
QXmlStreamNotationDeclarations publicNotationDeclarations;
|
||||
QXmlStreamNamespaceDeclarations publicNamespaceDeclarations;
|
||||
|
||||
struct EntityDeclaration {
|
||||
QStringRef name;
|
||||
QStringRef notationName;
|
||||
QStringRef publicId;
|
||||
QStringRef systemId;
|
||||
QStringRef value;
|
||||
bool parameter;
|
||||
bool external;
|
||||
inline void clear() {
|
||||
name.clear();
|
||||
notationName.clear();
|
||||
publicId.clear();
|
||||
systemId.clear();
|
||||
value.clear();
|
||||
parameter = external = false;
|
||||
}
|
||||
};
|
||||
QXmlStreamSimpleStack<EntityDeclaration> entityDeclarations;
|
||||
QXmlStreamEntityDeclarations publicEntityDeclarations;
|
||||
|
||||
QStringRef text;
|
||||
|
||||
QStringRef prefix, namespaceUri, qualifiedName, name;
|
||||
QStringRef processingInstructionTarget, processingInstructionData;
|
||||
QStringRef dtdName, dtdPublicId, dtdSystemId;
|
||||
QStringRef documentVersion, documentEncoding;
|
||||
uint isEmptyElement : 1;
|
||||
uint isWhitespace : 1;
|
||||
uint isCDATA : 1;
|
||||
uint standalone : 1;
|
||||
uint hasCheckedStartDocument : 1;
|
||||
uint normalizeLiterals : 1;
|
||||
uint hasSeenTag : 1;
|
||||
uint inParseEntity : 1;
|
||||
uint referenceToUnparsedEntityDetected : 1;
|
||||
uint referenceToParameterEntityDetected : 1;
|
||||
uint hasExternalDtdSubset : 1;
|
||||
uint lockEncoding : 1;
|
||||
uint namespaceProcessing : 1;
|
||||
|
||||
int resumeReduction;
|
||||
void resume(int rule);
|
||||
|
||||
inline bool entitiesMustBeDeclared() const {
|
||||
return (!inParseEntity
|
||||
&& (standalone
|
||||
|| (!referenceToUnparsedEntityDetected
|
||||
&& !referenceToParameterEntityDetected // Errata 13 as of 2006-04-25
|
||||
&& !hasExternalDtdSubset)));
|
||||
}
|
||||
|
||||
// qlalr parser
|
||||
int tos;
|
||||
int stack_size;
|
||||
struct Value {
|
||||
int pos;
|
||||
int len;
|
||||
int prefix;
|
||||
ushort c;
|
||||
};
|
||||
|
||||
Value *sym_stack;
|
||||
int *state_stack;
|
||||
inline void reallocateStack();
|
||||
inline Value &sym(int index) const
|
||||
{ return sym_stack[tos + index - 1]; }
|
||||
QString textBuffer;
|
||||
inline void clearTextBuffer() {
|
||||
if (!scanDtd) {
|
||||
textBuffer.resize(0);
|
||||
textBuffer.reserve(256);
|
||||
}
|
||||
}
|
||||
struct Attribute {
|
||||
Value key;
|
||||
Value value;
|
||||
};
|
||||
QXmlStreamSimpleStack<Attribute> attributeStack;
|
||||
|
||||
inline QStringRef symString(int index) {
|
||||
const Value &symbol = sym(index);
|
||||
return QStringRef(&textBuffer, symbol.pos + symbol.prefix, symbol.len - symbol.prefix);
|
||||
}
|
||||
QStringView symView(int index) const
|
||||
{
|
||||
const Value &symbol = sym(index);
|
||||
return QStringView(textBuffer.data() + symbol.pos, symbol.len).mid(symbol.prefix);
|
||||
}
|
||||
inline QStringRef symName(int index) {
|
||||
const Value &symbol = sym(index);
|
||||
return QStringRef(&textBuffer, symbol.pos, symbol.len);
|
||||
}
|
||||
inline QStringRef symString(int index, int offset) {
|
||||
const Value &symbol = sym(index);
|
||||
return QStringRef(&textBuffer, symbol.pos + symbol.prefix + offset, symbol.len - symbol.prefix - offset);
|
||||
}
|
||||
inline QStringRef symPrefix(int index) {
|
||||
const Value &symbol = sym(index);
|
||||
if (symbol.prefix)
|
||||
return QStringRef(&textBuffer, symbol.pos, symbol.prefix - 1);
|
||||
return QStringRef();
|
||||
}
|
||||
inline QStringRef symString(const Value &symbol) {
|
||||
return QStringRef(&textBuffer, symbol.pos + symbol.prefix, symbol.len - symbol.prefix);
|
||||
}
|
||||
inline QStringRef symName(const Value &symbol) {
|
||||
return QStringRef(&textBuffer, symbol.pos, symbol.len);
|
||||
}
|
||||
inline QStringRef symPrefix(const Value &symbol) {
|
||||
if (symbol.prefix)
|
||||
return QStringRef(&textBuffer, symbol.pos, symbol.prefix - 1);
|
||||
return QStringRef();
|
||||
}
|
||||
|
||||
inline void clearSym() { Value &val = sym(1); val.pos = textBuffer.size(); val.len = 0; }
|
||||
|
||||
|
||||
short token;
|
||||
uint token_char;
|
||||
|
||||
uint filterCarriageReturn();
|
||||
inline uint getChar();
|
||||
inline uint peekChar();
|
||||
inline void putChar(uint c) { putStack.push() = c; }
|
||||
inline void putChar(QChar c) { putStack.push() = c.unicode(); }
|
||||
void putString(QStringView s, qsizetype from = 0);
|
||||
void putStringLiteral(QStringView s);
|
||||
void putReplacement(QStringView s);
|
||||
void putReplacementInAttributeValue(QStringView s);
|
||||
uint getChar_helper();
|
||||
|
||||
bool scanUntil(const char *str, short tokenToInject = -1);
|
||||
bool scanString(const char *str, short tokenToInject, bool requireSpace = true);
|
||||
inline void injectToken(ushort tokenToInject) {
|
||||
putChar(int(tokenToInject) << 16);
|
||||
}
|
||||
|
||||
QString resolveUndeclaredEntity(const QString &name);
|
||||
void parseEntity(const QString &value);
|
||||
std::unique_ptr<QXmlStreamReaderPrivate> entityParser;
|
||||
|
||||
bool scanAfterLangleBang();
|
||||
bool scanPublicOrSystem();
|
||||
bool scanNData();
|
||||
bool scanAfterDefaultDecl();
|
||||
bool scanAttType();
|
||||
|
||||
|
||||
// scan optimization functions. Not strictly necessary but LALR is
|
||||
// not very well suited for scanning fast
|
||||
int fastScanLiteralContent();
|
||||
int fastScanSpace();
|
||||
int fastScanContentCharList();
|
||||
int fastScanName(int *prefix = nullptr);
|
||||
inline int fastScanNMTOKEN();
|
||||
|
||||
|
||||
bool parse();
|
||||
inline void consumeRule(int);
|
||||
|
||||
void raiseError(QXmlStreamReader::Error error, const QString& message = QString());
|
||||
void raiseWellFormedError(const QString &message);
|
||||
|
||||
QXmlStreamEntityResolver *entityResolver;
|
||||
|
||||
private:
|
||||
/*! \internal
|
||||
Never assign to variable type directly. Instead use this function.
|
||||
|
||||
This prevents errors from being ignored.
|
||||
*/
|
||||
inline void setType(const QXmlStreamReader::TokenType t)
|
||||
{
|
||||
if(type != QXmlStreamReader::Invalid)
|
||||
type = t;
|
||||
}
|
||||
};
|
||||
|
||||
bool QXmlStreamReaderPrivate::parse()
|
||||
{
|
||||
@ -1512,8 +1185,8 @@ attribute ::= qname space_opt EQ space_opt attribute_value;
|
||||
namespaceDeclaration.prefix.clear();
|
||||
|
||||
const QStringRef ns(symString(5));
|
||||
if(ns == QLatin1String("http://www.w3.org/2000/xmlns/") ||
|
||||
ns == QLatin1String("http://www.w3.org/XML/1998/namespace"))
|
||||
if (ns == QLatin1String("http://www.w3.org/2000/xmlns/") ||
|
||||
ns == QLatin1String("http://www.w3.org/XML/1998/namespace"))
|
||||
raiseWellFormedError(QXmlStream::tr("Illegal namespace declaration."));
|
||||
else
|
||||
namespaceDeclaration.namespaceUri = addToStringStorage(ns);
|
||||
@ -1868,6 +1541,9 @@ nmtoken ::= COLON;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif //QT_NO_XMLSTREAMREADER.xml
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
./
|
||||
|
File diff suppressed because it is too large
Load Diff
532
src/corelib/serialization/qxmlstreamgrammar.cpp
Normal file
532
src/corelib/serialization/qxmlstreamgrammar.cpp
Normal file
@ -0,0 +1,532 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2020 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
// This file was generated by qlalr - DO NOT EDIT!
|
||||
#include "qxmlstreamgrammar_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
const char *const QXmlStreamGrammar::spell [] = {
|
||||
"end of file", 0, " ", "<", ">", "&", "#", "\'", "\"", "[",
|
||||
"]", "(", ")", "|", "=", "%", "/", ":", ";", ",",
|
||||
"-", "+", "*", ".", "?", "!", "[a-zA-Z]", "[0-9]", "[CDATA[", "DOCTYPE",
|
||||
"ELEMENT", "ATTLIST", "ENTITY", "NOTATION", "SYSTEM", "PUBLIC", "NDATA", "REQUIRED", "IMPLIED", "FIXED",
|
||||
"EMPTY", "ANY", "PCDATA", 0, 0, 0, 0, "CDATA", "ID", "IDREF",
|
||||
"IDREFS", "ENTITIES", "NMTOKEN", "NMTOKENS", "<?xml", "version", 0
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::lhs [] = {
|
||||
57, 57, 59, 59, 59, 59, 59, 59, 59, 59,
|
||||
67, 68, 64, 72, 72, 72, 75, 66, 66, 66,
|
||||
66, 79, 78, 80, 80, 80, 80, 80, 80, 80,
|
||||
81, 81, 81, 81, 81, 81, 81, 87, 83, 88,
|
||||
88, 88, 88, 91, 92, 93, 93, 93, 93, 94,
|
||||
94, 96, 96, 96, 97, 97, 98, 98, 99, 99,
|
||||
100, 100, 89, 89, 95, 90, 101, 101, 103, 103,
|
||||
103, 103, 103, 103, 103, 103, 103, 103, 104, 105,
|
||||
105, 105, 105, 107, 108, 109, 109, 84, 84, 110,
|
||||
110, 112, 112, 85, 85, 85, 65, 65, 76, 114,
|
||||
63, 115, 116, 86, 86, 86, 117, 117, 117, 117,
|
||||
117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
|
||||
117, 117, 117, 117, 117, 117, 117, 117, 117, 118,
|
||||
118, 119, 119, 119, 119, 119, 119, 119, 119, 122,
|
||||
70, 70, 70, 70, 123, 124, 123, 124, 123, 124,
|
||||
123, 124, 126, 126, 126, 126, 126, 126, 126, 126,
|
||||
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
|
||||
126, 126, 126, 126, 125, 73, 113, 113, 113, 113,
|
||||
127, 128, 127, 128, 127, 128, 127, 128, 129, 129,
|
||||
129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
|
||||
129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
|
||||
129, 129, 129, 106, 106, 106, 106, 131, 132, 131,
|
||||
132, 131, 131, 132, 132, 133, 133, 133, 133, 135,
|
||||
71, 71, 71, 136, 136, 137, 62, 60, 61, 138,
|
||||
121, 82, 130, 134, 120, 139, 139, 139, 139, 58,
|
||||
58, 58, 58, 58, 58, 58, 58, 58, 58, 74,
|
||||
69, 69, 77, 111, 102, 102, 102, 102, 102, 140
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::rhs [] = {
|
||||
2, 1, 4, 2, 2, 2, 2, 2, 2, 0,
|
||||
1, 1, 9, 2, 4, 0, 4, 4, 6, 6,
|
||||
4, 1, 3, 1, 1, 1, 2, 2, 2, 0,
|
||||
1, 1, 1, 1, 1, 1, 1, 4, 4, 1,
|
||||
1, 1, 1, 1, 2, 1, 1, 1, 0, 2,
|
||||
2, 2, 6, 6, 1, 5, 1, 5, 3, 5,
|
||||
0, 1, 6, 8, 4, 2, 1, 5, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 6, 7, 1, 2,
|
||||
2, 1, 4, 3, 3, 1, 2, 5, 6, 4,
|
||||
6, 3, 5, 5, 3, 4, 4, 5, 2, 3,
|
||||
2, 2, 4, 5, 5, 7, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 2, 2, 2, 2, 1, 1, 1, 1, 1,
|
||||
2, 2, 3, 3, 2, 2, 2, 2, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 2, 2, 3, 3,
|
||||
2, 2, 2, 2, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 2, 2, 3, 3, 2, 2, 2,
|
||||
2, 1, 1, 1, 1, 1, 1, 1, 1, 5,
|
||||
0, 1, 3, 1, 3, 2, 4, 3, 5, 1,
|
||||
3, 3, 3, 3, 4, 1, 1, 2, 2, 2,
|
||||
4, 2, 2, 2, 2, 2, 2, 2, 0, 1,
|
||||
0, 1, 1, 1, 1, 1, 1, 1, 1, 2
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::action_default [] = {
|
||||
10, 259, 0, 2, 1, 0, 125, 117, 119, 120,
|
||||
127, 129, 123, 11, 114, 108, 0, 109, 128, 111,
|
||||
115, 113, 121, 124, 126, 107, 110, 112, 118, 116,
|
||||
131, 122, 240, 12, 254, 136, 250, 253, 0, 130,
|
||||
140, 257, 16, 252, 138, 137, 0, 256, 139, 259,
|
||||
231, 258, 255, 0, 0, 264, 0, 247, 246, 0,
|
||||
249, 248, 245, 241, 99, 263, 0, 236, 0, 0,
|
||||
260, 97, 98, 101, 0, 132, 134, 133, 135, 0,
|
||||
0, 261, 0, 0, 176, 0, 173, 165, 167, 168,
|
||||
142, 154, 171, 162, 156, 157, 153, 159, 163, 161,
|
||||
169, 172, 152, 155, 158, 160, 166, 164, 174, 170,
|
||||
150, 175, 0, 144, 148, 146, 151, 141, 149, 0,
|
||||
147, 143, 145, 0, 15, 14, 262, 0, 22, 21,
|
||||
261, 30, 0, 20, 0, 0, 32, 37, 31, 0,
|
||||
33, 261, 0, 34, 0, 24, 0, 35, 0, 26,
|
||||
36, 25, 0, 242, 41, 40, 261, 43, 49, 261,
|
||||
42, 0, 44, 261, 49, 261, 0, 261, 0, 49,
|
||||
0, 48, 46, 47, 51, 52, 261, 261, 0, 57,
|
||||
261, 54, 261, 0, 58, 0, 55, 261, 53, 261,
|
||||
0, 56, 65, 0, 261, 61, 261, 0, 59, 62,
|
||||
63, 0, 261, 0, 0, 60, 64, 45, 50, 66,
|
||||
0, 39, 0, 0, 261, 0, 94, 95, 0, 0,
|
||||
0, 0, 261, 0, 210, 201, 203, 205, 178, 190,
|
||||
208, 199, 193, 191, 194, 189, 196, 198, 206, 209,
|
||||
188, 192, 195, 197, 202, 200, 204, 207, 211, 213,
|
||||
212, 186, 0, 0, 243, 180, 184, 182, 0, 0,
|
||||
93, 187, 177, 185, 0, 183, 179, 181, 92, 0,
|
||||
96, 0, 0, 0, 0, 0, 261, 86, 261, 0,
|
||||
262, 0, 87, 0, 89, 69, 74, 73, 70, 71,
|
||||
72, 261, 75, 76, 0, 0, 0, 269, 268, 266,
|
||||
267, 265, 67, 261, 0, 261, 0, 0, 68, 77,
|
||||
261, 0, 261, 0, 0, 78, 0, 79, 0, 82,
|
||||
85, 0, 0, 215, 225, 224, 0, 227, 229, 228,
|
||||
226, 0, 244, 217, 221, 219, 223, 214, 222, 0,
|
||||
220, 216, 218, 0, 81, 80, 0, 83, 0, 84,
|
||||
88, 100, 0, 38, 0, 0, 0, 0, 91, 90,
|
||||
0, 103, 23, 27, 29, 28, 0, 0, 261, 262,
|
||||
0, 261, 0, 106, 105, 261, 0, 104, 102, 0,
|
||||
0, 18, 261, 17, 0, 19, 0, 0, 251, 0,
|
||||
261, 0, 239, 0, 232, 238, 0, 237, 234, 261,
|
||||
261, 262, 233, 235, 0, 261, 0, 230, 261, 0,
|
||||
261, 0, 231, 0, 0, 13, 270, 9, 5, 8,
|
||||
4, 0, 7, 259, 6, 0, 3
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::goto_default [] = {
|
||||
2, 4, 3, 49, 388, 43, 37, 52, 47, 41,
|
||||
249, 53, 127, 84, 393, 81, 85, 126, 42, 46,
|
||||
169, 130, 131, 146, 145, 149, 138, 136, 140, 147,
|
||||
139, 159, 160, 157, 168, 167, 209, 165, 164, 166,
|
||||
187, 180, 196, 200, 303, 302, 295, 321, 320, 319,
|
||||
279, 277, 278, 142, 56, 141, 222, 38, 34, 148,
|
||||
39, 48, 40, 248, 45, 36, 119, 112, 330, 111,
|
||||
264, 252, 251, 250, 339, 326, 325, 329, 398, 399,
|
||||
50, 51, 59, 0
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::action_index [] = {
|
||||
-39, -57, 7, 112, 918, 40, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, 113, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, 9, -57,
|
||||
753, -57, 70, -57, -57, -57, 88, -57, -57, -57,
|
||||
53, -57, -57, -37, 69, -57, -7, -57, -57, 128,
|
||||
-57, -57, -57, -57, -57, -57, 32, -57, 55, 31,
|
||||
-57, -57, -57, -57, 75, -57, -57, -57, -57, 77,
|
||||
92, 53, 313, 284, -57, 53, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, 258, -57, -57, -57, -57, -57, -57, 368,
|
||||
-57, -57, -57, 153, -57, -57, -57, 71, -57, -57,
|
||||
53, 150, 21, -57, 39, -3, -57, -57, -57, 101,
|
||||
-57, 46, 203, -57, 148, -57, 173, -57, 35, -57,
|
||||
-57, -57, 29, -57, -57, -57, 53, -57, 108, 53,
|
||||
-57, 125, -57, 53, 126, 53, 24, 53, -1, 104,
|
||||
57, -57, -57, -57, -57, 54, 53, 37, 66, -57,
|
||||
53, 5, 53, 61, -57, 60, -57, 53, 15, 53,
|
||||
48, -57, -57, 49, 53, 16, 53, 18, -57, -57,
|
||||
-57, 38, 53, 20, 19, -57, -57, -57, -57, -57,
|
||||
27, -57, 17, 26, 53, 25, -57, -57, 533, 153,
|
||||
643, 153, 53, 97, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
||||
-57, -57, 863, 14, -57, -57, -57, -57, 53, 153,
|
||||
-57, -57, -57, -57, 808, -57, -57, -57, -57, 23,
|
||||
-57, -5, 2, 34, 87, 32, 53, -57, 53, 175,
|
||||
28, 33, -57, 30, -57, -57, -57, -57, -57, -57,
|
||||
-57, 53, -57, -57, 22, 137, 167, -57, -57, -57,
|
||||
-57, -57, -57, 53, 78, 53, 53, 179, -57, -57,
|
||||
53, 147, 53, 81, -2, -57, 423, -57, 478, -57,
|
||||
-57, 82, 83, -57, -57, -57, 588, -57, -57, -57,
|
||||
-57, 1, -57, -57, -57, -57, -57, -57, -57, 698,
|
||||
-57, -57, -57, 53, -57, -57, 99, -57, 53, -57,
|
||||
-57, -57, 53, -57, 53, 53, -20, 53, -57, -57,
|
||||
53, -57, -57, -57, -57, -57, 153, 153, 53, 90,
|
||||
8, 53, 11, -57, -57, 53, 13, -57, -57, -25,
|
||||
131, -57, 53, -57, 10, -57, 973, 133, -57, -6,
|
||||
53, 4, -57, 72, -17, -57, 6, -57, -57, 53,
|
||||
53, -10, -57, -57, 12, 53, 103, -57, 53, -12,
|
||||
53, 45, 53, -21, 0, -57, -57, -57, -57, -57,
|
||||
-57, 36, -57, -57, -57, 973, -57,
|
||||
|
||||
-84, -84, -84, 118, 69, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, 12, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
103, -84, -84, -84, -84, -84, -84, -84, -84, 71,
|
||||
64, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, 15, -84, 35, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
48, -84, -5, -34, -84, 38, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, 52, -84, -84, -84, -84, -84, -84, -19,
|
||||
-84, -84, -84, 47, -84, -84, -84, -84, -84, -84,
|
||||
116, 194, -84, -84, -84, 28, -84, -84, -84, 24,
|
||||
-84, 36, -84, -84, -84, -84, 130, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, 4, -84, -84, -1,
|
||||
-84, -84, -84, 29, 17, 27, -84, 18, -84, 0,
|
||||
-84, -84, -84, -84, -84, -84, -3, -4, -36, -84,
|
||||
25, -84, 9, -8, -84, -11, -84, 19, -84, 26,
|
||||
14, -84, -84, -84, 30, -84, -9, -16, -84, -84,
|
||||
-84, -84, 1, -84, -2, -84, -84, -84, -84, -84,
|
||||
-84, -84, 50, -84, 58, -84, -84, -84, -84, 68,
|
||||
-13, 62, 33, -7, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -26, -84, -84, -84, -84, -84, 51, 37,
|
||||
-84, -84, -84, -84, -57, -84, -84, -84, -84, -84,
|
||||
-84, 3, -84, -20, -49, -47, 79, -84, 99, -84,
|
||||
20, -84, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, 42, -84, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, 55, -84, 53, 49, 41, -84, -84,
|
||||
46, 34, 45, -84, 39, -84, 85, -84, 96, -84,
|
||||
-84, -84, 31, -84, -84, -84, 97, -84, -84, -84,
|
||||
-84, -84, -84, -84, -84, -84, -84, -84, -84, 100,
|
||||
-84, -84, -84, 66, -84, -84, 43, -84, 60, -84,
|
||||
-84, -84, 57, -84, 54, 56, 40, 59, -84, -84,
|
||||
63, -84, -84, -84, -84, -84, 8, 7, 76, 6,
|
||||
-84, 5, -84, -84, -84, 2, -84, -84, -84, -10,
|
||||
80, -84, -6, -84, -84, -84, 89, -18, -84, 44,
|
||||
32, -84, -84, -84, 23, -84, -84, -84, -84, 88,
|
||||
21, 78, -84, -84, -84, 16, -22, -84, 13, -84,
|
||||
10, 22, 73, -84, -84, -84, -84, -84, -84, -84,
|
||||
-84, -84, -84, 11, -84, 98, -84
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::action_info [] = {
|
||||
70, 65, 410, 414, 415, 1, 55, 416, 392, 65,
|
||||
397, 63, 374, 73, 385, 373, 65, 377, 408, 332,
|
||||
65, 65, 351, 55, 182, 133, 405, 270, 189, 216,
|
||||
217, 211, 254, 310, 284, 72, 192, 350, 199, 70,
|
||||
0, 207, 206, 55, 65, 65, 54, 153, 70, 0,
|
||||
203, 202, 83, 82, 65, 70, 272, 70, 55, 163,
|
||||
65, 195, 194, 66, 64, 379, 55, 177, 163, 367,
|
||||
366, 163, 163, 176, 65, 129, 395, 163, 0, 69,
|
||||
128, 54, 212, 65, 83, 82, 65, 65, 396, 54,
|
||||
306, 305, 65, 314, 305, 58, 57, 83, 82, 83,
|
||||
82, 55, 354, 54, 80, 79, 318, 316, 272, 55,
|
||||
318, 316, 156, 55, 417, 16, 378, 379, 0, 345,
|
||||
344, 343, 0, 55, 0, 171, 173, 0, 172, 171,
|
||||
173, 162, 172, 70, 0, 381, 163, 66, 64, 65,
|
||||
128, 155, 154, 317, 318, 316, 62, 171, 173, 389,
|
||||
172, 65, 70, 134, 61, 60, 0, 66, 64, 65,
|
||||
83, 82, 0, 0, 297, 135, 33, 298, 272, 0,
|
||||
300, 0, 0, 301, 299, 70, 134, 0, 273, 271,
|
||||
274, 275, 0, 362, 297, 0, 291, 298, 135, 0,
|
||||
300, 0, 0, 301, 299, 13, 297, 0, 0, 298,
|
||||
0, 0, 300, 0, 0, 301, 299, 287, 294, 0,
|
||||
220, 218, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 285, 288, 289, 290, 286, 292, 293, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 221, 219, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 0, 103, 0, 94, 114, 113, 95, 104, 97,
|
||||
105, 99, 93, 98, 107, 87, 106, 88, 89, 100,
|
||||
109, 92, 101, 86, 96, 91, 108, 0, 103, 0,
|
||||
94, 117, 116, 95, 104, 97, 105, 99, 93, 98,
|
||||
107, 87, 106, 88, 89, 100, 109, 92, 101, 86,
|
||||
96, 91, 0, 0, 0, 108, 0, 103, 0, 94,
|
||||
102, 90, 95, 104, 97, 105, 99, 93, 98, 107,
|
||||
87, 106, 88, 89, 100, 109, 92, 101, 86, 96,
|
||||
91, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 0, 103, 0, 94, 121, 120, 95, 104, 97,
|
||||
105, 99, 93, 98, 107, 87, 106, 88, 89, 100,
|
||||
109, 92, 101, 86, 96, 91, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 108, 0, 103, 322, 94,
|
||||
324, 323, 95, 104, 97, 105, 99, 93, 98, 107,
|
||||
87, 106, 88, 89, 100, 109, 92, 101, 86, 96,
|
||||
91, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 0, 103, 322, 94, 337, 336, 95, 104, 97,
|
||||
105, 99, 93, 98, 107, 87, 106, 88, 89, 100,
|
||||
109, 92, 101, 86, 96, 91, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 13, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 246, 233, 241, 223, 232,
|
||||
240, 228, 234, 242, 236, 243, 237, 231, 0, 245,
|
||||
225, 244, 226, 227, 238, 247, 230, 239, 224, 235,
|
||||
229, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 0, 103, 322, 94, 334, 333, 95, 104, 97,
|
||||
105, 99, 93, 98, 107, 87, 106, 88, 89, 100,
|
||||
109, 92, 101, 86, 96, 91, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 13, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 246, 233, 241, 223, 232,
|
||||
262, 261, 234, 242, 236, 243, 237, 231, 0, 245,
|
||||
225, 244, 226, 227, 238, 247, 230, 239, 224, 235,
|
||||
229, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 0, 103, 322, 94, 341, 340, 95, 104, 97,
|
||||
105, 99, 93, 98, 107, 87, 106, 88, 89, 100,
|
||||
109, 92, 101, 86, 96, 91, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 13, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 30, 0, 25, 74, 15,
|
||||
24, 10, 17, 26, 19, 27, 21, 14, 20, 29,
|
||||
7, 28, 8, 9, 22, 31, 12, 23, 6, 18,
|
||||
11, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
246, 233, 241, 223, 232, 266, 265, 234, 242, 236,
|
||||
243, 237, 231, 0, 245, 225, 244, 226, 227, 238,
|
||||
247, 230, 239, 224, 235, 229, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 13, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 246, 233, 241, 223, 232,
|
||||
256, 255, 234, 242, 236, 243, 237, 231, 0, 245,
|
||||
225, 244, 226, 227, 238, 247, 230, 239, 224, 235,
|
||||
229, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
30, 16, 25, 5, 15, 24, 10, 17, 26, 19,
|
||||
27, 21, 14, 20, 29, 7, 28, 8, 9, 22,
|
||||
31, 12, 23, 6, 18, 11, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 13, 32, 0, 0, 0, 0, 0,
|
||||
0, 0, 33, 0, 0, 30, 387, 25, 5, 15,
|
||||
24, 10, 17, 26, 19, 27, 21, 14, 20, 29,
|
||||
7, 28, 8, 9, 22, 31, 12, 23, 6, 18,
|
||||
11, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 13, 32,
|
||||
0, 0, 0, 0, 0, 0, 0, 33, 0, 0,
|
||||
|
||||
352, 179, 67, 201, 198, 355, 384, 360, 185, 178,
|
||||
380, 210, 425, 204, 376, 267, 161, 372, 205, 371,
|
||||
375, 183, 411, 276, 368, 409, 186, 407, 406, 184,
|
||||
193, 188, 67, 404, 118, 412, 208, 181, 190, 175,
|
||||
348, 170, 197, 400, 391, 269, 257, 253, 213, 122,
|
||||
260, 191, 71, 174, 296, 123, 315, 313, 311, 263,
|
||||
124, 125, 158, 110, 390, 307, 309, 304, 259, 68,
|
||||
215, 356, 386, 359, 353, 268, 358, 349, 312, 44,
|
||||
361, 394, 152, 346, 258, 331, 308, 413, 370, 0,
|
||||
394, 281, 347, 369, 357, 328, 280, 383, 400, 44,
|
||||
402, 382, 426, 0, 214, 401, 328, 328, 44, 0,
|
||||
328, 283, 0, 76, 0, 0, 280, 0, 0, 0,
|
||||
115, 423, 0, 420, 418, 424, 422, 419, 132, 0,
|
||||
0, 0, 35, 0, 0, 0, 137, 421, 150, 0,
|
||||
143, 0, 0, 0, 0, 0, 0, 365, 327, 144,
|
||||
282, 0, 35, 0, 363, 364, 403, 0, 0, 327,
|
||||
327, 35, 0, 327, 78, 0, 75, 77, 0, 0,
|
||||
0, 0, 338, 335, 0, 0, 342, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
137, 0, 150, 0, 143, 0, 0, 0, 0, 0,
|
||||
0, 151, 0, 144, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
const short QXmlStreamGrammar::action_check [] = {
|
||||
2, 26, 14, 24, 4, 44, 26, 0, 4, 26,
|
||||
4, 18, 4, 4, 4, 4, 26, 4, 55, 18,
|
||||
26, 26, 20, 26, 19, 4, 14, 4, 13, 4,
|
||||
4, 4, 18, 11, 4, 4, 12, 4, 22, 2,
|
||||
-1, 42, 22, 26, 26, 26, 6, 18, 2, -1,
|
||||
12, 13, 7, 8, 26, 2, 20, 2, 26, 11,
|
||||
26, 12, 13, 24, 25, 29, 26, 13, 11, 34,
|
||||
35, 11, 11, 19, 26, 4, 4, 11, -1, 24,
|
||||
9, 6, 36, 26, 7, 8, 26, 26, 16, 6,
|
||||
12, 13, 26, 12, 13, 26, 27, 7, 8, 7,
|
||||
8, 26, 15, 6, 34, 35, 7, 8, 20, 26,
|
||||
7, 8, 11, 26, 2, 3, 28, 29, -1, 37,
|
||||
38, 39, -1, 26, -1, 21, 22, -1, 24, 21,
|
||||
22, 6, 24, 2, -1, 4, 11, 24, 25, 26,
|
||||
9, 40, 41, 6, 7, 8, 18, 21, 22, 16,
|
||||
24, 26, 2, 3, 26, 27, -1, 24, 25, 26,
|
||||
7, 8, -1, -1, 17, 15, 54, 20, 20, -1,
|
||||
23, -1, -1, 26, 27, 2, 3, -1, 30, 31,
|
||||
32, 33, -1, 10, 17, -1, 11, 20, 15, -1,
|
||||
23, -1, -1, 26, 27, 45, 17, -1, -1, 20,
|
||||
-1, -1, 23, -1, -1, 26, 27, 32, 33, -1,
|
||||
7, 8, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, 47, 48, 49, 50, 51, 52, 53, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, 34, 35, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, -1, 4, -1, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, 2, -1, 4, -1,
|
||||
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
||||
26, 27, -1, -1, -1, 2, -1, 4, -1, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, -1, 4, -1, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 2, -1, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, -1, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 45, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, -1, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, -1, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 45, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, -1, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, -1, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 45, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 2, -1, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, -1, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 45, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, -1, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 45, 46, -1, -1, -1, -1, -1,
|
||||
-1, -1, 54, -1, -1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
||||
27, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, 45, 46,
|
||||
-1, -1, -1, -1, -1, -1, -1, 54, -1, -1,
|
||||
|
||||
20, 37, 20, 12, 20, 54, 12, 54, 12, 12,
|
||||
20, 12, 1, 12, 12, 72, 12, 12, 20, 13,
|
||||
13, 12, 12, 20, 16, 12, 37, 49, 12, 37,
|
||||
12, 12, 20, 12, 68, 13, 36, 12, 12, 12,
|
||||
20, 12, 12, 20, 12, 12, 72, 54, 12, 68,
|
||||
13, 37, 17, 36, 12, 17, 17, 12, 12, 72,
|
||||
13, 13, 38, 68, 20, 12, 17, 12, 17, 54,
|
||||
12, 17, 1, 17, 17, 13, 17, 17, 44, 10,
|
||||
17, 17, 54, 17, 16, 54, 45, 14, 12, -1,
|
||||
17, 12, 49, 17, 54, 10, 17, 17, 20, 10,
|
||||
12, 21, 4, -1, 54, 17, 10, 10, 10, -1,
|
||||
10, 12, -1, 10, -1, -1, 17, -1, -1, -1,
|
||||
68, 3, -1, 5, 6, 7, 8, 9, 12, -1,
|
||||
-1, -1, 63, -1, -1, -1, 6, 19, 8, -1,
|
||||
10, -1, -1, -1, -1, -1, -1, 17, 63, 19,
|
||||
51, -1, 63, -1, 24, 25, 78, -1, -1, 63,
|
||||
63, 63, -1, 63, 61, -1, 63, 64, -1, -1,
|
||||
-1, -1, 76, 76, -1, -1, 76, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
6, -1, 8, -1, 10, -1, -1, -1, -1, -1,
|
||||
-1, 17, -1, 19, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
164
src/corelib/serialization/qxmlstreamgrammar_p.h
Normal file
164
src/corelib/serialization/qxmlstreamgrammar_p.h
Normal file
@ -0,0 +1,164 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2020 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists for the convenience
|
||||
// of other Qt classes. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
// This file was generated by qlalr - DO NOT EDIT!
|
||||
#ifndef QXMLSTREAMGRAMMAR_P_H
|
||||
#define QXMLSTREAMGRAMMAR_P_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXmlStreamGrammar
|
||||
{
|
||||
public:
|
||||
enum VariousConstants {
|
||||
EOF_SYMBOL = 0,
|
||||
AMPERSAND = 5,
|
||||
ANY = 41,
|
||||
ATTLIST = 31,
|
||||
BANG = 25,
|
||||
CDATA = 47,
|
||||
CDATA_START = 28,
|
||||
COLON = 17,
|
||||
COMMA = 19,
|
||||
DASH = 20,
|
||||
DBLQUOTE = 8,
|
||||
DIGIT = 27,
|
||||
DOCTYPE = 29,
|
||||
DOT = 23,
|
||||
ELEMENT = 30,
|
||||
EMPTY = 40,
|
||||
ENTITIES = 51,
|
||||
ENTITY = 32,
|
||||
ENTITY_DONE = 45,
|
||||
EQ = 14,
|
||||
ERROR = 43,
|
||||
FIXED = 39,
|
||||
HASH = 6,
|
||||
ID = 48,
|
||||
IDREF = 49,
|
||||
IDREFS = 50,
|
||||
IMPLIED = 38,
|
||||
LANGLE = 3,
|
||||
LBRACK = 9,
|
||||
LETTER = 26,
|
||||
LPAREN = 11,
|
||||
NDATA = 36,
|
||||
NMTOKEN = 52,
|
||||
NMTOKENS = 53,
|
||||
NOTATION = 33,
|
||||
NOTOKEN = 1,
|
||||
PARSE_ENTITY = 44,
|
||||
PCDATA = 42,
|
||||
PERCENT = 15,
|
||||
PIPE = 13,
|
||||
PLUS = 21,
|
||||
PUBLIC = 35,
|
||||
QUESTIONMARK = 24,
|
||||
QUOTE = 7,
|
||||
RANGLE = 4,
|
||||
RBRACK = 10,
|
||||
REQUIRED = 37,
|
||||
RPAREN = 12,
|
||||
SEMICOLON = 18,
|
||||
SHIFT_THERE = 56,
|
||||
SLASH = 16,
|
||||
SPACE = 2,
|
||||
STAR = 22,
|
||||
SYSTEM = 34,
|
||||
UNRESOLVED_ENTITY = 46,
|
||||
VERSION = 55,
|
||||
XML = 54,
|
||||
|
||||
ACCEPT_STATE = 416,
|
||||
RULE_COUNT = 270,
|
||||
STATE_COUNT = 427,
|
||||
TERMINAL_COUNT = 57,
|
||||
NON_TERMINAL_COUNT = 84,
|
||||
|
||||
GOTO_INDEX_OFFSET = 427,
|
||||
GOTO_INFO_OFFSET = 1030,
|
||||
GOTO_CHECK_OFFSET = 1030
|
||||
};
|
||||
|
||||
static const char *const spell[];
|
||||
static const short lhs[];
|
||||
static const short rhs[];
|
||||
static const short goto_default[];
|
||||
static const short action_default[];
|
||||
static const short action_index[];
|
||||
static const short action_info[];
|
||||
static const short action_check[];
|
||||
|
||||
static inline int nt_action (int state, int nt)
|
||||
{
|
||||
const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
|
||||
if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
|
||||
return goto_default [nt];
|
||||
|
||||
return action_info [GOTO_INFO_OFFSET + yyn];
|
||||
}
|
||||
|
||||
static inline int t_action (int state, int token)
|
||||
{
|
||||
const int yyn = action_index [state] + token;
|
||||
|
||||
if (yyn < 0 || action_check [yyn] != token)
|
||||
return - action_default [state];
|
||||
|
||||
return action_info [yyn];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
#endif // QXMLSTREAMGRAMMAR_P_H
|
||||
|
1027
src/corelib/serialization/qxmlstreamparser_p.h
Normal file
1027
src/corelib/serialization/qxmlstreamparser_p.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,8 @@ HEADERS += \
|
||||
serialization/qtextstream_p.h \
|
||||
serialization/qxmlstream.h \
|
||||
serialization/qxmlstream_p.h \
|
||||
serialization/qxmlstreamgrammar_p.h \
|
||||
serialization/qxmlstreamparser_p.h \
|
||||
serialization/qxmlutils_p.h
|
||||
|
||||
SOURCES += \
|
||||
@ -37,6 +39,7 @@ SOURCES += \
|
||||
serialization/qjsonparser.cpp \
|
||||
serialization/qtextstream.cpp \
|
||||
serialization/qxmlstream.cpp \
|
||||
serialization/qxmlstreamgrammar.cpp \
|
||||
serialization/qxmlutils.cpp
|
||||
|
||||
qtConfig(cborstreamreader): {
|
||||
|
@ -94,6 +94,7 @@ qt_add_module(Bootstrap
|
||||
../../corelib/serialization/qjsonwriter.cpp
|
||||
../../corelib/serialization/qtextstream.cpp
|
||||
../../corelib/serialization/qxmlstream.cpp
|
||||
../../corelib/serialization/qxmlstreamgrammar.cpp
|
||||
../../corelib/serialization/qxmlutils.cpp
|
||||
../../corelib/text/qbytearray.cpp
|
||||
../../corelib/text/qbytearraylist.cpp
|
||||
|
@ -95,6 +95,7 @@ qt_extend_target(Bootstrap
|
||||
../../corelib/serialization/qjsonwriter.cpp
|
||||
../../corelib/serialization/qtextstream.cpp
|
||||
../../corelib/serialization/qxmlstream.cpp
|
||||
../../corelib/serialization/qxmlstreamgrammar.cpp
|
||||
../../corelib/serialization/qxmlutils.cpp
|
||||
../../corelib/text/qbytearray.cpp
|
||||
../../corelib/text/qbytearraylist.cpp
|
||||
|
@ -82,6 +82,7 @@ SOURCES += \
|
||||
../../corelib/serialization/qtextstream.cpp \
|
||||
../../corelib/serialization/qxmlutils.cpp \
|
||||
../../corelib/serialization/qxmlstream.cpp \
|
||||
../../corelib/serialization/qxmlstreamgrammar.cpp \
|
||||
../../corelib/text/qbytearray.cpp \
|
||||
../../corelib/text/qbytearraylist.cpp \
|
||||
../../corelib/text/qbytearraymatcher.cpp \
|
||||
|
Loading…
Reference in New Issue
Block a user