Home
last modified time | relevance | path

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

12

/php-src/ext/dom/
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 Dnodelist.c69 if (!nodep) { in php_dom_get_nodelist_length()
95 xmlNodePtr basep = nodep; in php_dom_get_nodelist_length()
96 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in php_dom_get_nodelist_length()
97 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in php_dom_get_nodelist_length()
99 nodep = nodep->children; in php_dom_get_nodelist_length()
161 xmlNodePtr nodep = basep; in php_dom_nodelist_get_item_into_zval() local
181 nodep = cached_obj_xml_node; in php_dom_nodelist_get_item_into_zval()
187 nodep = nodep->children; in php_dom_nodelist_get_item_into_zval()
191 nodep = nodep->next; in php_dom_nodelist_get_item_into_zval()
193 itemnode = nodep; in php_dom_nodelist_get_item_into_zval()
[all …]
H A Dnode.c50 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element()
660 …if (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE || nodep->type == XML_NAM… in dom_node_local_name_read()
680 xmlChar *baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read()
1248 if (!nodep->children || child->parent != nodep) { in dom_node_remove_child()
1426 xmlNode *nodep; in PHP_METHOD() local
1519 xmlNode *nodep; in PHP_METHOD() local
1558 xmlNode *nodep; in PHP_METHOD() local
2003 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
2009 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD()
2071 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
[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 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 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 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 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 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()
149 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_named_node_map_get_item() local
150 if (nodep) { in php_dom_named_node_map_get_item()
151 xmlNodePtr curnode = (xmlNodePtr)nodep->properties; in php_dom_named_node_map_get_item()
207 xmlNodePtr nodep; in PHP_METHOD() local
233 nodep = dom_object_get_node(objmap->baseobj); in PHP_METHOD()
[all …]
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 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 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()
160 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_attr_owner_element_read()
162 xmlNodePtr nodeparent = nodep->parent; in dom_attr_owner_element_read()
H A Dphp_dom.c495 return nodep; in php_dom_export_node()
1648 nodep = parent; in dom_hierarchy()
1654 nodep = nodep->parent; in dom_hierarchy()
1686 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_match_qualified_name_according_to_spec()
1745 nodep = nodep->children; in dom_get_elements_by_tag_name_ns_raw()
1750 nodep = php_dom_next_in_tree_order(nodep, basep); in dom_get_elements_by_tag_name_ns_raw()
1751 if (!nodep) { in dom_get_elements_by_tag_name_ns_raw()
1761 return nodep->content == NULL || *nodep->content == '\0'; in is_empty_node()
1890 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
1909 nodep = nodep->next; in dom_reconcile_ns_list_internal()
[all …]
H A Ddocument.c779 retnodep = nodep; in PHP_METHOD()
790 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_METHOD()
824 retnodep = nodep; in dom_modern_document_import_node()
883 nodep->ns = nsptr; in PHP_METHOD()
894 xmlFreeNode(nodep); in PHP_METHOD()
995 nodep->ns = nsptr; in PHP_METHOD()
1146 xmlUnlinkNode(nodep); in php_dom_adopt_node()
1162 xmlNodePtr nodep; in dom_document_adopt_node() local
1579 zval *nodep = NULL; in dom_document_save_xml() local
1598 if (nodep != NULL) { in dom_document_save_xml()
[all …]
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 Ddom_iterators.c86 xmlNode *nodep = NULL; in php_dom_libxml_hash_iter() local
96 nodep = iter->node; in php_dom_libxml_hash_iter()
98 return nodep; in php_dom_libxml_hash_iter()
312 xmlNodePtr nodep = basep; in php_dom_get_iterator() local
313 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in php_dom_get_iterator()
314 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in php_dom_get_iterator()
316 nodep = nodep->children; in php_dom_get_iterator()
319 basep, nodep, objmap->ns, objmap->local, objmap->local_lower, &curindex, 0); in php_dom_get_iterator()
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);
158 xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_val…
159 void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null);
161 zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase);
163 bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_docume…
166 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep);
[all …]
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 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 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 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 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()
/php-src/ext/xsl/
H A Dxsltprocessor.c179 dom_object *node_intern = php_dom_object_get_data(nodep); in xsl_apply_ns_hash_corrections()
201 xmlNode *nodep = NULL; in PHP_METHOD() local
210 nodep = php_libxml_import_node(docp); in PHP_METHOD()
212 if (nodep) { in PHP_METHOD()
213 doc = nodep->doc; in PHP_METHOD()
264 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_METHOD()
265 if (nodep && (nodep = nodep->children)) { in PHP_METHOD()
266 while (nodep) { in PHP_METHOD()
267 ZEND_ASSERT(nodep->ns != NULL); in PHP_METHOD()
268 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_METHOD()
[all …]
/php-src/ext/simplexml/
H A Dsimplexml.c2052 xmlNodePtr nodep = NULL; in sxe_object_clone() local
2081 nodep = xmlDocGetRootElement(docp); in sxe_object_clone()
2083 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone()
2559 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local
2567 nodep = php_libxml_import_node(node); in PHP_FUNCTION()
2569 if (!nodep) { in PHP_FUNCTION()
2574 if (nodep->doc == NULL) { in PHP_FUNCTION()
2579 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION()
2580 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION()
2583 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION()
[all …]

Completed in 76 milliseconds

12