Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 360) sorted by relevance

12345678910>>...15

/php-src/ext/xsl/tests/
H A Dbug70078.phpt20 function testPhpFunction($node) {
30 <node>
32 </node>
49node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>tes…
/php-src/ext/dom/lexbor/lexbor/core/
H A Davl.c128 return (node) ? node->height : 0; in lexbor_avl_node_height()
288 node = node->left; in lexbor_avl_insert()
302 node = node->right; in lexbor_avl_insert()
321 node = node->right; in lexbor_avl_find_min()
335 balance_node = (node->left) ? node->left : node; in lexbor_avl_rotate_for_delete()
415 node = node->left; in lexbor_avl_remove()
418 node = node->right; in lexbor_avl_remove()
444 node = node->left; in lexbor_avl_search()
447 node = node->right; in lexbor_avl_search()
471 node = node->left; in lexbor_avl_foreach()
[all …]
H A Din.c67 node->begin = buf; in lexbor_in_node_make()
69 node->use = buf; in lexbor_in_node_make()
83 return node; in lexbor_in_node_make()
108 return node; in lexbor_in_node_destroy()
122 new_node->offset = node->offset + (pos - node->begin); in lexbor_in_node_split()
148 node = node->next; in lexbor_in_node_find()
151 while (node && (node->begin > pos || node->end < pos)) { in lexbor_in_node_find()
152 node = node->prev; in lexbor_in_node_find()
155 return node; in lexbor_in_node_find()
182 node = node->next; in lexbor_in_node_pos_up()
[all …]
H A Din.h67 lexbor_in_node_clean(lexbor_in_node_t *node);
104 return node->begin; in lexbor_in_node_begin()
108 lexbor_in_node_end(const lexbor_in_node_t *node) in lexbor_in_node_end() argument
110 return node->end; in lexbor_in_node_end()
116 return node->offset; in lexbor_in_node_offset()
120 lexbor_in_node_next(const lexbor_in_node_t *node) in lexbor_in_node_next() argument
122 return node->next; in lexbor_in_node_next()
128 return node->prev; in lexbor_in_node_prev()
132 lexbor_in_node_in(const lexbor_in_node_t *node) in lexbor_in_node_in() argument
134 return node->incoming; in lexbor_in_node_in()
[all …]
/php-src/ext/dom/lexbor/lexbor/selectors-adapted/
H A Dselectors.c255 node = node->parent; in lxb_selectors_descendant()
264 node = node->parent; in lxb_selectors_descendant()
300 node = node->prev; in lxb_selectors_sibling()
311 node = node->prev; in lxb_selectors_sibling()
321 node = node->prev; in lxb_selectors_following()
330 node = node->prev; in lxb_selectors_following()
450 node = node->next; in lxb_selectors_state_tree()
469 entry->node = node; in lxb_selectors_state_run()
706 next->node = node; in lxb_selectors_state_find_check()
868 node = node->prev; in lxb_selectors_next_node()
[all …]
/php-src/ext/dom/lexbor/lexbor/selectors/
H A Dselectors.c177 node = node->parent; in lxb_selectors_descendant()
222 node = node->prev; in lxb_selectors_sibling()
233 node = node->prev; in lxb_selectors_sibling()
243 node = node->prev; in lxb_selectors_following()
252 node = node->prev; in lxb_selectors_following()
401 entry->node = node; in lxb_selectors_state_run()
883 node = entry->node; in lxb_selectors_state_after_find_has()
935 entry->node = node; in lxb_selectors_state_after_find_has()
974 node = entry->node; in lxb_selectors_state_after_find()
1020 entry->node = node; in lxb_selectors_state_after_find()
[all …]
/php-src/ext/ffi/tests/
H A Dlist.phpt26 $node->data = 0;
27 $node->next = $node;
28 $node->prev = $node;
29 $this->root = $node;
34 $node = $root->next;
36 $prev = $node;
37 $node = $node->next;
57 $node->prev->next = $node->next;
58 $node->next->prev = $node->prev;
62 $node = $node->next;
[all …]
/php-src/ext/dom/
H A Dhtml5_serializer.c45 if (node->content) { in dom_html5_serialize_comment()
56 if (node->content) { in dom_html5_serialize_processing_instruction()
163 if (node->ns != NULL && node->ns->prefix != NULL in dom_html5_serialize_element_tag_name()
316 node = node->children; in dom_html5_serialize_node()
332 if (node->next) { in dom_html5_serialize_node()
333 node = node->next; in dom_html5_serialize_node()
337 node = node->parent; in dom_html5_serialize_node()
345 node = node->next; in dom_html5_serialize_node()
382 node = node->children; in dom_html5_serialize_outer()
383 if (!node) { in dom_html5_serialize_outer()
[all …]
H A Dtext.c74 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read()
75 node = node->prev; in dom_text_whole_text_read()
79 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read()
80 if (node->content) { in dom_text_whole_text_read()
83 node = node->next; in dom_text_whole_text_read()
102 xmlNodePtr node; in PHP_METHOD() local
132 xmlNodeSetContent(node, first); in PHP_METHOD()
143 if (node->parent != NULL) { in PHP_METHOD()
145 xmlAddNextSibling(node, nnode); in PHP_METHOD()
159 xmlNodePtr node; in PHP_METHOD() local
[all …]
H A Dnamespace_compat.c253 node->properties = NULL; in php_dom_ns_compat_mark_attribute_list()
277 node->nsDef = NULL; in php_dom_ns_compat_mark_attribute_list()
358 node->ns = new_ns; in php_dom_libxml_reconcile_modern_single_node()
361 node->ns = new_ns; in php_dom_libxml_reconcile_modern_single_node()
369 return node->children == NULL && node->properties == NULL && node->ns == node->nsDef; in dom_libxml_reconcile_fast_element_skip()
379 if (node->ns != NULL) { in php_dom_libxml_reconcile_modern_single_element_node()
411 xmlNodePtr base = node; in php_dom_libxml_reconcile_modern()
412 node = node->children; in php_dom_libxml_reconcile_modern()
413 while (node != NULL) { in php_dom_libxml_reconcile_modern()
420 node = php_dom_next_in_tree_order(node, base); in php_dom_libxml_reconcile_modern()
[all …]
/php-src/ext/soap/
H A Dphp_xml.c193 return xmlSearchNs(node->doc, node->parent, NULL); in attr_find_ns()
202 return xmlSearchNs(node->doc, node, NULL); in node_find_ns()
243 return node; in get_attribute_ex()
245 node = node->next; in get_attribute_ex()
254 return node; in get_node_ex()
256 node = node->next; in get_node_ex()
265 return node; in get_node_recurisve_ex()
272 node = node->next; in get_node_recurisve_ex()
283 node = get_node_ex(node, name, name_ns); in get_node_with_attribute_ex()
293 node = node->next; in get_node_with_attribute_ex()
[all …]
H A Dphp_xml.h22 #define get_attribute(node, name) get_attribute_ex(node, name, NULL) argument
23 #define get_node(node, name) get_node_ex(node, name, NULL) argument
24 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL) argument
25 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL,… argument
26 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_… argument
27 #define node_is_equal(node, name) node_is_equal_ex(node, name, NULL) argument
28 #define attr_is_equal(node, name) attr_is_equal_ex(node, name, NULL) argument
33 xmlNsPtr attr_find_ns(xmlAttrPtr node);
34 xmlNsPtr node_find_ns(xmlNodePtr node);
35 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
[all …]
/php-src/ext/simplexml/
H A Dsimplexml.c137 node = node->next; in sxe_get_element_by_offset()
157 node = node->next; in sxe_find_element_by_name()
192 node = node->next; in sxe_get_element_by_name()
550 node = node->next; in sxe_prop_dim_write()
1047 node = node->next; in sxe_prop_is_empty()
1168 node = node->next; in sxe_get_prop_hash()
1443 node = node->next; in sxe_add_namespaces()
1854 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex()
2049 node = node->next; in PHP_METHOD()
2081 bool is_root_element = sxe->node && sxe->node->node && sxe->node->node->parent in sxe_object_clone()
[all …]
/php-src/ext/simplexml/tests/
H A Dbug37386.phpt2 Bug #39760 (autocreating element doesn't assign value to first node)
10 $sx1->node[0] = 'node1';
11 $sx1->node[1] = 'node2';
14 $node = $sx1->node[0];
15 $node[0] = 'New Value';
22 <root><node>node1</node><node>node2</node></root>
25 <root><node>New Value</node><node>node2</node></root>
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/
H A Dnode.c253 node->owner_document->ev_destroy(node); in lxb_dom_node_destroy()
267 node = node->first_child; in lxb_dom_node_destroy_deep()
390 node->owner_document->ev_insert(node); in lxb_dom_node_insert_child()
465 node->next->prev = node->prev; in lxb_dom_node_remove_wo_events()
469 node->prev->next = node->next; in lxb_dom_node_remove_wo_events()
513 node = node->first_child; in lxb_dom_node_simple_walk()
517 node = node->parent; in lxb_dom_node_simple_walk()
524 node = node->next; in lxb_dom_node_simple_walk()
1268 node = node->first_child; in lxb_dom_node_is_empty()
1272 node = node->parent; in lxb_dom_node_is_empty()
[all …]
H A Dnode.h117 lxb_dom_node_remove(lxb_dom_node_t *node);
176 lxb_dom_node_tag_id(lxb_dom_node_t *node) in lxb_dom_node_tag_id() argument
178 return node->local_name; in lxb_dom_node_tag_id()
182 lxb_dom_node_next(lxb_dom_node_t *node) in lxb_dom_node_next() argument
184 return node->next; in lxb_dom_node_next()
188 lxb_dom_node_prev(lxb_dom_node_t *node) in lxb_dom_node_prev() argument
190 return node->prev; in lxb_dom_node_prev()
194 lxb_dom_node_parent(lxb_dom_node_t *node) in lxb_dom_node_parent() argument
196 return node->parent; in lxb_dom_node_parent()
202 return node->first_child; in lxb_dom_node_first_child()
[all …]
/php-src/ext/dom/lexbor/lexbor/html/
H A Dinterface.c28 lxb_dom_node_t *node; in lxb_html_interface_create() local
55 if (node == NULL) { in lxb_html_interface_create()
59 node->local_name = tag_id; in lxb_html_interface_create()
60 node->ns = ns; in lxb_html_interface_create()
62 return node; in lxb_html_interface_create()
69 const lxb_dom_node_t *node = intrfc; in lxb_html_interface_clone() local
75 switch (node->type) { in lxb_html_interface_clone()
107 node->local_name, node->ns); in lxb_html_interface_clone_element()
126 lxb_dom_node_t *node = intrfc; in lxb_html_interface_destroy() local
128 switch (node->type) { in lxb_html_interface_destroy()
[all …]
H A Dtree.c426 if (node == NULL) { in lxb_html_tree_create_element_for_token()
524 new_attr->node.ns = attr->node.ns; in lxb_html_tree_append_attributes_from_element()
937 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_implied_end_tags()
984 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
1164 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_element_in_scope()
1165 return node; in lxb_html_tree_element_in_scope()
1168 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope()
1191 return node; in lxb_html_tree_element_in_scope_by_node()
1194 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope_by_node()
1583 last = node; in lxb_html_tree_adoption_agency_algorithm()
[all …]
H A Dserialize.h39 lxb_html_serialize_cb(lxb_dom_node_t *node,
43 lxb_html_serialize_str(lxb_dom_node_t *node, lexbor_str_t *str);
46 lxb_html_serialize_tree_cb(lxb_dom_node_t *node,
50 lxb_html_serialize_tree_str(lxb_dom_node_t *node, lexbor_str_t *str);
53 lxb_html_serialize_deep_cb(lxb_dom_node_t *node,
60 lxb_html_serialize_pretty_cb(lxb_dom_node_t *node,
65 lxb_html_serialize_pretty_str(lxb_dom_node_t *node,
70 lxb_html_serialize_pretty_tree_cb(lxb_dom_node_t *node,
75 lxb_html_serialize_pretty_tree_str(lxb_dom_node_t *node,
80 lxb_html_serialize_pretty_deep_cb(lxb_dom_node_t *node,
[all …]
/php-src/ext/dom/lexbor/lexbor/html/tree/
H A Dopen_elements.c41 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_tag_id() local
48 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_pop_until_tag_id()
62 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_h123456() local
92 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_td_th() local
202 lxb_dom_node_t *node; in lxb_html_tree_open_elements_find() local
205 node = list[i]; in lxb_html_tree_open_elements_find()
207 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find()
212 return node; in lxb_html_tree_open_elements_find()
231 lxb_dom_node_t *node; in lxb_html_tree_open_elements_find_reverse() local
237 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find_reverse()
[all …]
/php-src/ext/dom/parentnode/
H A Dtree.c138 while (node != NULL) { in dom_fragment_assign_parent_node()
144 node = node->next; in dom_fragment_assign_parent_node()
353 xmlNodePtr node = NULL; in dom_zvals_to_single_node() local
368 return node; in dom_zvals_to_single_node()
427 return node; in dom_zvals_to_single_node()
433 xmlFree(node); in dom_zvals_to_single_node()
500 xmlFreeNode(node); in dom_insert_node_list_cleanup()
532 xmlFree(node); in dom_insert_node_list_unchecked()
535 node->last = NULL; in dom_insert_node_list_unchecked()
545 xmlUnlinkNode(node); in dom_insert_node_list_unchecked()
[all …]
/php-src/ext/dom/tests/
H A Ddom_test.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 if ($node->nodeType != 3) {
34 if (strlen(trim($node->nodeValue))) {
45 foreach($nodelist as $node)
47 print_node($node);
51 function print_node_compact($node, $spaces)
53 if ($node->nodeType == 3) {
64 foreach ($nodelist as $node) {
[all …]
H A Ddomelement.phpt16 $node = $dom->documentElement;
17 echo "Tag Name: ".$node->tagName."\n";
20 $node->setAttribute('num', '1');
23 $node->removeAttribute('num');
30 $node->setAttributeNode($lang);
32 $node->removeAttributeNode($lang);
46 $node->setAttributeNodeNS($lang);
57 $node->appendChild($element_ns);
59 $node->appendChild($element_ns);
66 $node->setAttribute('idatt', 'n1');
[all …]
/php-src/ext/dom/tests/modern/html/interactions/
H A DHTMLCollection_named_reads.phpt13 <node name="foo">1</node>
16 <node test:id="foo" xmlns:test="http://example.com">3</node>
17 <node id="wrong">4</node>
18 <node id="foo">5</node>
19 <node name="bar">without html ns</node>
20 <node name="bar" xmlns="http://www.w3.org/1999/xhtml">with html ns</node>
33 $node = $obj[$name];
34 if ($node) {
37 $found = $obj[$i] === $node;
45 test($dom->getElementsByTagName('node'), 'foo');
[all …]
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Din_body.c220 if (node == NULL || node->local_name != LXB_TAG_BODY) { in lxb_html_tree_insertion_mode_in_body_body()
252 if (node == NULL || node->local_name != LXB_TAG_BODY) { in lxb_html_tree_insertion_mode_in_body_frameset()
388 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_h123456()
433 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_pre_listing()
469 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_form()
521 is_special = lxb_html_tag_is_category(node->local_name, node->ns, in lxb_html_tree_insertion_mode_in_body_li()
534 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_li()
601 is_special = lxb_html_tag_is_category(node->local_name, node->ns, in lxb_html_tree_insertion_mode_in_body_dd_dt()
614 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_dd_dt()
637 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_plaintext()
[all …]

Completed in 127 milliseconds

12345678910>>...15