Home
last modified time | relevance | path

Searched refs:nodep (Results 1 – 25 of 29) 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, (const 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, (const 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 Dnode.c51 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element()
631 …if (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE || nodep->type == XML_NAM… in dom_node_local_name_read()
651 xmlChar *baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read()
1279 if (!nodep->children || child->parent != nodep) { in dom_node_remove_child()
1441 xmlNode *nodep; in PHP_METHOD() local
1523 xmlNode *nodep; in PHP_METHOD() local
1559 xmlNode *nodep; in PHP_METHOD() local
1994 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
2000 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD()
2062 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)) { 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 Dnodelist.c55 if (nodep->type == XML_ENTITY_REF_NODE) { in dom_nodelist_iter_start_first_child()
57 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_nodelist_iter_start_first_child()
60 return nodep->children; in dom_nodelist_iter_start_first_child()
80 if (!nodep) { in php_dom_get_nodelist_length()
106 xmlNodePtr basep = nodep; in php_dom_get_nodelist_length()
107 nodep = php_dom_first_child_of_container_node(basep); in php_dom_get_nodelist_length()
157 xmlNodePtr nodep = basep; in php_dom_nodelist_get_item_into_zval() local
177 nodep = cached_obj_xml_node; in php_dom_nodelist_get_item_into_zval()
183 nodep = dom_nodelist_iter_start_first_child(nodep); in php_dom_nodelist_get_item_into_zval()
187 nodep = nodep->next; in php_dom_nodelist_get_item_into_zval()
[all …]
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->type == XML_ELEMENT_NODE && nodep->children) { in php_dom_next_in_tree_order()
95 return nodep->children; in php_dom_next_in_tree_order()
98 if (nodep->next) { in php_dom_next_in_tree_order()
99 return nodep->next; in php_dom_next_in_tree_order()
103 nodep = nodep->parent; in php_dom_next_in_tree_order()
104 if (nodep == basep) { in php_dom_next_in_tree_order()
108 if (UNEXPECTED(nodep == NULL)) { in php_dom_next_in_tree_order()
112 } while (nodep->next == NULL); in php_dom_next_in_tree_order()
113 return nodep->next; in php_dom_next_in_tree_order()
H A Delement.c94 if (!nodep) { in PHP_METHOD()
295 xmlNode *nodep; in PHP_METHOD() local
347 xmlNode *nodep; in PHP_METHOD() local
406 xmlNode *nodep; in PHP_METHOD() local
684 xmlNode *nodep; in dom_element_set_attribute_node_common() local
773 xmlNode *nodep; in dom_element_remove_attribute_node() local
932 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in dom_set_attribute_ns_legacy()
1129 xmlNode *nodep; in PHP_METHOD() local
1289 xmlNode *nodep; in PHP_METHOD() local
1362 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()
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 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 Dentityreference.c85 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_child_read()
87 xmlEntityPtr entity = dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_child_read()
95 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_text_content_read()
97 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_text_content_read()
103 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_child_nodes_read()
105 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_child_nodes_read()
H A Ddocument.c775 retnodep = nodep; in PHP_METHOD()
825 retnodep = nodep; in dom_modern_document_import_node()
884 nodep->ns = nsptr; in PHP_METHOD()
895 xmlFreeNode(nodep); in PHP_METHOD()
925 xmlNodePtr nodep; in PHP_METHOD() local
1007 nodep->ns = nsptr; in PHP_METHOD()
1175 xmlUnlinkNode(nodep); in php_dom_adopt_node()
1191 xmlNodePtr nodep; in dom_document_adopt_node() local
1605 zval *nodep = NULL; in dom_document_save_xml() local
1622 if (nodep != NULL) { in dom_document_save_xml()
[all …]
H A Dattr.c40 xmlAttrPtr nodep = NULL; in PHP_METHOD() local
58 nodep = xmlNewProp(NULL, BAD_CAST name, BAD_CAST value); in PHP_METHOD()
60 if (!nodep) { in PHP_METHOD()
69 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
163 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_attr_owner_element_read()
165 xmlNodePtr nodeparent = nodep->parent; in dom_attr_owner_element_read()
H A Dphp_dom.c550 return nodep; in php_dom_export_node()
1801 nodep = parent; in dom_hierarchy()
1803 while (nodep) { in dom_hierarchy()
1807 nodep = nodep->parent; in dom_hierarchy()
1839 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_match_qualified_name_according_to_spec()
1898 nodep = php_dom_next_in_tree_order(nodep, basep); in dom_get_elements_by_tag_name_ns_raw()
1899 if (!nodep) { in dom_get_elements_by_tag_name_ns_raw()
1909 return nodep->content == NULL || *nodep->content == '\0'; in is_empty_node()
2038 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
2057 nodep = nodep->next; in dom_reconcile_ns_list_internal()
[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()
159 xmlNode *nodep; in dom_character_data_append_data() local
168 DOM_GET_OBJ(nodep, ZEND_THIS, xmlNodePtr, intern); in dom_character_data_append_data()
169 xmlTextConcat(nodep, BAD_CAST arg, arg_len); in dom_character_data_append_data()
H A Dphp_dom.h141 xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix);
142 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep);
143 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last);
145 void php_dom_normalize_legacy(xmlNodePtr nodep);
146 void php_dom_normalize_modern(xmlNodePtr nodep);
160 void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null);
162 zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase);
164 bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_docume…
167 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep);
205 void dom_remove_all_children(xmlNodePtr nodep);
[all …]
H A Dtext.c37 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
46 nodep = xmlNewText(BAD_CAST value); in PHP_METHOD()
48 if (!nodep) { in PHP_METHOD()
58 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
H A Dnamespace_compat.c301 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
303 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_fast()
304 xmlNsPtr ns = nodep->ns; in php_dom_ns_is_fast()
311 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
313 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_html_and_document_is_html()
314 …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()
324 xmlNodePtr nodep = attrp->parent; in php_dom_reconcile_attribute_namespace_after_insertion() local
325 xmlNsPtr matching_ns = xmlSearchNs(nodep->doc, nodep, attrp->ns->prefix); in php_dom_reconcile_attribute_namespace_after_insertion()
333 xmlReconciliateNs(nodep->doc, nodep); in php_dom_reconcile_attribute_namespace_after_insertion()
H A Dxpath.c248 xmlNodePtr nodep = NULL; in php_xpath_eval() local
278 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval()
281 if (!nodep) { in php_xpath_eval()
282 nodep = xmlDocGetRootElement(docp); in php_xpath_eval()
285 if (nodep && docp != nodep->doc) { in php_xpath_eval()
290 ctxp->node = nodep; in php_xpath_eval()
293 if (register_node_ns && nodep != NULL) { in php_xpath_eval()
296 in_scope_ns = php_dom_get_in_scope_ns(ns_mapper, nodep, false); in php_xpath_eval()
298 in_scope_ns = php_dom_get_in_scope_ns_legacy(nodep); in php_xpath_eval()
307 if (register_node_ns && nodep != NULL) { in php_xpath_eval()
H A Dnamespace_compat.h58 PHP_DOM_EXPORT bool php_dom_ns_is_fast(const xmlNode *nodep, const php_dom_ns_magic_token *magic_to…
60 PHP_DOM_EXPORT bool php_dom_ns_is_html_and_document_is_html(const xmlNode *nodep);
H A Ddomimplementation.c154 xmlNode *nodep; in PHP_METHOD() local
224 nodep = xmlNewDocNode(docp, nsptr, BAD_CAST localname, NULL); in PHP_METHOD()
225 if (!nodep) { in PHP_METHOD()
239 nodep->nsDef = nsptr; in PHP_METHOD()
241 xmlDocSetRootElement(docp, nodep); in PHP_METHOD()
/php-src/ext/xsl/
H A Dxsltprocessor.c174 dom_object *node_intern = php_dom_object_get_data(nodep); in xsl_apply_ns_hash_corrections()
196 xmlNode *nodep = NULL; in PHP_METHOD() local
205 nodep = php_libxml_import_node(docp); in PHP_METHOD()
207 if (nodep) { in PHP_METHOD()
208 doc = nodep->doc; in PHP_METHOD()
259 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_METHOD()
260 if (nodep && (nodep = nodep->children)) { in PHP_METHOD()
261 while (nodep) { in PHP_METHOD()
262 ZEND_ASSERT(nodep->ns != NULL); in PHP_METHOD()
263 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_METHOD()
[all …]
/php-src/ext/dom/parentnode/
H A Dtree.c34 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_first_element_child_read()
36 xmlNodePtr first = nodep->children; in dom_parent_node_first_element_child_read()
53 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_last_element_child_read()
55 xmlNodePtr last = nodep->last; in dom_parent_node_last_element_child_read()
72 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_child_element_count()
75 xmlNodePtr first = nodep->children; in dom_parent_node_child_element_count()
/php-src/ext/simplexml/
H A Dsimplexml.c2087 xmlNodePtr nodep = NULL; in sxe_object_clone() local
2116 nodep = xmlDocGetRootElement(docp); in sxe_object_clone()
2118 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone()
2581 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local
2589 nodep = php_libxml_import_node(node); in PHP_FUNCTION()
2591 if (!nodep) { in PHP_FUNCTION()
2596 if (nodep->doc == NULL) { in PHP_FUNCTION()
2601 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION()
2602 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION()
2605 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION()
[all …]

Completed in 127 milliseconds

12