⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 legacy.c.svn-base

📁 这是一个用于解析xml文件的类库。使用这个类库
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
                        "xmlNamespaceParseNCName() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlNamespaceParseQName: * @ctxt:  an XML parser context * @prefix:  a xmlChar **  * * TODO: this seems not in use anymore, the namespace handling is done on *       top of the SAX interfaces, i.e. not on raw input. * * parse an XML qualified name * * [NS 5] QName ::= (Prefix ':')? LocalPart * * [NS 6] Prefix ::= NCName * * [NS 7] LocalPart ::= NCName * * Returns the local part, and prefix is updated *   to get the Prefix if any. */xmlChar *xmlNamespaceParseQName(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,                       xmlChar ** prefix ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlNamespaceParseQName() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlNamespaceParseNSDef: * @ctxt:  an XML parser context * * parse a namespace prefix declaration * * TODO: this seems not in use anymore, the namespace handling is done on *       top of the SAX interfaces, i.e. not on raw input. * * [NS 1] NSDef ::= PrefixDef Eq SystemLiteral * * [NS 2] PrefixDef ::= 'xmlns' (':' NCName)? * * Returns the namespace name */xmlChar *xmlNamespaceParseNSDef(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlNamespaceParseNSDef() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlParseQuotedString: * @ctxt:  an XML parser context * * Parse and return a string between quotes or doublequotes * * TODO: Deprecated, to  be removed at next drop of binary compatibility * * Returns the string parser or NULL. */xmlChar *xmlParseQuotedString(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlParseQuotedString() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlParseNamespace: * @ctxt:  an XML parser context * * xmlParseNamespace: parse specific PI '<?namespace ...' constructs. * * This is what the older xml-name Working Draft specified, a bunch of * other stuff may still rely on it, so support is still here as * if it was declared on the root of the Tree:-( * * TODO: remove from library * * To be removed at next drop of binary compatibility */voidxmlParseNamespace(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlParseNamespace() deprecated function reached\n");        deprecated = 1;    }}/** * xmlScanName: * @ctxt:  an XML parser context * * Trickery: parse an XML name but without consuming the input flow * Needed for rollback cases. Used only when parsing entities references. * * TODO: seems deprecated now, only used in the default part of *       xmlParserHandleReference * * [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | *                  CombiningChar | Extender * * [5] Name ::= (Letter | '_' | ':') (NameChar)* * * [6] Names ::= Name (S Name)* * * Returns the Name parsed or NULL */xmlChar *xmlScanName(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlScanName() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlParserHandleReference: * @ctxt:  the parser context *  * TODO: Remove, now deprecated ... the test is done directly in the *       content parsing * routines. * * [67] Reference ::= EntityRef | CharRef * * [68] EntityRef ::= '&' Name ';' * * [ WFC: Entity Declared ] * the Name given in the entity reference must match that in an entity * declaration, except that well-formed documents need not declare any * of the following entities: amp, lt, gt, apos, quot.  * * [ WFC: Parsed Entity ] * An entity reference must not contain the name of an unparsed entity * * [66] CharRef ::= '&#' [0-9]+ ';' | *                  '&#x' [0-9a-fA-F]+ ';' * * A PEReference may have been detected in the current input stream * the handling is done accordingly to  *      http://www.w3.org/TR/REC-xml#entproc */voidxmlParserHandleReference(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlParserHandleReference() deprecated function reached\n");        deprecated = 1;    }    return;}/** * xmlHandleEntity: * @ctxt:  an XML parser context * @entity:  an XML entity pointer. * * Default handling of defined entities, when should we define a new input * stream ? When do we just handle that as a set of chars ? * * OBSOLETE: to be removed at some point. */voidxmlHandleEntity(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,                xmlEntityPtr entity ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlHandleEntity() deprecated function reached\n");        deprecated = 1;    }}/** * xmlNewGlobalNs: * @doc:  the document carrying the namespace * @href:  the URI associated * @prefix:  the prefix for the namespace * * Creation of a Namespace, the old way using PI and without scoping *   DEPRECATED !!! * It now create a namespace on the root element of the document if found. * Returns NULL this functionality had been removed */xmlNsPtrxmlNewGlobalNs(xmlDocPtr doc ATTRIBUTE_UNUSED,               const xmlChar * href ATTRIBUTE_UNUSED,               const xmlChar * prefix ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlNewGlobalNs() deprecated function reached\n");        deprecated = 1;    }    return (NULL);}/** * xmlUpgradeOldNs: * @doc:  a document pointer *  * Upgrade old style Namespaces (PI) and move them to the root of the document. * DEPRECATED */voidxmlUpgradeOldNs(xmlDocPtr doc ATTRIBUTE_UNUSED){    static int deprecated = 0;    if (!deprecated) {        xmlGenericError(xmlGenericErrorContext,                        "xmlUpgradeOldNs() deprecated function reached\n");        deprecated = 1;    }}/** * xmlEncodeEntities: * @doc:  the document containing the string * @input:  A string to convert to XML. * * TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary *       compatibility * * People must migrate their code to xmlEncodeEntitiesReentrant ! * This routine will issue a warning when encountered. *  * Returns NULL */const xmlChar *xmlEncodeEntities(xmlDocPtr doc ATTRIBUTE_UNUSED,                  const xmlChar * input ATTRIBUTE_UNUSED){    static int warning = 1;    if (warning) {        xmlGenericError(xmlGenericErrorContext,                        "Deprecated API xmlEncodeEntities() used\n");        xmlGenericError(xmlGenericErrorContext,                        "   change code to use xmlEncodeEntitiesReentrant()\n");        warning = 0;    }    return (NULL);}/************************************************************************ *									* *		Old set of SAXv1 functions 				* *									* ************************************************************************/static int deprecated_v1_msg = 0;#define DEPRECATED(n)						\    if (deprecated_v1_msg == 0)					\	xmlGenericError(xmlGenericErrorContext,			\	  "Use of deprecated SAXv1 function %s\n", n);		\    deprecated_v1_msg++;/** * getPublicId: * @ctx: the user data (XML parser context) * * Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" * DEPRECATED: use xmlSAX2GetPublicId() * * Returns a xmlChar * */const xmlChar *getPublicId(void *ctx){    DEPRECATED("getPublicId")        return (xmlSAX2GetPublicId(ctx));}/** * getSystemId: * @ctx: the user data (XML parser context) * * Provides the system ID, basically URL or filename e.g. * http://www.sgmlsource.com/dtds/memo.dtd * DEPRECATED: use xmlSAX2GetSystemId() * * Returns a xmlChar * */const xmlChar *getSystemId(void *ctx){    DEPRECATED("getSystemId")        return (xmlSAX2GetSystemId(ctx));}/** * getLineNumber: * @ctx: the user data (XML parser context) * * Provide the line number of the current parsing point. * DEPRECATED: use xmlSAX2GetLineNumber() * * Returns an int */intgetLineNumber(void *ctx){    DEPRECATED("getLineNumber")        return (xmlSAX2GetLineNumber(ctx));}/** * getColumnNumber: * @ctx: the user data (XML parser context) * * Provide the column number of the current parsing point. * DEPRECATED: use xmlSAX2GetColumnNumber() * * Returns an int */intgetColumnNumber(void *ctx){    DEPRECATED("getColumnNumber")        return (xmlSAX2GetColumnNumber(ctx));}/** * isStandalone: * @ctx: the user data (XML parser context) * * Is this document tagged standalone ? * DEPRECATED: use xmlSAX2IsStandalone() * * Returns 1 if true */intisStandalone(void *ctx){    DEPRECATED("isStandalone")        return (xmlSAX2IsStandalone(ctx));}/** * hasInternalSubset: * @ctx: the user data (XML parser context) * * Does this document has an internal subset * DEPRECATED: use xmlSAX2HasInternalSubset() * * Returns 1 if true */inthasInternalSubset(void *ctx){    DEPRECATED("hasInternalSubset")        return (xmlSAX2HasInternalSubset(ctx));}/** * hasExternalSubset: * @ctx: the user data (XML parser context) * * Does this document has an external subset * DEPRECATED: use xmlSAX2HasExternalSubset() * * Returns 1 if true */inthasExternalSubset(void *ctx){    DEPRECATED("hasExternalSubset")        return (xmlSAX2HasExternalSubset(ctx));}/** * internalSubset: * @ctx:  the user data (XML parser context) * @name:  the root element name * @ExternalID:  the external ID * @SystemID:  the SYSTEM ID (e.g. filename or URL) * * Callback on internal subset declaration. * DEPRECATED: use xmlSAX2InternalSubset() */voidinternalSubset(void *ctx, const xmlChar * name,               const xmlChar * ExternalID, const xmlChar * SystemID){    DEPRECATED("internalSubset")        xmlSAX2InternalSubset(ctx, name, ExternalID, SystemID);}/** * externalSubset: * @ctx: the user data (XML parser context) * @name:  the root element name * @ExternalID:  the external ID * @SystemID:  the SYSTEM ID (e.g. filename or URL) * * Callback on external subset declaration. * DEPRECATED: use xmlSAX2ExternalSubset() */void

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -