Qt 4.8
|
#include "qxml.h"
#include "qtextcodec.h"
#include "qbuffer.h"
#include "qregexp.h"
#include "qmap.h"
#include "qhash.h"
#include "qstack.h"
#include <qdebug.h>
Go to the source code of this file.
Classes | |
class | QXmlAttributesPrivate |
class | QXmlDefaultHandlerPrivate |
class | QXmlInputSourcePrivate |
class | QXmlLocatorPrivate |
class | QXmlNamespaceSupportPrivate |
class | QXmlParseExceptionPrivate |
class | QXmlSimpleReaderLocator |
class | QXmlSimpleReaderPrivate |
struct | QXmlSimpleReaderPrivate::ExternEntity |
struct | QXmlSimpleReaderPrivate::ExternParameterEntity |
struct | QXmlSimpleReaderPrivate::ParseState |
struct | QXmlSimpleReaderPrivate::XmlRef |
Macros | |
#define | XMLERR_EDECLORSDDECLEXPECTED QT_TRANSLATE_NOOP("QXml", "encoding declaration or standalone declaration expected while reading the XML declaration") |
#define | XMLERR_ERRORBYCONSUMER QT_TRANSLATE_NOOP("QXml", "error triggered by consumer") |
#define | XMLERR_ERRORINTEXTDECL QT_TRANSLATE_NOOP("QXml", "error in the text declaration of an external entity") |
#define | XMLERR_ERRORPARSINGCOMMENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing comment") |
#define | XMLERR_ERRORPARSINGCONTENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing content") |
#define | XMLERR_ERRORPARSINGDOCTYPE QT_TRANSLATE_NOOP("QXml", "error occurred while parsing document type definition") |
#define | XMLERR_ERRORPARSINGELEMENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing element") |
#define | XMLERR_ERRORPARSINGREFERENCE QT_TRANSLATE_NOOP("QXml", "error occurred while parsing reference") |
#define | XMLERR_EXTERNALGENERALENTITYINAV QT_TRANSLATE_NOOP("QXml", "external parsed general entity reference not allowed in attribute value") |
#define | XMLERR_EXTERNALGENERALENTITYINDTD QT_TRANSLATE_NOOP("QXml", "external parsed general entity reference not allowed in DTD") |
#define | XMLERR_INTERNALGENERALENTITYINDTD QT_TRANSLATE_NOOP("QXml", "internal general entity reference not allowed in DTD") |
#define | XMLERR_INVALIDNAMEFORPI QT_TRANSLATE_NOOP("QXml", "invalid name for processing instruction") |
#define | XMLERR_LETTEREXPECTED QT_TRANSLATE_NOOP("QXml", "letter is expected") |
#define | XMLERR_MORETHANONEDOCTYPE QT_TRANSLATE_NOOP("QXml", "more than one document type definition") |
#define | XMLERR_OK QT_TRANSLATE_NOOP("QXml", "no error occurred") |
#define | XMLERR_RECURSIVEENTITIES QT_TRANSLATE_NOOP("QXml", "recursive entities") |
#define | XMLERR_SDDECLEXPECTED QT_TRANSLATE_NOOP("QXml", "standalone declaration expected while reading the XML declaration") |
#define | XMLERR_TAGMISMATCH QT_TRANSLATE_NOOP("QXml", "tag mismatch") |
#define | XMLERR_UNEXPECTEDCHARACTER QT_TRANSLATE_NOOP("QXml", "unexpected character") |
#define | XMLERR_UNEXPECTEDEOF QT_TRANSLATE_NOOP("QXml", "unexpected end of file") |
#define | XMLERR_UNPARSEDENTITYREFERENCE QT_TRANSLATE_NOOP("QXml", "unparsed entity reference in wrong context") |
#define | XMLERR_VERSIONEXPECTED QT_TRANSLATE_NOOP("QXml", "version expected while reading the XML declaration") |
#define | XMLERR_WRONGVALUEFORSDECL QT_TRANSLATE_NOOP("QXml", "wrong value for standalone declaration") |
Typedefs | |
typedef QMap< QString, QString > | NamespaceMap |
Enumerations | |
enum | NameChar { NameBeginning, NameNotBeginning, NotName, NameBeginning, NameNotBeginning, NotName } |
Functions | |
static NameChar | determineNameChar (QChar ch) |
static QString | extractEncodingDecl (const QString &text, bool *needMoreText) |
static NameChar | fastDetermineNameChar (QChar ch) |
static bool | is_S (QChar ch) |
static bool | stripTextDecl (QString &str) |
static void | updateValue (QString &value, const QChar *array, int &arrayPos, int &valueLen) |
Variables | |
static const char | Begi = (char)NameBeginning |
static const signed char | charLookupTable [256] |
static const signed char | cltAmp = 2 |
static const signed char | cltCB = 9 |
static const signed char | cltDash = 8 |
static const signed char | cltDq = 12 |
static const signed char | cltEm = 7 |
static const signed char | cltEq = 11 |
static const signed char | cltGt = 3 |
static const signed char | cltLt = 4 |
static const signed char | cltOB = 10 |
static const signed char | cltPer = 1 |
static const signed char | cltQm = 6 |
static const signed char | cltSlash = 5 |
static const signed char | cltSq = 13 |
static const signed char | cltUnknown = 14 |
static const signed char | cltWS = 0 |
static const char | nameCharTable [128] |
static const char | NotN = (char)NotName |
static const char | NtBg = (char)NameNotBeginning |
bool | qt_xml_skipped_entity_in_content |
#define XMLERR_EDECLORSDDECLEXPECTED QT_TRANSLATE_NOOP("QXml", "encoding declaration or standalone declaration expected while reading the XML declaration") |
Definition at line 70 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePI().
#define XMLERR_ERRORBYCONSUMER QT_TRANSLATE_NOOP("QXml", "error triggered by consumer") |
Definition at line 60 of file qxml.cpp.
Referenced by QXmlDefaultHandler::errorString().
#define XMLERR_ERRORINTEXTDECL QT_TRANSLATE_NOOP("QXml", "error in the text declaration of an external entity") |
Definition at line 81 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePEReference(), and QXmlSimpleReaderPrivate::processReference().
#define XMLERR_ERRORPARSINGCOMMENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing comment") |
Definition at line 74 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseComment().
#define XMLERR_ERRORPARSINGCONTENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing content") |
Definition at line 65 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseContent().
#define XMLERR_ERRORPARSINGDOCTYPE QT_TRANSLATE_NOOP("QXml", "error occurred while parsing document type definition") |
Definition at line 72 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseDoctype().
#define XMLERR_ERRORPARSINGELEMENT QT_TRANSLATE_NOOP("QXml", "error occurred while parsing element") |
Definition at line 63 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseElement(), and QXmlSimpleReaderPrivate::parseProlog().
#define XMLERR_ERRORPARSINGREFERENCE QT_TRANSLATE_NOOP("QXml", "error occurred while parsing reference") |
Definition at line 75 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseReference().
#define XMLERR_EXTERNALGENERALENTITYINAV QT_TRANSLATE_NOOP("QXml", "external parsed general entity reference not allowed in attribute value") |
Definition at line 77 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::processReference().
#define XMLERR_EXTERNALGENERALENTITYINDTD QT_TRANSLATE_NOOP("QXml", "external parsed general entity reference not allowed in DTD") |
Definition at line 78 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::processReference().
#define XMLERR_INTERNALGENERALENTITYINDTD QT_TRANSLATE_NOOP("QXml", "internal general entity reference not allowed in DTD") |
Definition at line 76 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::processReference().
#define XMLERR_INVALIDNAMEFORPI QT_TRANSLATE_NOOP("QXml", "invalid name for processing instruction") |
Definition at line 67 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePI().
#define XMLERR_LETTEREXPECTED QT_TRANSLATE_NOOP("QXml", "letter is expected") |
Definition at line 73 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseAttlistDecl(), QXmlSimpleReaderPrivate::parseAttType(), QXmlSimpleReaderPrivate::parseEntityDecl(), QXmlSimpleReaderPrivate::parseEntityValue(), QXmlSimpleReaderPrivate::parseMarkupdecl(), QXmlSimpleReaderPrivate::parseName(), QXmlSimpleReaderPrivate::parseNmtoken(), and QXmlSimpleReaderPrivate::parsePEReference().
#define XMLERR_MORETHANONEDOCTYPE QT_TRANSLATE_NOOP("QXml", "more than one document type definition") |
Definition at line 62 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseProlog().
#define XMLERR_OK QT_TRANSLATE_NOOP("QXml", "no error occurred") |
Definition at line 59 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::reportParseError().
#define XMLERR_RECURSIVEENTITIES QT_TRANSLATE_NOOP("QXml", "recursive entities") |
Definition at line 80 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::insertXmlRef().
#define XMLERR_SDDECLEXPECTED QT_TRANSLATE_NOOP("QXml", "standalone declaration expected while reading the XML declaration") |
Definition at line 71 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePI().
#define XMLERR_TAGMISMATCH QT_TRANSLATE_NOOP("QXml", "tag mismatch") |
Definition at line 64 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseElement(), and QXmlSimpleReaderPrivate::processElementETagBegin2().
#define XMLERR_UNEXPECTEDCHARACTER QT_TRANSLATE_NOOP("QXml", "unexpected character") |
Definition at line 66 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseAttribute(), QXmlSimpleReaderPrivate::parseAttValue(), QXmlSimpleReaderPrivate::parseChoiceSeq(), QXmlSimpleReaderPrivate::parseElementDecl(), QXmlSimpleReaderPrivate::parseExternalID(), QXmlSimpleReaderPrivate::parseMisc(), QXmlSimpleReaderPrivate::parseNotationDecl(), QXmlSimpleReaderPrivate::parsePI(), and QXmlSimpleReaderPrivate::parseString().
#define XMLERR_UNEXPECTEDEOF QT_TRANSLATE_NOOP("QXml", "unexpected end of file") |
Definition at line 61 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseBeginOrContinue(), and QXmlSimpleReaderPrivate::unexpectedEof().
#define XMLERR_UNPARSEDENTITYREFERENCE QT_TRANSLATE_NOOP("QXml", "unparsed entity reference in wrong context") |
Definition at line 79 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::processReference().
#define XMLERR_VERSIONEXPECTED QT_TRANSLATE_NOOP("QXml", "version expected while reading the XML declaration") |
Definition at line 68 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePI().
#define XMLERR_WRONGVALUEFORSDECL QT_TRANSLATE_NOOP("QXml", "wrong value for standalone declaration") |
Definition at line 69 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePI().
enum NameChar |
Enumerator | |
---|---|
NameBeginning | |
NameNotBeginning | |
NotName | |
NameBeginning | |
NameNotBeginning | |
NotName |
Definition at line 3437 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseAttribute(), QXmlSimpleReaderPrivate::parseNmtoken(), and QXmlSimpleReaderPrivate::parsePI().
Definition at line 1596 of file qxml.cpp.
Referenced by QXmlInputSource::fromRawData().
Definition at line 3420 of file qxml.cpp.
Referenced by determineNameChar(), QXmlSimpleReaderPrivate::parseElement(), and QXmlSimpleReaderPrivate::parseName().
|
inlinestatic |
Definition at line 3380 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::eat_ws(), QXmlSimpleReaderPrivate::parseAttlistDecl(), QXmlSimpleReaderPrivate::parseAttType(), QXmlSimpleReaderPrivate::parseChoiceSeq(), QXmlSimpleReaderPrivate::parseDoctype(), QXmlSimpleReaderPrivate::parseElement(), QXmlSimpleReaderPrivate::parseElementDecl(), QXmlSimpleReaderPrivate::parseEntityDecl(), QXmlSimpleReaderPrivate::parseExternalID(), QXmlSimpleReaderPrivate::parseMisc(), QXmlSimpleReaderPrivate::parseNotationDecl(), QXmlSimpleReaderPrivate::parsePI(), and QXmlSimpleReaderPrivate::parseProlog().
|
static |
Definition at line 189 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parsePEReference(), and QXmlSimpleReaderPrivate::processReference().
|
inlinestatic |
Definition at line 8481 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::name(), QXmlSimpleReaderPrivate::nameAddC(), QXmlSimpleReaderPrivate::ref(), QXmlSimpleReaderPrivate::refAddC(), QXmlSimpleReaderPrivate::string(), and QXmlSimpleReaderPrivate::stringAddC().
|
static |
|
static |
Definition at line 107 of file qxml.cpp.
Referenced by QXmlSimpleReaderPrivate::parseContent().
|
static |
|
static |
bool qt_xml_skipped_entity_in_content |
Definition at line 104 of file qxml.cpp.
Referenced by QXmlSimpleReader::parse(), QDomHandler::processingInstruction(), and QXmlSimpleReaderPrivate::processReference().