Lines Matching refs:nodes
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
130 if (Z_TYPE(nodes[i]) == IS_OBJECT) { in dom_is_node_in_list()
131 const zend_class_entry *ce = Z_OBJCE(nodes[i]); in dom_is_node_in_list()
134 if (dom_object_get_node(Z_DOMOBJ_P(nodes + i)) == node_to_find) { in dom_is_node_in_list()
169 xmlNode* dom_zvals_to_fragment(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, int… in dom_zvals_to_fragment() argument
186 if (Z_TYPE(nodes[i]) == IS_OBJECT) { in dom_zvals_to_fragment()
187 newNodeObj = Z_DOMOBJ_P(&nodes[i]); in dom_zvals_to_fragment()
221 ZEND_ASSERT(Z_TYPE(nodes[i]) == IS_STRING); in dom_zvals_to_fragment()
223 newNode = xmlNewDocText(documentNode, (xmlChar *) Z_STRVAL(nodes[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
268 zend_uchar type = Z_TYPE(nodes[i]); in dom_sanity_check_node_list_for_insertion()
270 const zend_class_entry *ce = Z_OBJCE(nodes[i]); in dom_sanity_check_node_list_for_insertion()
273 xmlNodePtr node = dom_object_get_node(Z_DOMOBJ_P(nodes + i)); in dom_sanity_check_node_list_for_insertion()
290 …ment_type_error(i + 1, "must be of type DOMNode|string, %s given", zend_zval_type_name(&nodes[i])); in dom_sanity_check_node_list_for_insertion()
294 …ment_type_error(i + 1, "must be of type DOMNode|string, %s given", zend_zval_type_name(&nodes[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 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… 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 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… 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 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… 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 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… 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 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_child_replace_with()
601 xmlNodePtr fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()