Lines Matching refs:iterator

144 	ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_with_current));  in IntlIterator_from_StringEnumeration()
145 zend_iterator_init(ii->iterator); in IntlIterator_from_StringEnumeration()
146 ZVAL_PTR(&ii->iterator->data, se); in IntlIterator_from_StringEnumeration()
147 ii->iterator->funcs = &string_enum_object_iterator_funcs; in IntlIterator_from_StringEnumeration()
148 ii->iterator->index = 0; in IntlIterator_from_StringEnumeration()
149 ((zoi_with_current*)ii->iterator)->destroy_it = string_enum_destroy_it; in IntlIterator_from_StringEnumeration()
150 ZVAL_OBJ(&((zoi_with_current*)ii->iterator)->wrapping_obj, Z_OBJ_P(object)); in IntlIterator_from_StringEnumeration()
151 ZVAL_UNDEF(&((zoi_with_current*)ii->iterator)->current); in IntlIterator_from_StringEnumeration()
158 if (ii->iterator) { in IntlIterator_objects_free()
159 zval *wrapping_objp = &((zoi_with_current*)ii->iterator)->wrapping_obj; in IntlIterator_objects_free()
161 zend_iterator_dtor(ii->iterator); in IntlIterator_objects_free()
179 if (ii->iterator == NULL) { in IntlIterator_get_iterator()
185 GC_ADDREF(&ii->iterator->std); in IntlIterator_get_iterator()
187 return ii->iterator; in IntlIterator_get_iterator()
200 intern->iterator = NULL; in IntlIterator_object_create()
217 data = ii->iterator->funcs->get_current_data(ii->iterator); in PHP_METHOD()
233 if (ii->iterator->funcs->get_current_key) { in PHP_METHOD()
234 ii->iterator->funcs->get_current_key(ii->iterator, return_value); in PHP_METHOD()
236 RETURN_LONG(ii->iterator->index); in PHP_METHOD()
249 ii->iterator->funcs->move_forward(ii->iterator); in PHP_METHOD()
252 ii->iterator->index++; in PHP_METHOD()
264 if (ii->iterator->funcs->rewind) { in PHP_METHOD()
265 ii->iterator->funcs->rewind(ii->iterator); in PHP_METHOD()
281 RETURN_BOOL(ii->iterator->funcs->valid(ii->iterator) == SUCCESS); in PHP_METHOD()