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.c50 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element()
659 …if (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE || nodep->type == XML_NAM… in dom_node_local_name_read()
679 xmlChar *baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read()
1236 if (!nodep->children || child->parent != nodep) { in dom_node_remove_child()
1419 xmlNode *nodep; in PHP_METHOD() local
1501 xmlNode *nodep; in PHP_METHOD() local
1539 xmlNode *nodep; in PHP_METHOD() local
1974 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD()
1980 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD()
2042 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 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 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 Delement.c92 if (!nodep) { in PHP_METHOD()
266 xmlNode *nodep; in PHP_METHOD() local
318 xmlNode *nodep; in PHP_METHOD() local
373 xmlNode *nodep; in PHP_METHOD() local
651 xmlNode *nodep; in dom_element_set_attribute_node_common() local
741 xmlNode *nodep; in dom_element_remove_attribute_node() local
895 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in dom_set_attribute_ns_legacy()
1092 xmlNode *nodep; in PHP_METHOD() local
1242 xmlNode *nodep; in PHP_METHOD() local
1315 xmlNode *nodep; in PHP_METHOD() local
[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()
99 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_text_content_read()
101 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_text_content_read()
107 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_child_nodes_read()
109 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_child_nodes_read()
H A Ddocument.c773 retnodep = nodep; in PHP_METHOD()
784 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_METHOD()
823 retnodep = nodep; in dom_modern_document_import_node()
882 nodep->ns = nsptr; in PHP_METHOD()
893 xmlFreeNode(nodep); in PHP_METHOD()
923 xmlNodePtr nodep; in PHP_METHOD() local
1005 nodep->ns = nsptr; in PHP_METHOD()
1185 xmlNodePtr nodep; in dom_document_adopt_node() local
1602 zval *nodep = NULL; in dom_document_save_xml() local
1619 if (nodep != NULL) { in dom_document_save_xml()
[all …]
H A Dphp_dom.c503 return nodep; in php_dom_export_node()
1698 nodep = parent; in dom_hierarchy()
1700 while (nodep) { in dom_hierarchy()
1704 nodep = nodep->parent; in dom_hierarchy()
1736 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_match_qualified_name_according_to_spec()
1795 nodep = php_dom_next_in_tree_order(nodep, basep); in dom_get_elements_by_tag_name_ns_raw()
1796 if (!nodep) { in dom_get_elements_by_tag_name_ns_raw()
1806 return nodep->content == NULL || *nodep->content == '\0'; in is_empty_node()
1935 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
1954 nodep = nodep->next; in dom_reconcile_ns_list_internal()
[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 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 Dphp_dom.h136 xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix);
137 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep);
138 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last);
140 void php_dom_normalize_legacy(xmlNodePtr nodep);
141 void php_dom_normalize_modern(xmlNodePtr nodep);
154 xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_val…
155 void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null);
157 zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase);
159 bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_docume…
162 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *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 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()
/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()
58 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_last_element_child_read()
60 xmlNodePtr last = nodep->last; in dom_parent_node_last_element_child_read()
82 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_child_element_count()
85 xmlNodePtr first = nodep->children; in dom_parent_node_child_element_count()
/php-src/ext/simplexml/
H A Dsimplexml.c2047 xmlNodePtr nodep = NULL; in sxe_object_clone() local
2076 nodep = xmlDocGetRootElement(docp); in sxe_object_clone()
2078 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone()
2554 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local
2562 nodep = php_libxml_import_node(node); in PHP_FUNCTION()
2564 if (!nodep) { in PHP_FUNCTION()
2569 if (nodep->doc == NULL) { in PHP_FUNCTION()
2574 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION()
2575 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION()
2578 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION()
[all …]

Completed in 111 milliseconds

12