Lines Matching refs:parser

82 lxb_html_parse_chunk_prepare(lxb_html_parser_t *parser,
177 (void) lxb_html_parser_unref(doc->parser); in lxb_html_document_interface_destroy()
232 css->parser = lxb_css_parser_create();
233 status = lxb_css_parser_init(css->parser, NULL);
238 lxb_css_parser_memory_set(css->parser, css->memory);
239 lxb_css_parser_selectors_set(css->parser, css->css_selectors);
303 css->parser = lxb_css_parser_destroy(css->parser, true);
335 lxb_css_parser_clean(css->parser);
346 lxb_css_parser_t *parser) in lxb_html_document_css_parser_attach() argument
348 document->css.parser = parser; in lxb_html_document_css_parser_attach()
735 status = lxb_html_parse_chunk_prepare(doc->parser, document); in lxb_html_document_parse()
740 status = lxb_html_parse_chunk_process(doc->parser, html, size); in lxb_html_document_parse()
747 return lxb_html_parse_chunk_end(doc->parser); in lxb_html_document_parse()
770 return lxb_html_parse_chunk_prepare(document->dom_document.parser, in lxb_html_document_parse_chunk_begin()
778 return lxb_html_parse_chunk_process(document->dom_document.parser, in lxb_html_document_parse_chunk()
785 return lxb_html_parse_chunk_end(document->dom_document.parser); in lxb_html_document_parse_chunk_end()
794 lxb_html_parser_t *parser; in lxb_html_document_parse_fragment() local
802 parser = document->dom_document.parser; in lxb_html_document_parse_fragment()
804 status = lxb_html_parse_fragment_chunk_begin(parser, document, in lxb_html_document_parse_fragment()
811 status = lxb_html_parse_fragment_chunk_process(parser, html, size); in lxb_html_document_parse_fragment()
818 return lxb_html_parse_fragment_chunk_end(parser); in lxb_html_document_parse_fragment()
832 lxb_html_parser_t *parser; in lxb_html_document_parse_fragment_chunk_begin() local
839 parser = document->dom_document.parser; in lxb_html_document_parse_fragment_chunk_begin()
841 return lxb_html_parse_fragment_chunk_begin(parser, document, in lxb_html_document_parse_fragment_chunk_begin()
850 return lxb_html_parse_fragment_chunk_process(document->dom_document.parser, in lxb_html_document_parse_fragment_chunk()
857 return lxb_html_parse_fragment_chunk_end(document->dom_document.parser); in lxb_html_document_parse_fragment_chunk_end()
868 if (doc->parser == NULL) { in lxb_html_document_parser_prepare()
869 doc->parser = lxb_html_parser_create(); in lxb_html_document_parser_prepare()
870 status = lxb_html_parser_init(doc->parser); in lxb_html_document_parser_prepare()
873 lxb_html_parser_destroy(doc->parser); in lxb_html_document_parser_prepare()
877 else if (lxb_html_parser_state(doc->parser) != LXB_HTML_PARSER_STATE_BEGIN) { in lxb_html_document_parser_prepare()
878 lxb_html_parser_clean(doc->parser); in lxb_html_document_parser_prepare()