Lines Matching refs:nodesc
96 static bool dom_is_node_in_list(const zval *nodes, uint32_t nodesc, const xmlNode *node_to_find) in dom_is_node_in_list() argument
98 for (uint32_t i = 0; i < nodesc; i++) { in dom_is_node_in_list()
344 …ls_to_single_node(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, uint32_t nodesc) in dom_zvals_to_single_node() argument
358 if (nodesc == 1) { in dom_zvals_to_single_node()
380 for (uint32_t i = 0; i < nodesc; i++) { in dom_zvals_to_single_node()
437 static zend_result dom_sanity_check_node_list_types(zval *nodes, uint32_t nodesc, zend_class_entry … in dom_sanity_check_node_list_types() argument
439 for (uint32_t i = 0; i < nodesc; i++) { in dom_sanity_check_node_list_types()
583 void dom_parent_node_append(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_append() argument
585 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_parent_node_append()
594 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_append()
604 void dom_parent_node_prepend(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_prepend() argument
609 dom_parent_node_append(context, nodes, nodesc); in dom_parent_node_prepend()
613 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_parent_node_prepend()
620 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_prepend()
630 void dom_parent_node_after(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_after() argument
632 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_parent_node_after()
648 while (viable_next_sibling && dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_parent_node_after()
655 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
662 void dom_parent_node_before(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_before() argument
664 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_parent_node_before()
680 while (viable_previous_sibling && dom_is_node_in_list(nodes, nodesc, viable_previous_sibling)) { in dom_parent_node_before()
687 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
730 void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc) in dom_child_replace_with() argument
732 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_child_replace_with()
748 while (viable_next_sibling && dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_child_replace_with()
759 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()
779 void dom_parent_node_replace_children(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_replace_children() argument
781 …if (UNEXPECTED(dom_sanity_check_node_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec… in dom_parent_node_replace_children()
790 xmlNodePtr node = dom_zvals_to_single_node(context->document, thisp, nodes, nodesc); in dom_parent_node_replace_children()