/PHP-8.4/ext/dom/lexbor/lexbor/core/ |
H A D | mraw.c | 42 if (mraw == NULL) { in lexbor_mraw_init() 59 ASAN_POISON_MEMORY_REGION(mraw->mem->chunk->data, mraw->mem->chunk->size); in lexbor_mraw_init() 70 mraw->ref_count = 0; in lexbor_mraw_init() 78 if (mraw != NULL) { in lexbor_mraw_clean() 89 if (mraw == NULL) { in lexbor_mraw_destroy() 93 mraw->mem = lexbor_mem_destroy(mraw->mem, true); in lexbor_mraw_destroy() 94 mraw->cache = lexbor_bst_destroy(mraw->cache, true); in lexbor_mraw_destroy() 100 return mraw; in lexbor_mraw_destroy() 220 mraw->ref_count++; in lexbor_mraw_alloc() 401 lexbor_bst_insert(mraw->cache, lexbor_bst_root_ref(mraw->cache), in lexbor_mraw_free() [all …]
|
H A D | mraw.h | 40 lexbor_mraw_init(lexbor_mraw_t *mraw, size_t chunk_size); 43 lexbor_mraw_clean(lexbor_mraw_t *mraw); 46 lexbor_mraw_destroy(lexbor_mraw_t *mraw, bool destroy_self); 50 lexbor_mraw_alloc(lexbor_mraw_t *mraw, size_t size); 53 lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size); 56 lexbor_mraw_realloc(lexbor_mraw_t *mraw, void *data, size_t new_size); 59 lexbor_mraw_free(lexbor_mraw_t *mraw, void *data); 79 lexbor_mraw_dup(lexbor_mraw_t *mraw, const void *src, size_t size) in lexbor_mraw_dup() argument 81 void *data = lexbor_mraw_alloc(mraw, size); in lexbor_mraw_dup() 91 lexbor_mraw_reference_count(lexbor_mraw_t *mraw) in lexbor_mraw_reference_count() argument [all …]
|
H A D | str.h | 25 #define lexbor_str_check_size_arg_m(str, size, mraw, plus_len, return_fail) \ argument 57 lexbor_str_init(lexbor_str_t *str, lexbor_mraw_t *mraw, size_t size); 60 lexbor_str_init_append(lexbor_str_t *str, lexbor_mraw_t *mraw, 74 lexbor_str_realloc(lexbor_str_t *str, lexbor_mraw_t *mraw, size_t new_size); 81 lexbor_str_append(lexbor_str_t *str, lexbor_mraw_t *mraw, 85 lexbor_str_append_before(lexbor_str_t *str, lexbor_mraw_t *mraw, 89 lexbor_str_append_one(lexbor_str_t *str, lexbor_mraw_t *mraw, 93 lexbor_str_append_lowercase(lexbor_str_t *str, lexbor_mraw_t *mraw, 103 lexbor_mraw_t *mraw); 216 tmp = lexbor_str_realloc(str, mraw, length + 1); in lexbor_str_length_set() [all …]
|
H A D | str.c | 28 str->data = lexbor_mraw_alloc(mraw, (size + 1)); in lexbor_str_init() 39 lexbor_str_init_append(lexbor_str_t *str, lexbor_mraw_t *mraw, in lexbor_str_init_append() argument 48 p = lexbor_mraw_alloc(mraw, (length + 1)); in lexbor_str_init_append() 83 str->data = lexbor_mraw_free(mraw, str->data); in lexbor_str_destroy() 131 lexbor_str_append(lexbor_str_t *str, lexbor_mraw_t *mraw, in lexbor_str_append() argument 137 mraw, (length + 1), NULL); in lexbor_str_append() 155 mraw, (length + 1), NULL); in lexbor_str_append_before() 226 res = lexbor_str_append(str, mraw, in lexbor_str_append_with_rep_null_chars() 248 lexbor_mraw_t *mraw) in lexbor_str_copy() argument 255 lexbor_str_init(dest, mraw, target->length); in lexbor_str_copy() [all …]
|
H A D | bst_map.c | 46 bst_map->mraw = lexbor_mraw_create(); in lexbor_bst_map_init() 47 status = lexbor_mraw_init(bst_map->mraw, (size * 6)); in lexbor_bst_map_init() 59 lexbor_mraw_clean(bst_map->mraw); in lexbor_bst_map_clean() 71 bst_map->mraw = lexbor_mraw_destroy(bst_map->mraw, true); in lexbor_bst_map_destroy() 180 lexbor_str_init(&entry->str, bst_map->mraw, key_len); in lexbor_bst_map_insert_not_exists() 187 lexbor_str_append(&entry->str, bst_map->mraw, key, key_len); in lexbor_bst_map_insert_not_exists() 218 lexbor_str_destroy(&entry->str, bst_map->mraw, false); in lexbor_bst_map_remove()
|
H A D | bst_map.h | 28 lexbor_mraw_t *mraw; member 72 return bst_map->mraw; in lexbor_bst_map_mraw()
|
H A D | hash.c | 143 hash->mraw = lexbor_mraw_create(); in lexbor_hash_init() 144 status = lexbor_mraw_init(hash->mraw, chunk_size * 12); in lexbor_hash_init() 163 lexbor_mraw_clean(hash->mraw); in lexbor_hash_clean() 175 hash->mraw = lexbor_mraw_destroy(hash->mraw, true); in lexbor_hash_destroy() 306 lexbor_mraw_free(hash->mraw, entry->u.long_str); in lexbor_hash_remove_by_hash_id() 409 entry->u.long_str = lexbor_mraw_alloc(hash->mraw, length + 1); in lexbor_hash_copy() 434 entry->u.long_str = lexbor_mraw_alloc(hash->mraw, length + 1); in lexbor_hash_copy_lower() 461 entry->u.long_str = lexbor_mraw_alloc(hash->mraw, length + 1); in lexbor_hash_copy_upper()
|
/PHP-8.4/ext/dom/lexbor/lexbor/css/ |
H A D | css.c | 12 lexbor_mraw_t *mraw; member 61 if (memory->mraw == NULL) { in lxb_css_memory_init() 62 memory->mraw = lexbor_mraw_create(); in lxb_css_memory_init() 63 status = lexbor_mraw_init(memory->mraw, 4096); in lxb_css_memory_init() 87 if (memory->mraw != NULL) { in lxb_css_memory_clean() 88 lexbor_mraw_clean(memory->mraw); in lxb_css_memory_clean() 107 if (memory->mraw != NULL) { in lxb_css_memory_destroy() 108 memory->mraw = lexbor_mraw_destroy(memory->mraw, true); in lxb_css_memory_destroy() 252 lexbor_mraw_t *mraw, in lxb_css_serialize_str_handler() argument 258 ctx.mraw = mraw; in lxb_css_serialize_str_handler() [all …]
|
H A D | log.c | 34 lxb_css_log_init(lxb_css_log_t *log, lexbor_mraw_t *mraw) in lxb_css_log_init() argument 48 if (mraw != NULL) { in lxb_css_log_init() 49 log->mraw = mraw; in lxb_css_log_init() 56 log->mraw = lexbor_mraw_create(); in lxb_css_log_init() 58 return lexbor_mraw_init(log->mraw, 4096); in lxb_css_log_init() 68 lexbor_mraw_clean(log->mraw); in lxb_css_log_clean() 83 (void) lexbor_mraw_destroy(log->mraw, true); in lxb_css_log_destroy() 104 if (lexbor_str_init(&msg->text, log->mraw, length) == NULL) { in lxb_css_log_append() 129 if (lexbor_str_init(&msg->text, log->mraw, length) == NULL) { in lxb_css_log_push()
|
H A D | log.h | 36 lexbor_mraw_t *mraw; member 46 lxb_css_log_init(lxb_css_log_t *log, lexbor_mraw_t *mraw);
|
H A D | css.h | 45 lexbor_mraw_t *mraw, lxb_css_style_serialize_f cb);
|
/PHP-8.4/ext/dom/lexbor/lexbor/html/ |
H A D | token.c | 92 lexbor_mraw_t *mraw) in lxb_html_token_make_text() argument 96 (void) lexbor_str_init(str, mraw, len); in lxb_html_token_make_text() 111 lexbor_mraw_t *mraw) in lxb_html_token_make_text_drop_null() argument 119 (void) lexbor_str_init(str, mraw, len); in lxb_html_token_make_text_drop_null() 152 (void) lexbor_str_init(str, mraw, len); in lxb_html_token_make_text_replace_null() 263 lexbor_mraw_t *mraw = doc_type->node.owner_document->mraw; in lxb_html_token_doctype_parse() local 291 (void) lexbor_str_append(&doc_type->public_id, mraw, attr->value, in lxb_html_token_doctype_parse() 304 (void) lexbor_str_append(&doc_type->system_id, mraw, attr->value, in lxb_html_token_doctype_parse() 324 (void) lexbor_str_append(&doc_type->system_id, mraw, attr->value, in lxb_html_token_doctype_parse() 335 (void) lexbor_str_init(&doc_type->public_id, mraw, 0); in lxb_html_token_doctype_parse() [all …]
|
H A D | token.h | 73 lexbor_mraw_t *mraw); 77 lexbor_mraw_t *mraw); 81 lexbor_str_t *str, lexbor_mraw_t *mraw);
|
H A D | tokenizer.c | 54 tkz->mraw = lexbor_mraw_create(); in lxb_html_tokenizer_init() 55 status = lexbor_mraw_init(tkz->mraw, 1024); in lxb_html_tokenizer_init() 125 tkz_to->mraw = tkz_from->mraw; in lxb_html_tokenizer_inherit() 211 lexbor_mraw_clean(tkz->mraw); in lxb_html_tokenizer_clean() 234 lexbor_mraw_destroy(tkz->mraw, true); in lxb_html_tokenizer_destroy() 294 tkz->attrs_mraw = tkz->mraw; in lxb_html_tokenizer_begin()
|
/PHP-8.4/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | event_target.c | 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_event_target_create() 31 return lexbor_mraw_free(document->mraw, event_target); in lxb_dom_event_target_destroy()
|
H A D | document.c | 22 doc = lexbor_mraw_calloc(document->mraw, sizeof(lxb_dom_document_t)); in lxb_dom_document_interface_create() 65 return lexbor_mraw_calloc(owner->mraw, sizeof(lxb_dom_document_t)); in lxb_dom_document_create() 101 document->mraw = owner->mraw; in lxb_dom_document_init() 121 document->mraw = lexbor_mraw_create(); in lxb_dom_document_init() 122 status = lexbor_mraw_init(document->mraw, (4096 * 8)); in lxb_dom_document_init() 168 lexbor_mraw_destroy(document->mraw, true); in lxb_dom_document_init() 182 lexbor_mraw_clean(document->mraw); in lxb_dom_document_clean() 210 return lexbor_mraw_free(owner->mraw, document); in lxb_dom_document_destroy() 214 lexbor_mraw_destroy(document->mraw, true); in lxb_dom_document_destroy()
|
H A D | document_fragment.c | 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_document_fragment_interface_create()
|
H A D | shadow_root.c | 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_shadow_root_interface_create()
|
/PHP-8.4/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | window.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_window_create() 34 lxb_dom_interface_node(window)->owner_document->mraw, in lxb_html_window_destroy()
|
H A D | anchor_element.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_anchor_element_interface_create()
|
H A D | area_element.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_area_element_interface_create()
|
H A D | audio_element.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_audio_element_interface_create()
|
H A D | base_element.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_base_element_interface_create()
|
H A D | details_element.c | 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_details_element_interface_create()
|
/PHP-8.4/ext/dom/lexbor/lexbor/css/syntax/ |
H A D | token.c | 35 lexbor_mraw_t *mraw; member 97 lexbor_str_t *str, lexbor_mraw_t *mraw) in lxb_css_syntax_token_string_dup() argument 105 str->data = lexbor_mraw_alloc(mraw, length); in lxb_css_syntax_token_string_dup() 113 if (lexbor_str_realloc(str, mraw, length) == NULL) { in lxb_css_syntax_token_string_dup() 149 data = lexbor_mraw_alloc(tkz->mraw, token_string->length + 1); in lxb_css_syntax_token_string_make() 202 lexbor_mraw_free(tkz->mraw, (lxb_char_t *) token_string->data); in lxb_css_syntax_token_string_free() 514 lexbor_str_t *str, lexbor_mraw_t *mraw) in lxb_css_syntax_token_serialize_str() argument 519 ctx.mraw = mraw; in lxb_css_syntax_token_serialize_str() 522 lexbor_str_init(str, mraw, 1); in lxb_css_syntax_token_serialize_str() 538 ptr = lexbor_str_append(ctx->str, ctx->mraw, data, len); in lxb_css_syntax_token_str_cb()
|