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()
153 xmlNode* dom_zvals_to_fragment(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, int… in dom_zvals_to_fragment() argument
170 if (Z_TYPE(nodes[i]) == IS_OBJECT) { in dom_zvals_to_fragment()
171 newNodeObj = Z_DOMOBJ_P(&nodes[i]); in dom_zvals_to_fragment()
207 ZEND_ASSERT(Z_TYPE(nodes[i]) == IS_STRING); in dom_zvals_to_fragment()
209 newNode = xmlNewDocText(documentNode, (xmlChar *) Z_STRVAL(nodes[i])); in dom_zvals_to_fragment()
244 …de_list_for_insertion(php_libxml_ref_obj *document, xmlNodePtr parentNode, zval *nodes, int nodesc) in dom_sanity_check_node_list_for_insertion() argument
254 zend_uchar type = Z_TYPE(nodes[i]); in dom_sanity_check_node_list_for_insertion()
256 const zend_class_entry *ce = Z_OBJCE(nodes[i]); in dom_sanity_check_node_list_for_insertion()
259 xmlNodePtr node = dom_object_get_node(Z_DOMOBJ_P(nodes + i)); in dom_sanity_check_node_list_for_insertion()
271 …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()
275 …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()
310 void dom_parent_node_append(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_append() argument
315 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_parent_node_append()
319 xmlNode *fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_append()
348 void dom_parent_node_prepend(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_prepend() argument
353 dom_parent_node_append(context, nodes, nodesc); in dom_parent_node_prepend()
357 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_parent_node_prepend()
361 xmlNode *fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_prepend()
382 void dom_parent_node_after(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_after() argument
403 if (!dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_parent_node_after()
411 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_parent_node_after()
416 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
437 void dom_parent_node_before(dom_object *context, zval *nodes, int nodesc) in dom_parent_node_before() argument
458 if (!dom_is_node_in_list(nodes, nodesc, viable_previous_sibling)) { in dom_parent_node_before()
466 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_parent_node_before()
471 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
548 void dom_child_replace_with(dom_object *context, zval *nodes, int nodesc) in dom_child_replace_with() argument
571 if (!dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_child_replace_with()
577 …if (UNEXPECTED(dom_sanity_check_node_list_for_insertion(context->document, parentNode, nodes, node… in dom_child_replace_with()
582 xmlNodePtr fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()