libxml / injectable_functions /SAX2_injectable_functions.json
AryaWu's picture
Upload folder using huggingface_hub
6baed57 verified
[
{
"function_name": "LIBXML_ATTR_FORMAT",
"function_signature": "static void LIBXML_ATTR_FORMAT(3,0) xmlErrValid(xmlParserCtxtPtr ctxt, xmlParserErrors error,\n const char *msg, const xmlChar *str1, const xmlChar *str2)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_DTD, error, XML_ERR_ERROR,\n str1, str2, NULL, 0, msg, str1, str2); if (ctxt != NULL)\n\tctxt->valid = 0; }\n#endif /* LIBXML_VALID_ENABLED */ /**\n * Handle a fatal parser error, i.e. violating Well-Formedness constraints\n *\n * @param ctxt an XML parser context\n * @param error the error number\n * @param msg the error message\n * @param str1 an error string\n * @param str2 an error string\n */ static void LIBXML_ATTR_FORMAT(3,0)\nxmlFatalErrMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,\n const char *msg, const xmlChar *str1, const xmlChar *str2)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, error, XML_ERR_FATAL,\n str1, str2, NULL, 0, msg, str1, str2); } /**\n * Handle an xml:id error\n *\n * @param ctxt an XML validation parser context\n * @param error the error number\n * @param msg the error message\n * @param str1 extra data\n */ static void LIBXML_ATTR_FORMAT(3,0)\nxmlErrId(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg,\n const xmlChar *str1)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, error, XML_ERR_ERROR,\n str1, NULL, NULL, 0, msg, str1); } /**\n * Handle a parser warning\n *\n * @param ctxt an XML parser context\n * @param error the error number\n * @param msg the error message\n * @param str1 an error string\n */ static void LIBXML_ATTR_FORMAT(3,0)\nxmlWarnMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,\n const char *msg, const xmlChar *str1)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, error, XML_ERR_WARNING,\n str1, NULL, NULL, 0, msg, str1); } /**\n * Handle a namespace warning\n *\n * @param ctxt an XML parser context\n * @param error the error number\n * @param msg the error message\n * @param str1 an error string\n * @param str2 an error string\n */ static void LIBXML_ATTR_FORMAT(3,0)\nxmlNsWarnMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,\n const char *msg, const xmlChar *str1, const xmlChar *str2)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_NAMESPACE, error, XML_ERR_WARNING,\n str1, str2, NULL, 0, msg, str1, str2); } /**\n * Provides the public ID e.g. \"-//SGMLSOURCE//DTD DEMO//EN\"\n *\n * @param ctx the user data (XML parser context)\n * @returns a xmlChar *\n */ const xmlChar *\nxmlSAX2GetPublicId(void *ctx ATTRIBUTE_UNUSED)",
"test_filename": "tests_SAX2_LIBXML_ATTR_FORMAT.c"
},
{
"function_name": "xmlSAX2InternalSubset",
"function_signature": "void xmlSAX2InternalSubset(void *ctx, const xmlChar *name,\n\t const xmlChar *publicId, const xmlChar *systemId)",
"test_filename": "tests_SAX2_xmlSAX2InternalSubset.c"
},
{
"function_name": "xmlSAX2ExternalSubset",
"function_signature": "void xmlSAX2ExternalSubset(void *ctx, const xmlChar *name,\n\t const xmlChar *publicId, const xmlChar *systemId)",
"test_filename": "tests_SAX2_xmlSAX2ExternalSubset.c"
},
{
"function_name": "xmlSAX2EntityDecl",
"function_signature": "void xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type,\n const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)",
"test_filename": "tests_SAX2_xmlSAX2EntityDecl.c"
},
{
"function_name": "xmlSAX2AttributeDecl",
"function_signature": "void xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname,\n int type, int def, const xmlChar *defaultValue,\n\t xmlEnumeration *tree)",
"test_filename": "tests_SAX2_xmlSAX2AttributeDecl.c"
},
{
"function_name": "xmlSAX2ElementDecl",
"function_signature": "void xmlSAX2ElementDecl(void *ctx, const xmlChar * name, int type,\n xmlElementContent *content)",
"test_filename": "tests_SAX2_xmlSAX2ElementDecl.c"
},
{
"function_name": "xmlSAX2NotationDecl",
"function_signature": "void xmlSAX2NotationDecl(void *ctx, const xmlChar *name,\n\t const xmlChar *publicId, const xmlChar *systemId)",
"test_filename": "tests_SAX2_xmlSAX2NotationDecl.c"
},
{
"function_name": "xmlSAX2StartDocument",
"function_signature": "void xmlSAX2StartDocument(void *ctx)",
"test_filename": "tests_SAX2_xmlSAX2StartDocument.c"
},
{
"function_name": "xmlSAX2EndDocument",
"function_signature": "void xmlSAX2EndDocument(void *ctx)",
"test_filename": "tests_SAX2_xmlSAX2EndDocument.c"
},
{
"function_name": "xmlSAX2AppendChild",
"function_signature": "static void xmlSAX2AppendChild(xmlParserCtxtPtr ctxt, xmlNodePtr node)",
"test_filename": "tests_SAX2_xmlSAX2AppendChild.c"
},
{
"function_name": "LIBXML_ATTR_FORMAT",
"function_signature": "static void LIBXML_ATTR_FORMAT(3,0) xmlNsErrMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,\n const char *msg, const xmlChar *str1, const xmlChar *str2)\n{\n xmlCtxtErr(ctxt, NULL, XML_FROM_NAMESPACE, error, XML_ERR_ERROR,\n str1, str2, NULL, 0, msg, str1, str2); } /**\n * Handle an attribute that has been read by the parser.\n *\n * Deprecated SAX1 interface.\n *\n * @param ctxt the parser context\n * @param fullname the attribute name, including namespace prefix\n * @param value the attribute value\n * @param prefix the namespace prefix\n */ static void\nxmlSAX1Attribute(xmlParserCtxtPtr ctxt, const xmlChar *fullname,\n const xmlChar *value, const xmlChar *prefix)",
"test_filename": "tests_SAX2_LIBXML_ATTR_FORMAT.c"
},
{
"function_name": "xmlCheckDefaultedAttributes",
"function_signature": "static void xmlCheckDefaultedAttributes(xmlParserCtxtPtr ctxt, const xmlChar *name,\n\tconst xmlChar *prefix, const xmlChar **atts)",
"test_filename": "tests_SAX2_xmlCheckDefaultedAttributes.c"
},
{
"function_name": "xmlSAX1StartElement",
"function_signature": "static void xmlSAX1StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)",
"test_filename": "tests_SAX2_xmlSAX1StartElement.c"
},
{
"function_name": "xmlSAX2HtmlAttribute",
"function_signature": "static void xmlSAX2HtmlAttribute(xmlParserCtxtPtr ctxt, const xmlChar *fullname,\n const xmlChar *value)",
"test_filename": "tests_SAX2_xmlSAX2HtmlAttribute.c"
},
{
"function_name": "xmlSAX2StartHtmlElement",
"function_signature": "static void xmlSAX2StartHtmlElement(xmlParserCtxtPtr ctxt, const xmlChar *fullname,\n const xmlChar **atts)",
"test_filename": "tests_SAX2_xmlSAX2StartHtmlElement.c"
},
{
"function_name": "xmlSAX2StartElement",
"function_signature": "void xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)",
"test_filename": "tests_SAX2_xmlSAX2StartElement.c"
},
{
"function_name": "xmlSAX2EndElement",
"function_signature": "void xmlSAX2EndElement(void *ctx, const xmlChar *name ATTRIBUTE_UNUSED)",
"test_filename": "tests_SAX2_xmlSAX2EndElement.c"
},
{
"function_name": "xmlSAX2TextNode",
"function_signature": "static xmlNodePtr xmlSAX2TextNode(xmlParserCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *str,\n int len)",
"test_filename": "tests_SAX2_xmlSAX2TextNode.c"
},
{
"function_name": "xmlSAX2AttributeNs",
"function_signature": "static xmlAttrPtr xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,\n const xmlChar * localname,\n const xmlChar * prefix,\n\t\t const xmlChar * value,\n\t\t const xmlChar * valueend)",
"test_filename": "tests_SAX2_xmlSAX2AttributeNs.c"
},
{
"function_name": "xmlSAX2StartElementNs",
"function_signature": "void xmlSAX2StartElementNs(void *ctx,\n const xmlChar *localname,\n\t\t const xmlChar *prefix,\n\t\t const xmlChar *URI,\n\t\t int nb_namespaces,\n\t\t const xmlChar **namespaces,\n\t\t int nb_attributes,\n\t\t int nb_defaulted,\n\t\t const xmlChar **attributes)",
"test_filename": "tests_SAX2_xmlSAX2StartElementNs.c"
},
{
"function_name": "xmlSAX2EndElementNs",
"function_signature": "void xmlSAX2EndElementNs(void *ctx,\n const xmlChar * localname ATTRIBUTE_UNUSED,\n const xmlChar * prefix ATTRIBUTE_UNUSED,\n\t\t const xmlChar * URI ATTRIBUTE_UNUSED)",
"test_filename": "tests_SAX2_xmlSAX2EndElementNs.c"
},
{
"function_name": "xmlSAX2Reference",
"function_signature": "void xmlSAX2Reference(void *ctx, const xmlChar *name)",
"test_filename": "tests_SAX2_xmlSAX2Reference.c"
},
{
"function_name": "xmlSAX2Text",
"function_signature": "static void xmlSAX2Text(xmlParserCtxtPtr ctxt, const xmlChar *ch, int len,\n xmlElementType type)",
"test_filename": "tests_SAX2_xmlSAX2Text.c"
},
{
"function_name": "xmlSAX2ProcessingInstruction",
"function_signature": "void xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target,\n const xmlChar *data)",
"test_filename": "tests_SAX2_xmlSAX2ProcessingInstruction.c"
},
{
"function_name": "xmlSAX2Comment",
"function_signature": "void xmlSAX2Comment(void *ctx, const xmlChar *value)",
"test_filename": "tests_SAX2_xmlSAX2Comment.c"
},
{
"function_name": "xmlSAXVersion",
"function_signature": "int xmlSAXVersion(xmlSAXHandler *hdlr, int version)",
"test_filename": "tests_SAX2_xmlSAXVersion.c"
},
{
"function_name": "xmlSAX2InitHtmlDefaultSAXHandler",
"function_signature": "void xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr)",
"test_filename": "tests_SAX2_xmlSAX2InitHtmlDefaultSAXHandler.c"
}
]