Searched refs:node (Results 1 - 25 of 53) sorted by relevance

123

/PHP_TRUNK/ext/dom/examples/
H A Ddom1.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 $child_count = $node->childNodes->length;
30 print "\nNode Content: " . $node->nodeValue;
37 foreach($nodelist as $node)
39 print_node($node);
/PHP_TRUNK/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) {
28 $child_count = $node->childNodes->length;
34 print "\nNode Content: " . $node->nodeValue;
41 foreach($nodelist as $node)
43 print_node($node);
/PHP_TRUNK/ext/tidy/examples/
H A Ddumpit5.php54 function dump_tree(tidyNode $node, $indent = 0) {
56 /* Put something there if the node name is empty */
57 $nodename = trim(strtoupper($node->name));
61 do_leaf(" + $nodename (".node_type($node->type).")\n", $indent);
63 /* Check to see if this node is a text node. Text nodes are
65 i.e. <B>foo</B> will create a text node with $node->value
67 if($node->type == TIDY_NODETYPE_TEXT) {
69 do_leaf(" +---- Value: '{$node
[all...]
H A Durlgrab5.php15 function dump_nodes(tidyNode $node, &$urls = NULL) {
19 if(isset($node->id)) {
20 if($node->id == TIDY_TAG_A) {
21 $urls[] = $node->attribute['href'];
25 if($node->hasChildren()) {
27 foreach($node->child as $c) {
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dqueue.h32 } node ; typedef in typeref:struct:nodeptr
38 node *head, *tail, *cursor;
44 node *loc ;
85 #define Q_Iter_Next_F(qi) (qi ? (q_iter)((node*)qi)->next : NULL)
86 #define Q_Iter_Prev_F(qi) (qi ? (q_iter)((node*)qi)->prev : NULL)
87 #define Q_Iter_Get_F(qi) (qi ? ((node*)qi)->data : NULL)
H A Dxml_to_dandarpc.c171 xml_element* DANDARPC_to_xml_element_worker(XMLRPC_REQUEST request, XMLRPC_VALUE node) { argument
174 if(node) {
176 const char* id = XMLRPC_GetValueID(node);
177 XMLRPC_VALUE_TYPE type = XMLRPC_GetValueType(node);
205 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node));
209 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node));
214 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node));
219 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node));
224 simplestring_add(&elem_val->text, XMLRPC_GetValueDateTime_ISO8601(node));
275 DANDARPC_VALUE_to_xml_element(XMLRPC_VALUE node) argument
[all...]
H A Dxml_to_dandarpc.h41 xml_element* DANDARPC_VALUE_to_xml_element(XMLRPC_VALUE node);
H A Dxml_to_soap.h41 xml_element* SOAP_VALUE_to_xml_element(XMLRPC_VALUE node);
H A Dxml_to_xmlrpc.c189 xml_element* XMLRPC_to_xml_element_worker(XMLRPC_VALUE current_vector, XMLRPC_VALUE node, argument
193 if (node) {
195 XMLRPC_VALUE_TYPE type = XMLRPC_GetValueType(node);
196 XMLRPC_VECTOR_TYPE vtype = XMLRPC_GetVectorType(node);
204 int bIsFault = (vtype == xmlrpc_vector_struct && XMLRPC_VectorGetValueWithID(node, ELEM_FAULTCODE));
206 xml_element* next_el = XMLRPC_to_xml_element_worker(NULL, node, request_type, depth + 1);
217 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node));
221 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node));
226 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node));
368 XMLRPC_VALUE_to_xml_element(XMLRPC_VALUE node) argument
[all...]
H A Dxml_to_xmlrpc.h42 xml_element* XMLRPC_VALUE_to_xml_element(XMLRPC_VALUE node);
H A Dxml_to_soap.c107 static const char* get_array_soap_type(XMLRPC_VALUE node) { argument
110 XMLRPC_VALUE xIter = XMLRPC_VectorRewind(node);
115 xIter = XMLRPC_VectorNext(node);
128 xIter = XMLRPC_VectorNext(node);
168 /* determines whether a node is a fault or not, and of which type:
173 static inline int get_fault_type(XMLRPC_VALUE node) { argument
174 if (XMLRPC_VectorGetValueWithID(node, TOKEN_XMLRPC_FAULTCODE) &&
175 XMLRPC_VectorGetValueWithID(node, TOKEN_XMLRPC_FAULTSTRING)) {
178 else if (XMLRPC_VectorGetValueWithID(node, TOKEN_SOAP_FAULTCODE) &&
179 XMLRPC_VectorGetValueWithID(node, TOKEN_SOAP_FAULTSTRIN
191 gen_fault_xmlrpc(XMLRPC_VALUE node, xml_element* el_target) argument
434 SOAP_to_xml_element_worker(XMLRPC_REQUEST request, XMLRPC_VALUE node) argument
577 SOAP_VALUE_to_xml_element(XMLRPC_VALUE node) argument
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregparse.h34 /* node type */
47 /* node type bit */
66 #define NTYPE(node) ((node)->u.base.type)
67 #define SET_NTYPE(node, ntype) (node)->u.base.type = (ntype)
69 #define NSTR(node) (&((node)->u.str))
70 #define NCCLASS(node) (&((node)
[all...]
H A Dregtrav.c35 capture_tree_traverse(OnigCaptureTreeNode* node, int at, argument
41 if (node == (OnigCaptureTreeNode* )0)
45 r = (*callback_func)(node->group, node->beg, node->end,
50 for (i = 0; i < node->num_childs; i++) {
51 r = capture_tree_traverse(node->childs[i], at,
57 r = (*callback_func)(node->group, node->beg, node
[all...]
H A Dregcomp.c179 unset_addr_list_add(UnsetAddrList* uslist, int offset, struct _Node* node) argument
193 uslist->us[uslist->num].target = node;
306 static int compile_length_tree(Node* node, regex_t* reg);
307 static int compile_tree(Node* node, regex_t* reg);
360 compile_tree_empty_check(Node* node, regex_t* reg, int empty_info) argument
373 r = compile_tree(node, reg);
392 compile_call(CallNode* node, regex_t* reg) argument
398 r = unset_addr_list_add(node->unset_addr_list, BBUF_GET_OFFSET_POS(reg),
399 node->target);
407 compile_tree_n_times(Node* node, in argument
458 compile_length_string_node(Node* node, regex_t* reg) argument
506 compile_string_node(Node* node, regex_t* reg) argument
1159 compile_length_option_node(EncloseNode* node, regex_t* reg) argument
1179 compile_option_node(EncloseNode* node, regex_t* reg) argument
1205 compile_length_enclose_node(EncloseNode* node, regex_t* reg) argument
1271 compile_enclose_node(EncloseNode* node, regex_t* reg) argument
1372 compile_length_anchor_node(AnchorNode* node, regex_t* reg) argument
1405 compile_anchor_node(AnchorNode* node, regex_t* reg) argument
1489 compile_length_tree(Node* node, regex_t* reg) argument
1582 compile_tree(Node* node, regex_t* reg) argument
1754 Node* node = *plink; local
1805 renumber_node_backref(Node* node, GroupNumRemap* map) argument
1833 renumber_by_map(Node* node, GroupNumRemap* map) argument
1863 numbered_ref_check(Node* node) argument
1956 quantifiers_memory_node_info(Node* node) argument
2024 get_min_match_length(Node* node, OnigDistance *min, ScanEnv* env) argument
2147 get_max_match_length(Node* node, OnigDistance *max, ScanEnv* env) argument
2268 get_char_length_tree1(Node* node, regex_t* reg, int* len, int level) argument
2391 get_char_length_tree(Node* node, regex_t* reg, int* len) argument
2573 get_head_value_node(Node* node, int exact, regex_t* reg) argument
2660 check_type_tree(Node* node, int type_mask, int enclose_mask, int anchor_mask) argument
2714 subexp_inf_recursive_check(Node* node, ScanEnv* env, int head) argument
2798 subexp_inf_recursive_check_trav(Node* node, ScanEnv* env) argument
2853 subexp_recursive_check(Node* node) argument
2909 subexp_recursive_check_trav(Node* node, ScanEnv* env) argument
2978 setup_subexp_call(Node* node, ScanEnv* env) argument
3091 divide_look_behind_alternatives(Node* node) argument
3121 setup_look_behind(Node* node, regex_t* reg, ScanEnv* env) argument
3142 next_setup(Node* node, Node* next_node, regex_t* reg) argument
3190 update_string_node_case_fold(regex_t* reg, Node *node) argument
3235 Node *node; local
3365 expand_case_fold_string(Node* node, regex_t* reg) argument
3511 setup_comb_exp_check(Node* node, int state, ScanEnv* env) argument
3655 setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env) argument
4538 optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env) argument
4957 set_optimize_info_from_tree(Node* node, regex_t* reg, ScanEnv* scan_env) argument
6082 print_indent_tree(FILE* f, Node* node, int indent) argument
6248 print_tree(FILE* f, Node* node) argument
[all...]
H A Dregparse.c987 scan_env_set_mem_node(ScanEnv* env, int num, Node* node) argument
990 SCANENV_MEM_NODES(env)[num] = node;
1006 onig_node_free(Node* node) argument
1009 if (IS_NULL(node)) return ;
1011 switch (NTYPE(node)) {
1013 if (NSTR(node)->capa != 0 &&
1014 IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
1015 xfree(NSTR(node)
1107 Node* node; local
1138 Node* node = node_new(); local
1154 Node* node = node_new_cclass(); local
1199 Node* node = node_new(); local
1211 Node* node = node_new(); local
1221 Node* node = node_new(); local
1257 Node* node = node_new(); local
1269 Node* node = node_new(); local
1287 Node* node = node_new(); local
1334 Node* node = node_new(); local
1350 Node* node = node_new(); local
1376 Node* node = node_new(); local
1399 Node* node = node_new_enclose(ENCLOSE_MEMORY); local
1413 Node* node = node_new_enclose(ENCLOSE_OPTION); local
1420 onig_node_str_cat(Node* node, const UChar* s, const UChar* end) argument
1456 onig_node_str_set(Node* node, const UChar* s, const UChar* end) argument
1463 node_str_cat_char(Node* node, UChar c) argument
1472 onig_node_conv_to_str_node(Node* node, int flag) argument
1482 onig_node_str_clear(Node* node) argument
1498 Node* node = node_new(); local
1522 Node* node = node_new_str(s, end); local
2122 is_invalid_quantifier_target(Node* node) argument
4181 Node* node; local
4897 i_free_shared_class(type_cclass_key* key, Node* node, void* arg ARG_UNUSED) argument
5432 Node *node, **headp; local
5469 Node *node, **headp; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_xml.c42 static void cleanup_xml_node(xmlNodePtr node) argument
47 trav = node->children;
183 xmlNsPtr attr_find_ns(xmlAttrPtr node) argument
185 if (node->ns) {
186 return node->ns;
187 } else if (node->parent->ns) {
188 return node->parent->ns;
190 return xmlSearchNs(node->doc, node->parent, NULL);
194 xmlNsPtr node_find_ns(xmlNodePtr node) argument
203 attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns) argument
219 node_is_equal_ex(xmlNodePtr node, char *name, char *ns) argument
236 get_attribute_ex(xmlAttrPtr node, char *name, char *ns) argument
247 get_node_ex(xmlNodePtr node, char *name, char *ns) argument
258 get_node_recurisve_ex(xmlNodePtr node, char *name, char *ns) argument
274 get_node_with_attribute_ex(xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns) argument
295 get_node_with_attribute_recursive_ex(xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns) argument
[all...]
H A Dphp_xml.h25 #define get_attribute(node, name) get_attribute_ex(node, name, NULL)
26 #define get_node(node, name) get_node_ex(node, name, NULL)
27 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL)
28 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL, attr, val, NULL)
29 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_ex(node, nam
[all...]
/PHP_TRUNK/ext/dom/
H A Dentityreference.c52 xmlNode *node; local
73 node = xmlNewReference(NULL, name);
75 if (!node) {
86 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern TSRMLS_CC);
H A Dcharacterdata.c158 xmlNodePtr node; local
167 DOM_GET_OBJ(node, id, xmlNodePtr, intern);
169 cur = xmlNodeGetContent(node);
240 xmlNodePtr node; local
250 DOM_GET_OBJ(node, id, xmlNodePtr, intern);
252 cur = xmlNodeGetContent(node);
269 xmlNodeSetContent(node, first);
270 xmlNodeAddContent(node, arg);
271 xmlNodeAddContent(node, second);
288 xmlNodePtr node; local
343 xmlNodePtr node; local
[all...]
H A Dtext.c107 xmlNodePtr node; local
110 node = dom_object_get_node(obj);
112 if (node == NULL) {
117 /* Find starting text node */
118 while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTION_NODE))) {
119 node = node->prev;
123 while (node
150 xmlNodePtr node; local
208 xmlNodePtr node; local
[all...]
H A Dxpath.c141 xmlNodePtr node = obj->nodesetval->nodeTab[j]; local
144 if (node->type == XML_NAMESPACE_DECL) {
148 nsparent = node->_private;
149 curns = xmlNewNs(NULL, node->name, NULL);
150 if (node->children) {
151 curns->prefix = xmlStrdup((xmlChar *) node->children);
153 if (node->children) {
154 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node
446 xmlNodePtr node = nodesetp->nodeTab[i]; local
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dphp_simplexml_exports.h34 if ((__s)->node && (__s)->node->node) { \
35 __n = (__s)->node->node; \
H A Dsxe.c103 if (intern != NULL && intern->node != NULL) {
104 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node;
133 xmlNodePtr node; local
144 GET_NODE(child, node);
145 if (node) {
146 node = node->children;
148 while (node && node
[all...]
H A Dsimplexml.c56 static xmlNodePtr php_sxe_iterator_fetch(php_sxe_object *sxe, xmlNodePtr node, int use_data TSRMLS_DC);
67 static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, SXE_ITER itertype, char *name, const xmlChar *nsprefix, int isprefix TSRMLS_DC) argument
83 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL TSRMLS_CC);
101 if ((__s)->node && (__s)->node->node) { \
102 __n = (__s)->node->node; \
109 static xmlNodePtr php_sxe_get_first_node(php_sxe_object *sxe, xmlNodePtr node TSRMLS_DC) /* {{{ */
122 return node;
127 match_ns(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name, int prefix) argument
141 sxe_get_element_by_offset(php_sxe_object *sxe, php_int_t offset, xmlNodePtr node, php_int_t *cnt) argument
178 sxe_find_element_by_name(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name TSRMLS_DC) argument
193 sxe_get_element_by_name(php_sxe_object *sxe, xmlNodePtr node, char **name, SXE_ITER *type TSRMLS_DC) argument
250 xmlNodePtr node; local
401 change_node_zval(xmlNodePtr node, zval *value TSRMLS_DC) argument
449 xmlNodePtr node; local
693 xmlNodePtr node; local
732 xmlNodePtr node; local
861 xmlNodePtr node; local
999 _get_base_node_value(php_sxe_object *sxe_ref, xmlNodePtr node, zval *value, xmlChar *nsprefix, int isprefix TSRMLS_DC) argument
1058 xmlNodePtr node; local
1347 xmlNodePtr node; local
1383 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL); local
1409 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding); local
1435 sxe_add_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive, zval *return_value TSRMLS_DC) argument
1468 xmlNodePtr node; local
1490 sxe_add_registered_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive, zval *return_value TSRMLS_DC) argument
1517 xmlNodePtr node; local
1546 xmlNodePtr node; local
1572 xmlNodePtr node; local
1595 xmlNodePtr node; local
1622 xmlNodePtr node, newnode; local
1687 xmlNodePtr node; local
1792 xmlNodePtr node; local
1869 xmlNodePtr node; local
2230 php_sxe_iterator_fetch(php_sxe_object *sxe, xmlNodePtr node, int use_data TSRMLS_DC) argument
2262 xmlNodePtr node; local
2353 xmlNodePtr node = NULL; local
2390 xmlNodePtr node; local
2403 zval *node; local
[all...]
/PHP_TRUNK/ext/libxml/
H A Dlibxml.c175 if (nodeptr->node != NULL && nodeptr->node->type != XML_DOCUMENT_NODE) {
176 nodeptr->node->_private = NULL;
178 nodeptr->node = NULL;
185 static void php_libxml_node_free(xmlNodePtr node) argument
187 if(node) {
188 if (node->_private != NULL) {
189 ((php_libxml_node_ptr *) node->_private)->node = NULL;
191 switch (node
1156 xmlNodePtr node = NULL; local
1171 php_libxml_increment_node_ptr(php_libxml_node_object *object, xmlNodePtr node, void *private_data TSRMLS_DC) argument
[all...]

Completed in 55 milliseconds

123