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_OBJ(&((zoi_with_current*)ii->iterator)->wrapping_obj, Z_OBJ_P(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()
214 data = ii->iterator->funcs->get_current_data(ii->iterator); in PHP_METHOD()
228 if (ii->iterator->funcs->get_current_key) { in PHP_METHOD()
229 ii->iterator->funcs->get_current_key(ii->iterator, return_value); in PHP_METHOD()
231 RETURN_LONG(ii->iterator->index); in PHP_METHOD()
242 ii->iterator->funcs->move_forward(ii->iterator); in PHP_METHOD()
245 ii->iterator->index++; in PHP_METHOD()
255 if (ii->iterator->funcs->rewind) { in PHP_METHOD()
256 ii->iterator->funcs->rewind(ii->iterator); in PHP_METHOD()
270 RETURN_BOOL(ii->iterator->funcs->valid(ii->iterator) == SUCCESS); in PHP_METHOD()