Lines Matching refs:decoding_encoding_ctx
452 …st lxb_encoding_data_t *encoding_data, dom_decoding_encoding_ctx *decoding_encoding_ctx, dom_lexbo… in dom_setup_parser_encoding_manually() argument
456 decoding_encoding_ctx->decode_data = encoding_data; in dom_setup_parser_encoding_manually()
459 &decoding_encoding_ctx->decode, in dom_setup_parser_encoding_manually()
460 decoding_encoding_ctx->decode_data, in dom_setup_parser_encoding_manually()
461 decoding_encoding_ctx->codepoints, in dom_setup_parser_encoding_manually()
462 sizeof(decoding_encoding_ctx->codepoints) / sizeof(*decoding_encoding_ctx->codepoints) in dom_setup_parser_encoding_manually()
465 &decoding_encoding_ctx->decode, in dom_setup_parser_encoding_manually()
470 …decoding_encoding_ctx->fast_path = decoding_encoding_ctx->decode_data == decoding_encoding_ctx->en… in dom_setup_parser_encoding_manually()
472 if (decoding_encoding_ctx->fast_path) { in dom_setup_parser_encoding_manually()
476 application_data->current_input_codepoints = decoding_encoding_ctx->codepoints; in dom_setup_parser_encoding_manually()
484 dom_decoding_encoding_ctx *decoding_encoding_ctx, in dom_setup_parser_encoding_implicitly() argument
492 …((const lxb_char_t *) buf_start, dom_encoding_data.encoding_data, decoding_encoding_ctx, applicati… in dom_setup_parser_encoding_implicitly()
551 dom_decoding_encoding_ctx *decoding_encoding_ctx, in dom_decode_encode_fast_path() argument
556 decoding_encoding_ctx->decode.status = LXB_STATUS_OK; in dom_decode_encode_fast_path()
562 if (decoding_encoding_ctx->decode.u.utf_8.need == 0) { in dom_decode_encode_fast_path()
571 …lxb_codepoint_t codepoint = lxb_encoding_decode_utf_8_single(&decoding_encoding_ctx->decode, &buf_… in dom_decode_encode_fast_path()
592 decoding_encoding_ctx->decode.status = LXB_STATUS_CONTINUE; in dom_decode_encode_fast_path()
638 dom_decoding_encoding_ctx *decoding_encoding_ctx, in dom_decode_encode_slow_path() argument
646 …decode_status = decoding_encoding_ctx->decode_data->decode(&decoding_encoding_ctx->decode, &buf_re… in dom_decode_encode_slow_path()
648 …const lxb_codepoint_t *codepoints_ref = (const lxb_codepoint_t *) decoding_encoding_ctx->codepoint… in dom_decode_encode_slow_path()
649 size_t decoding_buffer_used = lxb_encoding_decode_buf_used(&decoding_encoding_ctx->decode); in dom_decode_encode_slow_path()
650 const lxb_codepoint_t *codepoints_end = decoding_encoding_ctx->codepoints + decoding_buffer_used; in dom_decode_encode_slow_path()
652 …encode_status = decoding_encoding_ctx->encode_data->encode(&decoding_encoding_ctx->encode, &codepo… in dom_decode_encode_slow_path()
658 lxb_encoding_encode_buf_used(&decoding_encoding_ctx->encode), in dom_decode_encode_slow_path()
659 decoding_encoding_ctx->encoding_output, in dom_decode_encode_slow_path()
666 lxb_encoding_encode_buf_used_set(&decoding_encoding_ctx->encode, 0); in dom_decode_encode_slow_path()
668 lxb_encoding_decode_buf_used_set(&decoding_encoding_ctx->decode, 0); in dom_decode_encode_slow_path()
683 dom_decoding_encoding_ctx *decoding_encoding_ctx, in dom_parse_decode_encode_step() argument
688 if (decoding_encoding_ctx->fast_path) { in dom_parse_decode_encode_step()
695 decoding_encoding_ctx, in dom_parse_decode_encode_step()
706 decoding_encoding_ctx, in dom_parse_decode_encode_step()
717 dom_decoding_encoding_ctx *decoding_encoding_ctx, in dom_parse_decode_encode_finish() argument
724 status = lxb_encoding_decode_finish(&decoding_encoding_ctx->decode); in dom_parse_decode_encode_finish()
727 size_t decoding_buffer_size = lxb_encoding_decode_buf_used(&decoding_encoding_ctx->decode); in dom_parse_decode_encode_finish()
729 …const lxb_codepoint_t *codepoints_ref = (const lxb_codepoint_t *) decoding_encoding_ctx->codepoint… in dom_parse_decode_encode_finish()
731 …status = decoding_encoding_ctx->encode_data->encode(&decoding_encoding_ctx->encode, &codepoints_re… in dom_parse_decode_encode_finish()
736 status = lxb_encoding_encode_finish(&decoding_encoding_ctx->encode); in dom_parse_decode_encode_finish()
738 if (lxb_encoding_encode_buf_used(&decoding_encoding_ctx->encode) in dom_parse_decode_encode_finish()
743 lxb_encoding_encode_buf_used(&decoding_encoding_ctx->encode), in dom_parse_decode_encode_finish()
744 decoding_encoding_ctx->encoding_output, in dom_parse_decode_encode_finish()
745 lxb_encoding_decode_buf_used(&decoding_encoding_ctx->decode), in dom_parse_decode_encode_finish()
857 dom_decoding_encoding_ctx decoding_encoding_ctx; in PHP_METHOD() local
858 dom_decoding_encoding_ctx_init(&decoding_encoding_ctx); in PHP_METHOD()
868 …dom_setup_parser_encoding_manually(buf_ref, encoding_data, &decoding_encoding_ctx, &application_da… in PHP_METHOD()
870 …dom_setup_parser_encoding_implicitly(&buf_ref, &source_len, &decoding_encoding_ctx, &application_d… in PHP_METHOD()
887 …const size_t MAX_CHUNK_SIZE = sizeof(decoding_encoding_ctx.encoding_output) / sizeof(*decoding_enc… in PHP_METHOD()
900 &decoding_encoding_ctx, in PHP_METHOD()
909 …if (!dom_parse_decode_encode_finish(&ctx, document, parser, &decoding_encoding_ctx, &tokenizer_err… in PHP_METHOD()
944 if (decoding_encoding_ctx.decode_data) { in PHP_METHOD()
945 lxml_doc->encoding = xmlStrdup((const xmlChar *) decoding_encoding_ctx.decode_data->name); in PHP_METHOD()
1015 dom_decoding_encoding_ctx decoding_encoding_ctx; in PHP_METHOD() local
1016 dom_decoding_encoding_ctx_init(&decoding_encoding_ctx); in PHP_METHOD()
1028 …arser_encoding_manually((const lxb_char_t *) buf, encoding_data, &decoding_encoding_ctx, &applicat… in PHP_METHOD()
1053 &decoding_encoding_ctx, in PHP_METHOD()
1081 …dom_setup_parser_encoding_implicitly(&buf_ref, (size_t *) &read, &decoding_encoding_ctx, &applicat… in PHP_METHOD()
1091 &decoding_encoding_ctx, in PHP_METHOD()
1100 …if (!dom_parse_decode_encode_finish(&ctx, document, parser, &decoding_encoding_ctx, &tokenizer_err… in PHP_METHOD()
1129 if (decoding_encoding_ctx.decode_data) { in PHP_METHOD()
1130 lxml_doc->encoding = xmlStrdup((const xmlChar *) decoding_encoding_ctx.decode_data->name); in PHP_METHOD()