Lines Matching refs:source_len
391 static dom_character_encoding_data dom_determine_encoding(const char *source, size_t source_len) in dom_determine_encoding() argument
396 if (source_len >= 3 && source[0] == '\xEF' && source[1] == '\xBB' && source[2] == '\xBF') { in dom_determine_encoding()
400 } else if (source_len >= 2) { in dom_determine_encoding()
419 if (source_len > 1024) { in dom_determine_encoding()
420 source_len = 1024; in dom_determine_encoding()
422 …coding_determine(&encoding, (const lxb_char_t *) source, (const lxb_char_t *) source + source_len); in dom_determine_encoding()
782 size_t source_len, override_encoding_len; in PHP_METHOD() local
788 &source_len, in PHP_METHOD()
834 …dom_setup_parser_encoding_implicitly(&buf_ref, &source_len, &decoding_encoding_ctx, &application_d… in PHP_METHOD()
849 while (source_len > 0) { in PHP_METHOD()
850 size_t chunk_size = source_len; in PHP_METHOD()
855 source_len -= chunk_size; in PHP_METHOD()