Qt 4.8
|
#include <qxmlstream_p.h>
Classes | |
struct | Attribute |
struct | DtdAttribute |
struct | Entity |
struct | EntityDeclaration |
struct | NotationDeclaration |
struct | Value |
Private Functions | |
void | setType (const QXmlStreamReader::TokenType t) |
Never assign to variable type directly. More... | |
Properties | |
QXmlStreamReader * | q_ptr |
Additional Inherited Members | |
Public Types inherited from QXmlStreamReader_Table | |
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 = 1017, GOTO_CHECK_OFFSET = 1017 } |
Static Public Functions inherited from QXmlStreamReader_Table | |
static int | nt_action (int state, int nt) |
static int | t_action (int state, int token) |
Static Public Variables inherited from QXmlStreamReader_Table | |
static const short | action_check [] |
static const short | action_default [] |
static const short | action_index [] |
static const short | action_info [] |
static const short | goto_default [] |
static const short | lhs [] |
static const short | rhs [] |
static const char *const | spell [] |
Definition at line 742 of file qxmlstream_p.h.
QXmlStreamReaderPrivate::QXmlStreamReaderPrivate | ( | QXmlStreamReader * | q | ) |
Definition at line 819 of file qxmlstream.cpp.
Referenced by parseEntity().
QXmlStreamReaderPrivate::~QXmlStreamReaderPrivate | ( | ) |
Definition at line 927 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::checkPublicLiteral | ( | const QStringRef & | publicId | ) |
Definition at line 1765 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::checkStartDocument | ( | ) |
Definition at line 1797 of file qxmlstream.cpp.
|
inline |
Definition at line 950 of file qxmlstream_p.h.
|
inline |
Definition at line 908 of file qxmlstream_p.h.
|
inline |
|
inline |
Definition at line 884 of file qxmlstream_p.h.
|
inline |
Used for text nodes essentially.
That is, characters appearing inside elements.
Definition at line 1263 of file qxmlstream.cpp.
|
inline |
Scan strings with quotes or apostrophes surround them. For instance, attributes, the version and encoding field in the XML prolog and entity declarations.
If normalizeLiterals is set to true, the function also normalizes whitespace. It is set to true when the first start tag is encountered.
Definition at line 1181 of file qxmlstream.cpp.
|
inline |
Definition at line 1327 of file qxmlstream.cpp.
|
inline |
Definition at line 1443 of file qxmlstream.cpp.
|
inline |
Definition at line 1227 of file qxmlstream.cpp.
Referenced by scanNData(), and scanString().
|
inline |
Definition at line 938 of file qxmlstream.cpp.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanSpace(), and scanUntil().
|
inline |
Definition at line 959 of file qxmlstream.cpp.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanName(), fastScanNMTOKEN(), fastScanSpace(), scanString(), and scanUntil().
ushort QXmlStreamReaderPrivate::getChar_helper | ( | ) |
Definition at line 1503 of file qxmlstream.cpp.
Referenced by getChar(), and peekChar().
void QXmlStreamReaderPrivate::init | ( | ) |
Definition at line 840 of file qxmlstream.cpp.
Referenced by parseEntity(), and QXmlStreamReaderPrivate().
|
inline |
Definition at line 969 of file qxmlstream_p.h.
Referenced by parseEntity(), scanString(), and scanUntil().
QStringRef QXmlStreamReaderPrivate::namespaceForPrefix | ( | const QStringRef & | prefix | ) |
Definition at line 1585 of file qxmlstream.cpp.
Referenced by resolveTag().
bool QXmlStreamReaderPrivate::parse | ( | ) |
Definition at line 1017 of file qxmlstream_p.h.
Referenced by parseEntity().
void QXmlStreamReaderPrivate::parseEntity | ( | const QString & | value | ) |
Definition at line 895 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::parseError | ( | ) |
Definition at line 1896 of file qxmlstream.cpp.
|
inline |
Definition at line 974 of file qxmlstream.cpp.
Referenced by filterCarriageReturn(), scanAfterDefaultDecl(), scanAfterLangleBang(), scanAttType(), and scanPublicOrSystem().
|
inline |
Definition at line 959 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanName(), fastScanNMTOKEN(), fastScanSpace(), filterCarriageReturn(), scanNData(), and scanString().
|
inline |
Definition at line 960 of file qxmlstream_p.h.
void QXmlStreamReaderPrivate::putReplacement | ( | const QString & | s | ) |
Definition at line 1478 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::putReplacementInAttributeValue | ( | const QString & | s | ) |
Definition at line 1489 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::putString | ( | const QString & | s, |
int | from = 0 |
||
) |
Definition at line 1464 of file qxmlstream.cpp.
Referenced by fastScanContentCharList(), fastScanName(), fastScanNMTOKEN(), scanString(), and scanUntil().
void QXmlStreamReaderPrivate::putStringLiteral | ( | const QString & | s | ) |
Definition at line 1471 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::raiseError | ( | QXmlStreamReader::Error | error, |
const QString & | message = QString() |
||
) |
Definition at line 1877 of file qxmlstream.cpp.
Referenced by checkStartDocument(), parseError(), raiseWellFormedError(), and resume().
void QXmlStreamReaderPrivate::raiseWellFormedError | ( | const QString & | message | ) |
Definition at line 1891 of file qxmlstream.cpp.
Referenced by checkPublicLiteral(), fastScanContentCharList(), getChar_helper(), namespaceForPrefix(), parseEntity(), parseError(), resolveTag(), scanUntil(), and startDocument().
|
inline |
|
inline |
Definition at line 773 of file qxmlstream_p.h.
uint QXmlStreamReaderPrivate::resolveCharRef | ( | int | symbolIndex | ) |
Definition at line 1748 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::resolveDtd | ( | ) |
Definition at line 1722 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::resolvePublicNamespaces | ( | ) |
Definition at line 1709 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::resolveTag | ( | ) |
Definition at line 1605 of file qxmlstream.cpp.
Definition at line 224 of file qxmlstream.cpp.
void QXmlStreamReaderPrivate::resume | ( | int | rule | ) |
Definition at line 1949 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanAfterDefaultDecl | ( | ) |
Definition at line 1127 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanAfterLangleBang | ( | ) |
Definition at line 1082 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanAttType | ( | ) |
Definition at line 1142 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanNData | ( | ) |
Definition at line 1117 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanPublicOrSystem | ( | ) |
Definition at line 1104 of file qxmlstream.cpp.
bool QXmlStreamReaderPrivate::scanString | ( | const char * | str, |
short | tokenToInject, | ||
bool | requireSpace = true |
||
) |
Definition at line 1051 of file qxmlstream.cpp.
Referenced by checkStartDocument(), scanAfterDefaultDecl(), scanAfterLangleBang(), scanAttType(), scanNData(), scanPublicOrSystem(), and scanUntil().
bool QXmlStreamReaderPrivate::scanUntil | ( | const char * | str, |
short | tokenToInject = -1 |
||
) |
Scans characters until str is encountered, and validates the characters as according to the Char[2] production and do the line-ending normalization.
If any character is invalid, false is returned, otherwise true upon success.
If tokenToInject is not less than zero, injectToken() is called with tokenToInject when str is found.
If any error occurred, false is returned, otherwise true.
Definition at line 1004 of file qxmlstream.cpp.
|
inlineprivate |
Never assign to variable type directly.
This prevents errors from being ignored.
Definition at line 1010 of file qxmlstream_p.h.
void QXmlStreamReaderPrivate::startDocument | ( | ) |
Definition at line 1812 of file qxmlstream.cpp.
|
inline |
|
inline |
Definition at line 924 of file qxmlstream_p.h.
Referenced by resolveTag().
|
inline |
Definition at line 941 of file qxmlstream_p.h.
|
inline |
Definition at line 932 of file qxmlstream_p.h.
Referenced by resolveTag(), and startDocument().
|
inline |
Definition at line 944 of file qxmlstream_p.h.
|
inline |
Definition at line 920 of file qxmlstream_p.h.
Referenced by resolveCharRef(), resolveTag(), and startDocument().
|
inline |
Definition at line 928 of file qxmlstream_p.h.
|
inline |
Definition at line 938 of file qxmlstream_p.h.
void QXmlStreamReaderPrivate::write | ( | const QString & | ) |
Referenced by QXmlStreamWriterPrivate::~QXmlStreamWriterPrivate().
void QXmlStreamReaderPrivate::write | ( | const char * | ) |
bool QXmlStreamReaderPrivate::atEnd |
Definition at line 791 of file qxmlstream_p.h.
Referenced by checkStartDocument(), getChar(), getChar_helper(), init(), parseEntity(), and scanString().
QXmlStreamAttributes QXmlStreamReaderPrivate::attributes |
Definition at line 808 of file qxmlstream_p.h.
Referenced by init(), and resolveTag().
QXmlStreamSimpleStack<Attribute> QXmlStreamReaderPrivate::attributeStack |
Definition at line 918 of file qxmlstream_p.h.
Referenced by init(), resolveTag(), and startDocument().
qint64 QXmlStreamReaderPrivate::characterOffset |
Definition at line 801 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanSpace(), getChar_helper(), init(), and scanUntil().
QTextCodec* QXmlStreamReaderPrivate::codec |
Definition at line 788 of file qxmlstream_p.h.
Referenced by getChar_helper(), init(), and startDocument().
QByteArray QXmlStreamReaderPrivate::dataBuffer |
Definition at line 751 of file qxmlstream_p.h.
Referenced by getChar_helper(), and init().
QTextDecoder* QXmlStreamReaderPrivate::decoder |
Definition at line 789 of file qxmlstream_p.h.
Referenced by getChar_helper(), init(), QXmlStreamReaderPrivate(), startDocument(), and ~QXmlStreamReaderPrivate().
bool QXmlStreamReaderPrivate::deleteDevice |
Definition at line 786 of file qxmlstream_p.h.
Referenced by QXmlStreamReaderPrivate(), and QXmlStreamWriterPrivate::~QXmlStreamWriterPrivate().
QIODevice* QXmlStreamReaderPrivate::device |
Definition at line 785 of file qxmlstream_p.h.
Referenced by getChar_helper(), QXmlStreamReaderPrivate(), and QXmlStreamWriterPrivate::~QXmlStreamWriterPrivate().
QStringRef QXmlStreamReaderPrivate::documentEncoding |
Definition at line 866 of file qxmlstream_p.h.
Referenced by startDocument().
QStringRef QXmlStreamReaderPrivate::documentVersion |
Definition at line 866 of file qxmlstream_p.h.
Referenced by startDocument().
QXmlStreamSimpleStack<DtdAttribute> QXmlStreamReaderPrivate::dtdAttributes |
Definition at line 831 of file qxmlstream_p.h.
Referenced by resolveTag().
QStringRef QXmlStreamReaderPrivate::dtdName |
Definition at line 865 of file qxmlstream_p.h.
QStringRef QXmlStreamReaderPrivate::dtdPublicId |
Definition at line 865 of file qxmlstream_p.h.
QStringRef QXmlStreamReaderPrivate::dtdSystemId |
Definition at line 865 of file qxmlstream_p.h.
QXmlStreamSimpleStack<EntityDeclaration> QXmlStreamReaderPrivate::entityDeclarations |
Definition at line 858 of file qxmlstream_p.h.
Referenced by resolveDtd().
Definition at line 770 of file qxmlstream_p.h.
Referenced by QXmlStreamReaderPrivate().
QXmlStreamReaderPrivate* QXmlStreamReaderPrivate::entityParser |
Definition at line 975 of file qxmlstream_p.h.
Referenced by init(), parseEntity(), and ~QXmlStreamReaderPrivate().
QXmlStreamSimpleStack<Entity *> QXmlStreamReaderPrivate::entityReferenceStack |
Definition at line 772 of file qxmlstream_p.h.
QXmlStreamEntityResolver* QXmlStreamReaderPrivate::entityResolver |
Definition at line 999 of file qxmlstream_p.h.
Referenced by QXmlStreamReaderPrivate().
QXmlStreamReader::Error QXmlStreamReaderPrivate::error |
Definition at line 797 of file qxmlstream_p.h.
Referenced by init(), raiseError(), and resume().
QString QXmlStreamReaderPrivate::errorString |
Definition at line 798 of file qxmlstream_p.h.
Referenced by raiseError().
uchar QXmlStreamReaderPrivate::firstByte |
Definition at line 752 of file qxmlstream_p.h.
uint QXmlStreamReaderPrivate::hasCheckedStartDocument |
Definition at line 871 of file qxmlstream_p.h.
Referenced by checkStartDocument(), and init().
uint QXmlStreamReaderPrivate::hasExternalDtdSubset |
Definition at line 877 of file qxmlstream_p.h.
Referenced by init().
uint QXmlStreamReaderPrivate::hasSeenTag |
Definition at line 873 of file qxmlstream_p.h.
Referenced by init().
uint QXmlStreamReaderPrivate::inParseEntity |
Definition at line 874 of file qxmlstream_p.h.
Referenced by init(), and parseEntity().
uint QXmlStreamReaderPrivate::isCDATA |
Definition at line 869 of file qxmlstream_p.h.
Referenced by init().
uint QXmlStreamReaderPrivate::isEmptyElement |
Definition at line 867 of file qxmlstream_p.h.
Referenced by init().
uint QXmlStreamReaderPrivate::isWhitespace |
Definition at line 868 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), and init().
bool QXmlStreamReaderPrivate::lastAttributeIsCData |
Definition at line 821 of file qxmlstream_p.h.
QStringRef QXmlStreamReaderPrivate::lastAttributeValue |
Definition at line 820 of file qxmlstream_p.h.
qint64 QXmlStreamReaderPrivate::lastLineStart |
Definition at line 801 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanSpace(), init(), and scanUntil().
qint64 QXmlStreamReaderPrivate::lineNumber |
Definition at line 801 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanSpace(), init(), and scanUntil().
uint QXmlStreamReaderPrivate::lockEncoding |
Definition at line 878 of file qxmlstream_p.h.
Referenced by getChar_helper(), init(), and startDocument().
QStringRef QXmlStreamReaderPrivate::name |
Definition at line 863 of file qxmlstream_p.h.
Referenced by resolveTag(), startDocument(), and QXmlStreamWriterPrivate::write().
uint QXmlStreamReaderPrivate::namespaceProcessing |
Definition at line 879 of file qxmlstream_p.h.
Referenced by init(), namespaceForPrefix(), and resolveTag().
QStringRef QXmlStreamReaderPrivate::namespaceUri |
Definition at line 863 of file qxmlstream_p.h.
Referenced by QXmlStreamNamespaceDeclaration::operator==(), QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(), resolveTag(), QXmlStreamAttributes::value(), and QXmlStreamWriterPrivate::write().
qint64 QXmlStreamReaderPrivate::nbytesread |
Definition at line 753 of file qxmlstream_p.h.
Referenced by getChar_helper(), init(), and startDocument().
uint QXmlStreamReaderPrivate::normalizeLiterals |
Definition at line 872 of file qxmlstream_p.h.
Referenced by fastScanLiteralContent(), and init().
QXmlStreamSimpleStack<NotationDeclaration> QXmlStreamReaderPrivate::notationDeclarations |
Definition at line 837 of file qxmlstream_p.h.
Referenced by resolveDtd().
Definition at line 771 of file qxmlstream_p.h.
Referenced by resolveDtd().
QStringRef QXmlStreamReaderPrivate::prefix |
Definition at line 863 of file qxmlstream_p.h.
Referenced by QXmlStreamNamespaceDeclaration::operator==(), QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(), resolveTag(), and startDocument().
QStringRef QXmlStreamReaderPrivate::processingInstructionData |
Definition at line 864 of file qxmlstream_p.h.
QStringRef QXmlStreamReaderPrivate::processingInstructionTarget |
Definition at line 864 of file qxmlstream_p.h.
QXmlStreamEntityDeclarations QXmlStreamReaderPrivate::publicEntityDeclarations |
Definition at line 859 of file qxmlstream_p.h.
Referenced by resolveDtd().
QXmlStreamNamespaceDeclarations QXmlStreamReaderPrivate::publicNamespaceDeclarations |
Definition at line 839 of file qxmlstream_p.h.
Referenced by resolvePublicNamespaces().
QXmlStreamNotationDeclarations QXmlStreamReaderPrivate::publicNotationDeclarations |
Definition at line 838 of file qxmlstream_p.h.
Referenced by resolveDtd().
QXmlStreamSimpleStack<uint> QXmlStreamReaderPrivate::putStack |
Definition at line 756 of file qxmlstream_p.h.
Referenced by filterCarriageReturn(), getChar(), init(), peekChar(), putReplacement(), putReplacementInAttributeValue(), putString(), and putStringLiteral().
|
private |
Definition at line 743 of file qxmlstream_p.h.
QStringRef QXmlStreamReaderPrivate::qualifiedName |
Definition at line 863 of file qxmlstream_p.h.
Referenced by resolveTag(), and QXmlStreamAttributes::value().
QByteArray QXmlStreamReaderPrivate::rawReadBuffer |
Definition at line 750 of file qxmlstream_p.h.
Referenced by getChar_helper(), init(), and startDocument().
QString QXmlStreamReaderPrivate::readBuffer |
Definition at line 754 of file qxmlstream_p.h.
Referenced by getChar(), getChar_helper(), init(), parseEntity(), peekChar(), and startDocument().
int QXmlStreamReaderPrivate::readBufferPos |
Definition at line 755 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanSpace(), filterCarriageReturn(), getChar(), getChar_helper(), init(), peekChar(), and scanUntil().
uint QXmlStreamReaderPrivate::referenceToParameterEntityDetected |
Definition at line 876 of file qxmlstream_p.h.
Referenced by init().
uint QXmlStreamReaderPrivate::referenceToUnparsedEntityDetected |
Definition at line 875 of file qxmlstream_p.h.
Referenced by init().
int QXmlStreamReaderPrivate::resumeReduction |
Definition at line 881 of file qxmlstream_p.h.
bool QXmlStreamReaderPrivate::scanDtd |
Definition at line 819 of file qxmlstream_p.h.
Referenced by init().
int QXmlStreamReaderPrivate::stack_size |
Definition at line 894 of file qxmlstream_p.h.
Referenced by QXmlStreamReaderPrivate(), and reallocateStack().
uint QXmlStreamReaderPrivate::standalone |
Definition at line 870 of file qxmlstream_p.h.
Referenced by init(), and startDocument().
int* QXmlStreamReaderPrivate::state_stack |
Definition at line 903 of file qxmlstream_p.h.
Referenced by init(), parseError(), QXmlStreamReaderPrivate(), reallocateStack(), and ~QXmlStreamReaderPrivate().
Value* QXmlStreamReaderPrivate::sym_stack |
Definition at line 902 of file qxmlstream_p.h.
Referenced by QXmlStreamReaderPrivate(), reallocateStack(), and ~QXmlStreamReaderPrivate().
QStringRef QXmlStreamReaderPrivate::text |
Definition at line 861 of file qxmlstream_p.h.
QString QXmlStreamReaderPrivate::textBuffer |
Definition at line 907 of file qxmlstream_p.h.
Referenced by fastScanContentCharList(), fastScanLiteralContent(), fastScanName(), fastScanNMTOKEN(), fastScanSpace(), init(), scanString(), and scanUntil().
short QXmlStreamReaderPrivate::token |
Definition at line 953 of file qxmlstream_p.h.
Referenced by init(), and parseError().
ushort QXmlStreamReaderPrivate::token_char |
Definition at line 954 of file qxmlstream_p.h.
Referenced by init().
int QXmlStreamReaderPrivate::tos |
Definition at line 893 of file qxmlstream_p.h.
Referenced by init(), and parseError().
QXmlStreamReader::TokenType QXmlStreamReaderPrivate::type |
Definition at line 796 of file qxmlstream_p.h.
Referenced by checkStartDocument(), init(), parseEntity(), and raiseError().
QString QXmlStreamReaderPrivate::unresolvedEntity |
Definition at line 799 of file qxmlstream_p.h.