Lines Matching refs:iterator
145 ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_with_current)); in IntlIterator_from_StringEnumeration()
146 zend_iterator_init(ii->iterator); in IntlIterator_from_StringEnumeration()
147 ZVAL_PTR(&ii->iterator->data, se); in IntlIterator_from_StringEnumeration()
148 ii->iterator->funcs = &string_enum_object_iterator_funcs; in IntlIterator_from_StringEnumeration()
149 ii->iterator->index = 0; in IntlIterator_from_StringEnumeration()
150 ((zoi_with_current*)ii->iterator)->destroy_it = string_enum_destroy_it; in IntlIterator_from_StringEnumeration()
151 ZVAL_COPY_VALUE(&((zoi_with_current*)ii->iterator)->wrapping_obj, object); in IntlIterator_from_StringEnumeration()
152 ZVAL_UNDEF(&((zoi_with_current*)ii->iterator)->current); in IntlIterator_from_StringEnumeration()
159 if (ii->iterator) { in IntlIterator_objects_free()
160 zval *wrapping_objp = &((zoi_with_current*)ii->iterator)->wrapping_obj; in IntlIterator_objects_free()
162 zend_iterator_dtor(ii->iterator); in IntlIterator_objects_free()
180 if (ii->iterator == NULL) { in IntlIterator_get_iterator()
186 GC_ADDREF(&ii->iterator->std); in IntlIterator_get_iterator()
188 return ii->iterator; in IntlIterator_get_iterator()
201 intern->iterator = NULL; in IntlIterator_object_create()
220 data = ii->iterator->funcs->get_current_data(ii->iterator); in PHP_METHOD()
238 if (ii->iterator->funcs->get_current_key) { in PHP_METHOD()
239 ii->iterator->funcs->get_current_key(ii->iterator, return_value); in PHP_METHOD()
241 RETURN_LONG(ii->iterator->index); in PHP_METHOD()
256 ii->iterator->funcs->move_forward(ii->iterator); in PHP_METHOD()
259 ii->iterator->index++; in PHP_METHOD()
273 if (ii->iterator->funcs->rewind) { in PHP_METHOD()
274 ii->iterator->funcs->rewind(ii->iterator); in PHP_METHOD()
292 RETURN_BOOL(ii->iterator->funcs->valid(ii->iterator) == SUCCESS); in PHP_METHOD()