PHP 7.4.33
Preview: htmlparser.pxd Size: 2.80 KB
/lib64/python2.7/site-packages/lxml/includes/htmlparser.pxd

from libc.string cimport const_char

from lxml.includes.tree cimport xmlDoc
from lxml.includes.tree cimport xmlInputReadCallback, xmlInputCloseCallback
from lxml.includes.xmlparser cimport xmlParserCtxt, xmlSAXHandler, xmlSAXHandlerV1

cdef extern from "libxml/HTMLparser.h":
    ctypedef enum htmlParserOption:
        HTML_PARSE_NOERROR    # suppress error reports
        HTML_PARSE_NOWARNING  # suppress warning reports
        HTML_PARSE_PEDANTIC   # pedantic error reporting
        HTML_PARSE_NOBLANKS   # remove blank nodes
        HTML_PARSE_NONET      # Forbid network access
        # libxml2 2.6.21+ only:
        HTML_PARSE_RECOVER    # Relaxed parsing
        HTML_PARSE_COMPACT    # compact small text nodes
        # libxml2 2.7.7+ only:
        HTML_PARSE_NOIMPLIED  # Do not add implied html/body... elements
        # libxml2 2.7.8+ only:
        HTML_PARSE_NODEFDTD   # do not default a doctype if not found
        # libxml2 2.8.0+ only:
        XML_PARSE_IGNORE_ENC  # ignore internal document encoding hint

    xmlSAXHandlerV1 htmlDefaultSAXHandler

    cdef xmlParserCtxt* htmlCreateMemoryParserCtxt(
        char* buffer, int size) nogil
    cdef xmlParserCtxt* htmlCreateFileParserCtxt(
        char* filename, char* encoding) nogil
    cdef xmlParserCtxt* htmlCreatePushParserCtxt(xmlSAXHandler* sax,
                                                 void* user_data,
                                                 char* chunk, int size,
                                                 char* filename, int enc) nogil
    cdef void htmlFreeParserCtxt(xmlParserCtxt* ctxt) nogil
    cdef void htmlCtxtReset(xmlParserCtxt* ctxt) nogil
    cdef int htmlCtxtUseOptions(xmlParserCtxt* ctxt, int options) nogil
    cdef int htmlParseDocument(xmlParserCtxt* ctxt) nogil
    cdef int htmlParseChunk(xmlParserCtxt* ctxt, 
                            char* chunk, int size, int terminate) nogil

    cdef xmlDoc* htmlCtxtReadFile(xmlParserCtxt* ctxt,
                                  char* filename, const_char* encoding,
                                  int options) nogil
    cdef xmlDoc* htmlCtxtReadDoc(xmlParserCtxt* ctxt,
                                 char* buffer, char* URL, const_char* encoding,
                                 int options) nogil
    cdef xmlDoc* htmlCtxtReadIO(xmlParserCtxt* ctxt, 
                                xmlInputReadCallback ioread, 
                                xmlInputCloseCallback ioclose, 
                                void* ioctx,
                                char* URL, const_char* encoding,
                                int options) nogil
    cdef xmlDoc* htmlCtxtReadMemory(xmlParserCtxt* ctxt,
                                    char* buffer, int size,
                                    char* filename, const_char* encoding,
                                    int options) nogil

Directory Contents

Dirs: 0 × Files: 21

Name Size Perms Modified Actions
1.10 KB lrw-r--r-- 2012-10-07 18:04:15
Edit Download
96 B lrw-r--r-- 2012-10-07 18:04:15
Edit Download
671 B lrw-r--r-- 2014-02-26 19:36:12
Edit Download
9.88 KB lrw-r--r-- 2017-09-17 07:43:53
Edit Download
15.39 KB lrw-r--r-- 2018-03-13 20:13:32
Edit Download
2.80 KB lrw-r--r-- 2014-09-05 12:44:23
Edit Download
71 B lrw-r--r-- 2018-06-27 16:04:17
Edit Download
2.61 KB lrw-r--r-- 2014-09-05 12:44:23
Edit Download
1.60 KB lrw-r--r-- 2014-09-05 12:44:23
Edit Download
19.48 KB lrw-r--r-- 2017-01-08 14:37:33
Edit Download
139 B lrw-r--r-- 2012-10-07 18:04:15
Edit Download
852 B lrw-r--r-- 2014-09-05 12:44:23
Edit Download
56.58 KB lrw-r--r-- 2017-05-01 14:11:37
Edit Download
10.60 KB lrw-r--r-- 2017-05-01 14:11:37
Edit Download
1.66 KB lrw-r--r-- 2012-10-07 18:04:15
Edit Download
5.66 KB lrw-r--r-- 2012-10-07 18:04:15
Edit Download
8.15 KB lrw-r--r-- 2017-09-17 07:43:53
Edit Download
0 B lrw-r--r-- 2017-09-17 07:43:53
Edit Download
0 B lrw-r--r-- 2012-10-07 18:04:15
Edit Download
147 B lrw-r--r-- 2022-04-21 13:54:51
Edit Download
147 B lrw-r--r-- 2022-04-21 13:54:51
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).