📄 parserinternals.h
字号:
(((c) >= 0x05C1) && ((c) <= 0x05C2)) || \ ((c) == 0x05C4) || \ (((c) >= 0x064B) && ((c) <= 0x0652)) || \ ((c) == 0x0670) || \ (((c) >= 0x06D6) && ((c) <= 0x06DC)) || \ (((c) >= 0x06DD) && ((c) <= 0x06DF)) || \ (((c) >= 0x06E0) && ((c) <= 0x06E4)) || \ (((c) >= 0x06E7) && ((c) <= 0x06E8)) || \ (((c) >= 0x06EA) && ((c) <= 0x06ED)) || \ (((c) > 0x0901) && ( /* accelerator */ \ (((c) >= 0x0901) && ((c) <= 0x0903)) || \ ((c) == 0x093C) || \ (((c) >= 0x093E) && ((c) <= 0x094C)) || \ ((c) == 0x094D) || \ (((c) >= 0x0951) && ((c) <= 0x0954)) || \ (((c) >= 0x0962) && ((c) <= 0x0963)) || \ (((c) >= 0x0981) && ((c) <= 0x0983)) || \ ((c) == 0x09BC) || \ ((c) == 0x09BE) || \ ((c) == 0x09BF) || \ (((c) >= 0x09C0) && ((c) <= 0x09C4)) || \ (((c) >= 0x09C7) && ((c) <= 0x09C8)) || \ (((c) >= 0x09CB) && ((c) <= 0x09CD)) || \ ((c) == 0x09D7) || \ (((c) >= 0x09E2) && ((c) <= 0x09E3)) || \ (((c) > 0x0A02) && ( /* accelerator */ \ ((c) == 0x0A02) || \ ((c) == 0x0A3C) || \ ((c) == 0x0A3E) || \ ((c) == 0x0A3F) || \ (((c) >= 0x0A40) && ((c) <= 0x0A42)) || \ (((c) >= 0x0A47) && ((c) <= 0x0A48)) || \ (((c) >= 0x0A4B) && ((c) <= 0x0A4D)) || \ (((c) >= 0x0A70) && ((c) <= 0x0A71)) || \ (((c) >= 0x0A81) && ((c) <= 0x0A83)) || \ ((c) == 0x0ABC) || \ (((c) >= 0x0ABE) && ((c) <= 0x0AC5)) || \ (((c) >= 0x0AC7) && ((c) <= 0x0AC9)) || \ (((c) >= 0x0ACB) && ((c) <= 0x0ACD)) || \ (((c) >= 0x0B01) && ((c) <= 0x0B03)) || \ ((c) == 0x0B3C) || \ (((c) >= 0x0B3E) && ((c) <= 0x0B43)) || \ (((c) >= 0x0B47) && ((c) <= 0x0B48)) || \ (((c) >= 0x0B4B) && ((c) <= 0x0B4D)) || \ (((c) >= 0x0B56) && ((c) <= 0x0B57)) || \ (((c) >= 0x0B82) && ((c) <= 0x0B83)) || \ (((c) >= 0x0BBE) && ((c) <= 0x0BC2)) || \ (((c) >= 0x0BC6) && ((c) <= 0x0BC8)) || \ (((c) >= 0x0BCA) && ((c) <= 0x0BCD)) || \ ((c) == 0x0BD7) || \ (((c) >= 0x0C01) && ((c) <= 0x0C03)) || \ (((c) >= 0x0C3E) && ((c) <= 0x0C44)) || \ (((c) >= 0x0C46) && ((c) <= 0x0C48)) || \ (((c) >= 0x0C4A) && ((c) <= 0x0C4D)) || \ (((c) >= 0x0C55) && ((c) <= 0x0C56)) || \ (((c) >= 0x0C82) && ((c) <= 0x0C83)) || \ (((c) >= 0x0CBE) && ((c) <= 0x0CC4)) || \ (((c) >= 0x0CC6) && ((c) <= 0x0CC8)) || \ (((c) >= 0x0CCA) && ((c) <= 0x0CCD)) || \ (((c) >= 0x0CD5) && ((c) <= 0x0CD6)) || \ (((c) >= 0x0D02) && ((c) <= 0x0D03)) || \ (((c) >= 0x0D3E) && ((c) <= 0x0D43)) || \ (((c) >= 0x0D46) && ((c) <= 0x0D48)) || \ (((c) >= 0x0D4A) && ((c) <= 0x0D4D)) || \ ((c) == 0x0D57) || \ (((c) > 0x0E31) && ( /* accelerator */ \ ((c) == 0x0E31) || \ (((c) >= 0x0E34) && ((c) <= 0x0E3A)) || \ (((c) >= 0x0E47) && ((c) <= 0x0E4E)) || \ ((c) == 0x0EB1) || \ (((c) >= 0x0EB4) && ((c) <= 0x0EB9)) || \ (((c) >= 0x0EBB) && ((c) <= 0x0EBC)) || \ (((c) >= 0x0EC8) && ((c) <= 0x0ECD)) || \ (((c) >= 0x0F18) && ((c) <= 0x0F19)) || \ ((c) == 0x0F35) || \ ((c) == 0x0F37) || \ ((c) == 0x0F39) || \ ((c) == 0x0F3E) || \ ((c) == 0x0F3F) || \ (((c) >= 0x0F71) && ((c) <= 0x0F84)) || \ (((c) >= 0x0F86) && ((c) <= 0x0F8B)) || \ (((c) >= 0x0F90) && ((c) <= 0x0F95)) || \ ((c) == 0x0F97) || \ (((c) >= 0x0F99) && ((c) <= 0x0FAD)) || \ (((c) >= 0x0FB1) && ((c) <= 0x0FB7)) || \ ((c) == 0x0FB9) || \ (((c) >= 0x20D0) && ((c) <= 0x20DC)) || \ ((c) == 0x20E1) || \ (((c) >= 0x302A) && ((c) <= 0x302F)) || \ ((c) == 0x3099) || \ ((c) == 0x309A)) /* accelerator */ ))))))))/* * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | * [#x309D-#x309E] | [#x30FC-#x30FE] */#define IS_EXTENDER(c) \ (((c) == 0xb7) || ((c) == 0x2d0) || ((c) == 0x2d1) || \ ((c) == 0x387) || ((c) == 0x640) || ((c) == 0xe46) || \ ((c) == 0xec6) || ((c) == 0x3005) || \ (((c) >= 0x3031) && ((c) <= 0x3035)) || \ (((c) >= 0x309b) && ((c) <= 0x309e)) || \ (((c) >= 0x30fc) && ((c) <= 0x30fe)))/* * [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029] */#define IS_IDEOGRAPHIC(c) \ ((((c) >= 0x4e00) && ((c) <= 0x9fa5)) || \ (((c) >= 0xf900) && ((c) <= 0xfa2d)) || \ (((c) >= 0x3021) && ((c) <= 0x3029)) || \ ((c) == 0x3007))/* * [84] Letter ::= BaseChar | Ideographic */#define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))/* * [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] */#define IS_PUBIDCHAR(c) \ (((c) == 0x20) || ((c) == 0x0D) || ((c) == 0x0A) || \ (((c) >= 'a') && ((c) <= 'z')) || \ (((c) >= 'A') && ((c) <= 'Z')) || \ (((c) >= '0') && ((c) <= '9')) || \ ((c) == '-') || ((c) == '\'') || ((c) == '(') || ((c) == ')') || \ ((c) == '+') || ((c) == ',') || ((c) == '.') || ((c) == '/') || \ ((c) == ':') || ((c) == '=') || ((c) == '?') || ((c) == ';') || \ ((c) == '!') || ((c) == '*') || ((c) == '#') || ((c) == '@') || \ ((c) == '$') || ((c) == '_') || ((c) == '%'))#define SKIP_EOL(p) \ if (*(p) == 0x13) { p++ ; if (*(p) == 0x10) p++; } \ if (*(p) == 0x10) { p++ ; if (*(p) == 0x13) p++; }#define MOVETO_ENDTAG(p) \ while ((*p) && (*(p) != '>')) (p)++#define MOVETO_STARTTAG(p) \ while ((*p) && (*(p) != '<')) (p)++/** * Parser context */xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur);xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename);xmlParserCtxtPtr xmlCreateMemoryParserCtxt(char *buffer, int size);xmlParserCtxtPtr xmlNewParserCtxt (void);xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL, const xmlChar *ID, const xmlChar *base);void xmlSwitchEncoding (xmlParserCtxtPtr ctxt, xmlCharEncoding enc);void xmlFreeParserCtxt (xmlParserCtxtPtr ctxt);/** * Entities */void xmlHandleEntity (xmlParserCtxtPtr ctxt, xmlEntityPtr entity);/** * Input Streams */xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, xmlEntityPtr entity);void xmlPushInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr input);xmlChar xmlPopInput (xmlParserCtxtPtr ctxt);void xmlFreeInputStream (xmlParserInputPtr input);xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt, const char *filename);/** * Namespaces. */xmlChar * xmlSplitQName (xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix);xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt, xmlChar **prefix);xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt);void xmlParseNamespace (xmlParserCtxtPtr ctxt);/** * Generic production rules */xmlChar * xmlScanName (xmlParserCtxtPtr ctxt);xmlChar * xmlParseName (xmlParserCtxtPtr ctxt);xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt);xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt, xmlChar **orig);xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt);xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);void xmlParseCharData (xmlParserCtxtPtr ctxt, int cdata);xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt, xmlChar **publicID, int strict);void xmlParseComment (xmlParserCtxtPtr ctxt);xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt);void xmlParsePI (xmlParserCtxtPtr ctxt);void xmlParseNotationDecl (xmlParserCtxtPtr ctxt);void xmlParseEntityDecl (xmlParserCtxtPtr ctxt);int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, xmlChar **value);xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt);xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt);int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree);int xmlParseAttributeType (xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree);void xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);xmlElementContentPtr xmlParseElementMixedContentDecl (xmlParserCtxtPtr ctxt);xmlElementContentPtr xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt);int xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, xmlChar *name, xmlElementContentPtr *result);int xmlParseElementDecl (xmlParserCtxtPtr ctxt);void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);int xmlParseCharRef (xmlParserCtxtPtr ctxt);xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt);void xmlParseReference (xmlParserCtxtPtr ctxt);void xmlParsePEReference (xmlParserCtxtPtr ctxt);void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt, xmlChar **value);xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt);void xmlParseEndTag (xmlParserCtxtPtr ctxt);void xmlParseCDSect (xmlParserCtxtPtr ctxt);void xmlParseContent (xmlParserCtxtPtr ctxt);void xmlParseElement (xmlParserCtxtPtr ctxt);xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt);xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt);xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt);xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);int xmlParseSDDecl (xmlParserCtxtPtr ctxt);void xmlParseXMLDecl (xmlParserCtxtPtr ctxt);void xmlParseTextDecl (xmlParserCtxtPtr ctxt);void xmlParseMisc (xmlParserCtxtPtr ctxt);void xmlParseExternalSubset (xmlParserCtxtPtr ctxt, const xmlChar *ExternalID, const xmlChar *SystemID); /* * Entities substitution */#define XML_SUBSTITUTE_NONE 0#define XML_SUBSTITUTE_REF 1#define XML_SUBSTITUTE_PEREF 2#define XML_SUBSTITUTE_BOTH 3xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt, int len, int what, xmlChar end, xmlChar end2, xmlChar end3);xmlChar * xmlStringDecodeEntities (xmlParserCtxtPtr ctxt, const xmlChar *str, int what, xmlChar end, xmlChar end2, xmlChar end3);/* * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP */int nodePush (xmlParserCtxtPtr ctxt, xmlNodePtr value);xmlNodePtr nodePop (xmlParserCtxtPtr ctxt);int inputPush (xmlParserCtxtPtr ctxt, xmlParserInputPtr value);xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt);#ifdef __cplusplus}#endif#endif /* __XML_PARSER_INTERNALS_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -