Home
last modified time | relevance | path

Searched refs:nodep (Results 1 – 25 of 28) sorted by path

12

/php-src/ext/dom/
H A Dattr.c39 xmlAttrPtr nodep = NULL; in PHP_METHOD() local
57 nodep = xmlNewProp(NULL, BAD_CAST name, BAD_CAST value); in PHP_METHOD()
59 if (!nodep) { in PHP_METHOD()
68 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
150 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_attr_owner_element_read()
152 xmlNodePtr nodeparent = nodep->parent; in dom_attr_owner_element_read()
H A Dcdatasection.c36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
45 nodep = xmlNewCDataBlock(NULL, BAD_CAST value, value_len); in PHP_METHOD()
47 if (!nodep) { in PHP_METHOD()
57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
H A Dcharacterdata.c59 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_data_read()
60 php_dom_get_content_into_zval(nodep, retval, false); in dom_characterdata_data_read()
66 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_data_write()
72 xmlNodeSetContentLen(nodep, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_characterdata_data_write()
86 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_length_read()
89 if (nodep->content) { in dom_characterdata_length_read()
90 length = xmlUTF8Strlen(nodep->content); in dom_characterdata_length_read()
165 xmlNode *nodep; in dom_character_data_append_data() local
175 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in dom_character_data_append_data()
176 xmlTextConcat(nodep, BAD_CAST arg, arg_len); in dom_character_data_append_data()
H A Dcomment.c36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
45 nodep = xmlNewComment(BAD_CAST value); in PHP_METHOD()
47 if (!nodep) { in PHP_METHOD()
57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
H A Ddocument.c775 retnodep = nodep; in PHP_METHOD()
786 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_METHOD()
820 retnodep = nodep; in dom_modern_document_import_node()
879 nodep->ns = nsptr; in PHP_METHOD()
890 xmlFreeNode(nodep); in PHP_METHOD()
991 nodep->ns = nsptr; in PHP_METHOD()
1142 xmlUnlinkNode(nodep); in php_dom_adopt_node()
1158 xmlNodePtr nodep; in dom_document_adopt_node() local
1575 zval *nodep = NULL; in dom_document_save_xml() local
1594 if (nodep != NULL) { in dom_document_save_xml()
[all …]
H A Ddocumentfragment.c36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
43 nodep = xmlNewDocFragment(NULL); in PHP_METHOD()
45 if (!nodep) { in PHP_METHOD()
55 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
62 xmlNode *nodep; in PHP_METHOD() local
74 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
76 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
83 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, BAD_CAST data, &lst); in PHP_METHOD()
89 xmlAddChildList(nodep,lst); in PHP_METHOD()
H A Ddom_iterators.c158 xmlNodePtr nodep = php_dom_first_child_of_container_node(basep); in dom_fetch_first_iteration_item() local
160 basep, nodep, objmap->ns, objmap->local, objmap->local_lower, &curindex, 0); in dom_fetch_first_iteration_item()
H A Ddomimplementation.c153 xmlNode *nodep; in PHP_METHOD() local
223 nodep = xmlNewDocNode(docp, nsptr, BAD_CAST localname, NULL); in PHP_METHOD()
224 if (!nodep) { in PHP_METHOD()
238 nodep->nsDef = nsptr; in PHP_METHOD()
240 xmlDocSetRootElement(docp, nodep); in PHP_METHOD()
H A Delement.c91 if (!nodep) { in PHP_METHOD()
265 xmlNode *nodep; in PHP_METHOD() local
317 xmlNode *nodep; in PHP_METHOD() local
362 xmlNode *nodep; in PHP_METHOD() local
636 xmlNode *nodep; in dom_element_set_attribute_node_common() local
723 xmlNode *nodep; in dom_element_remove_attribute_node() local
875 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in dom_set_attribute_ns_legacy()
1074 xmlNode *nodep; in PHP_METHOD() local
1224 xmlNode *nodep; in PHP_METHOD() local
1301 xmlNode *nodep; in PHP_METHOD() local
[all …]
H A Dentity.c42 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_public_id_read()
44 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY || !nodep->ExternalID) { in dom_entity_public_id_read()
47 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_entity_public_id_read()
62 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_system_id_read()
64 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_system_id_read()
67 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_entity_system_id_read()
82 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_notation_name_read()
84 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_notation_name_read()
88 if (!nodep->content) { in dom_entity_notation_name_read()
91 ZVAL_STRING(retval, (const char *) nodep->content); in dom_entity_notation_name_read()
H A Dhtml_document.c1309 zval *nodep = NULL; in PHP_METHOD() local
1314 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &nodep, dom_modern_node_class_entry) == FAILURE)… in PHP_METHOD()
1320 if (nodep != NULL) { in PHP_METHOD()
1321 DOM_GET_OBJ(node, nodep, xmlNodePtr, nodeobj); in PHP_METHOD()
H A Dnamednodemap.c46 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_get_namednodemap_length() local
47 if (nodep) { in php_dom_get_namednodemap_length()
48 xmlAttrPtr curnode = nodep->properties; in php_dom_get_namednodemap_length()
95 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_named_node_map_get_named_item() local
96 if (nodep) { in php_dom_named_node_map_get_named_item()
145 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_named_node_map_get_item() local
146 if (nodep) { in php_dom_named_node_map_get_item()
147 xmlNodePtr curnode = (xmlNodePtr)nodep->properties; in php_dom_named_node_map_get_item()
203 xmlNodePtr nodep; in PHP_METHOD() local
229 nodep = dom_object_get_node(objmap->baseobj); in PHP_METHOD()
[all …]
H A Dnamespace_compat.c317 PHP_DOM_EXPORT bool php_dom_ns_is_fast(const xmlNode *nodep, const php_dom_ns_magic_token *magic_to… in php_dom_ns_is_fast() argument
319 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_fast()
320 xmlNsPtr ns = nodep->ns; in php_dom_ns_is_fast()
327 PHP_DOM_EXPORT bool php_dom_ns_is_html_and_document_is_html(const xmlNode *nodep) in php_dom_ns_is_html_and_document_is_html() argument
329 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_html_and_document_is_html()
330 …return nodep->doc && nodep->doc->type == XML_HTML_DOCUMENT_NODE && php_dom_ns_is_fast(nodep, php_d… in php_dom_ns_is_html_and_document_is_html()
340 xmlNodePtr nodep = attrp->parent; in php_dom_reconcile_attribute_namespace_after_insertion() local
341 xmlNsPtr matching_ns = xmlSearchNs(nodep->doc, nodep, attrp->ns->prefix); in php_dom_reconcile_attribute_namespace_after_insertion()
349 xmlReconciliateNs(nodep->doc, nodep); in php_dom_reconcile_attribute_namespace_after_insertion()
H A Dnamespace_compat.h63 PHP_DOM_EXPORT bool php_dom_ns_is_fast(const xmlNode *nodep, const php_dom_ns_magic_token *magic_to…
65 PHP_DOM_EXPORT bool php_dom_ns_is_html_and_document_is_html(const xmlNode *nodep);
H A Dnode.c50 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element()
658 …if (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE || nodep->type == XML_NAM… in dom_node_local_name_read()
678 xmlChar *baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read()
1246 if (!nodep->children || child->parent != nodep) { in dom_node_remove_child()
1424 xmlNode *nodep; in PHP_METHOD() local
1517 xmlNode *nodep; in PHP_METHOD() local
1556 xmlNode *nodep; in PHP_METHOD() local
2001 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
2007 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD()
2069 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
[all …]
H A Dnodelist.c69 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_get_nodelist_length() local
70 if (!nodep) { in php_dom_get_nodelist_length()
87 xmlNodePtr curnode = nodep->children; in php_dom_get_nodelist_length()
96 xmlNodePtr basep = nodep; in php_dom_get_nodelist_length()
97 nodep = php_dom_first_child_of_container_node(basep); in php_dom_get_nodelist_length()
154 xmlNodePtr nodep = basep; in php_dom_nodelist_get_item_into_zval() local
174 nodep = cached_obj_xml_node; in php_dom_nodelist_get_item_into_zval()
180 nodep = nodep->children; in php_dom_nodelist_get_item_into_zval()
182 while (count < relative_index && nodep != NULL) { in php_dom_nodelist_get_item_into_zval()
184 nodep = nodep->next; in php_dom_nodelist_get_item_into_zval()
[all …]
H A Dnotation.c43 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_notation_public_id_read()
45 if (nodep->ExternalID) { in dom_notation_public_id_read()
46 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_notation_public_id_read()
63 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_notation_system_id_read()
65 if (nodep->SystemID) { in dom_notation_system_id_read()
66 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_notation_system_id_read()
H A Dparentnode.c36 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_first_element_child_read()
39 if (dom_node_children_valid(nodep)) { in dom_parent_node_first_element_child_read()
40 first = nodep->children; in dom_parent_node_first_element_child_read()
63 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_last_element_child_read()
66 if (dom_node_children_valid(nodep)) { in dom_parent_node_last_element_child_read()
67 last = nodep->last; in dom_parent_node_last_element_child_read()
90 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_child_element_count()
93 if (dom_node_children_valid(nodep)) { in dom_parent_node_child_element_count()
94 xmlNodePtr first = nodep->children; in dom_parent_node_child_element_count()
H A Dphp_dom.c498 return nodep; in php_dom_export_node()
1653 nodep = parent; in dom_hierarchy()
1659 nodep = nodep->parent; in dom_hierarchy()
1691 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_match_qualified_name_according_to_spec()
1750 nodep = nodep->children; in dom_get_elements_by_tag_name_ns_raw()
1755 nodep = php_dom_next_in_tree_order(nodep, basep); in dom_get_elements_by_tag_name_ns_raw()
1756 if (!nodep) { in dom_get_elements_by_tag_name_ns_raw()
1766 return nodep->content == NULL || *nodep->content == '\0'; in is_empty_node()
1895 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
1914 nodep = nodep->next; in dom_reconcile_ns_list_internal()
[all …]
H A Dphp_dom.h139 xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix);
140 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep);
141 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last);
143 void php_dom_normalize_legacy(xmlNodePtr nodep);
144 void php_dom_normalize_modern(xmlNodePtr nodep);
157 xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_val…
158 void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null);
160 zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase);
162 bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_docume…
165 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep);
[all …]
H A Dprocessinginstruction.c37 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
53 nodep = xmlNewPI(BAD_CAST name, BAD_CAST value); in PHP_METHOD()
55 if (!nodep) { in PHP_METHOD()
65 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
76 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_target_read()
77 ZVAL_STRING(retval, (const char *) nodep->name); in dom_processinginstruction_target_read()
90 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_data_read()
91 php_dom_get_content_into_zval(nodep, retval, false); in dom_processinginstruction_data_read()
97 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_data_write()
103 xmlNodeSetContentLen(nodep, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_processinginstruction_data_write()
H A Dtext.c38 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
47 nodep = xmlNewText(BAD_CAST value); in PHP_METHOD()
49 if (!nodep) { in PHP_METHOD()
59 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
H A Dxml_common.h92 static zend_always_inline xmlNodePtr php_dom_next_in_tree_order(const xmlNode *nodep, const xmlNode… in php_dom_next_in_tree_order() argument
94 if (nodep->next) { in php_dom_next_in_tree_order()
95 return nodep->next; in php_dom_next_in_tree_order()
99 nodep = nodep->parent; in php_dom_next_in_tree_order()
100 if (nodep == basep) { in php_dom_next_in_tree_order()
104 if (UNEXPECTED(nodep == NULL)) { in php_dom_next_in_tree_order()
108 } while (nodep->next == NULL); in php_dom_next_in_tree_order()
109 return nodep->next; in php_dom_next_in_tree_order()
H A Dxpath.c242 xmlNodePtr nodep = NULL; in php_xpath_eval() local
272 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval()
275 if (!nodep) { in php_xpath_eval()
276 nodep = xmlDocGetRootElement(docp); in php_xpath_eval()
279 if (nodep && docp != nodep->doc) { in php_xpath_eval()
284 ctxp->node = nodep; in php_xpath_eval()
287 if (register_node_ns && nodep != NULL) { in php_xpath_eval()
290 in_scope_ns = php_dom_get_in_scope_ns(ns_mapper, nodep); in php_xpath_eval()
292 in_scope_ns = php_dom_get_in_scope_ns_legacy(nodep); in php_xpath_eval()
301 if (register_node_ns && nodep != NULL) { in php_xpath_eval()
H A Dxpath_callbacks.c429 xmlNode *nodep; in php_dom_xpath_callback_dispatch() local
437 nodep = dom_object_get_node(obj); in php_dom_xpath_callback_dispatch()
438 valuePush(ctxt, xmlXPathNewNodeSet(nodep)); in php_dom_xpath_callback_dispatch()

Completed in 127 milliseconds

12