Lines Matching refs:iter
88 nodeIterator *iter; in php_dom_libxml_hash_iter() local
92 iter = emalloc(sizeof(nodeIterator)); in php_dom_libxml_hash_iter()
93 iter->cur = 0; in php_dom_libxml_hash_iter()
94 iter->index = index; in php_dom_libxml_hash_iter()
95 iter->node = NULL; in php_dom_libxml_hash_iter()
96 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_hash_iter()
97 nodep = iter->node; in php_dom_libxml_hash_iter()
98 efree(iter); in php_dom_libxml_hash_iter()
108 notationIterator *iter; in php_dom_libxml_notation_iter() local
113 iter = emalloc(sizeof(notationIterator)); in php_dom_libxml_notation_iter()
114 iter->cur = 0; in php_dom_libxml_notation_iter()
115 iter->index = index; in php_dom_libxml_notation_iter()
116 iter->notation = NULL; in php_dom_libxml_notation_iter()
117 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_notation_iter()
118 notep = iter->notation; in php_dom_libxml_notation_iter()
119 efree(iter); in php_dom_libxml_notation_iter()
127 static void php_dom_iterator_dtor(zend_object_iterator *iter) /* {{{ */ in php_dom_iterator_dtor() argument
129 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_dtor()
136 static int php_dom_iterator_valid(zend_object_iterator *iter) /* {{{ */ in php_dom_iterator_valid() argument
139 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_valid()
149 zval *php_dom_iterator_current_data(zend_object_iterator *iter) /* {{{ */ in php_dom_iterator_current_data() argument
151 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_data()
157 static void php_dom_iterator_current_key(zend_object_iterator *iter, zval *key) /* {{{ */ in php_dom_iterator_current_key() argument
159 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_key()
163 ZVAL_LONG(key, iter->index); in php_dom_iterator_current_key()
177 static void php_dom_iterator_move_forward(zend_object_iterator *iter) /* {{{ */ in php_dom_iterator_move_forward() argument
189 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_move_forward()
226 basenode, (char *) objmap->ns, (char *) objmap->local, &previndex, iter->index); in php_dom_iterator_move_forward()
231 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward()
233 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward()