Lines Matching refs:nodesc
127 static bool dom_is_node_in_list(const zval *nodes, int nodesc, const xmlNodePtr node_to_find) in dom_is_node_in_list() argument
129 for (int i = 0; i < nodesc; i++) { in dom_is_node_in_list()
169 … dom_zvals_to_fragment(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, int nodesc) in dom_zvals_to_fragment() argument
185 for (i = 0; i < nodesc; i++) { in dom_zvals_to_fragment()
258 …de_list_for_insertion(php_libxml_ref_obj *document, xmlNodePtr parentNode, zval *nodes, int nodesc) in dom_sanity_check_node_list_for_insertion() argument
267 for (int i = 0; i < nodesc; i++) { in dom_sanity_check_node_list_for_insertion()
329 void dom_parent_node_append(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_append() argument
334 …m_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, nodesc) != SUCCESS)) { in dom_parent_node_append()
338 xmlNode *fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_append()
367 void dom_parent_node_prepend(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_prepend() argument
372 dom_parent_node_append(context, nodes, nodesc); in dom_parent_node_prepend()
376 …m_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, nodesc) != SUCCESS)) { in dom_parent_node_prepend()
380 xmlNode *fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_prepend()
401 void dom_parent_node_after(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_after() argument
422 if (!dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_parent_node_after()
430 …m_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, nodesc) != SUCCESS)) { in dom_parent_node_after()
435 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
456 void dom_parent_node_before(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_before() argument
477 if (!dom_is_node_in_list(nodes, nodesc, viable_previous_sibling)) { in dom_parent_node_before()
485 …m_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, nodesc) != SUCCESS)) { in dom_parent_node_before()
490 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
567 void dom_child_replace_with(dom_object *context, zval *nodes, int nodesc) in dom_child_replace_with() argument
590 if (!dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_child_replace_with()
596 …m_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, nodesc) != SUCCESS)) { in dom_child_replace_with()
601 xmlNodePtr fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()