Lines Matching refs:iter
36 void zoi_with_current_dtor(zend_object_iterator *iter TSRMLS_DC) in zoi_with_current_dtor()
38 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor()
55 iter->funcs->invalidate_current(iter TSRMLS_CC); in zoi_with_current_dtor()
56 zoiwc->destroy_it(iter TSRMLS_CC); in zoi_with_current_dtor()
57 efree(iter); in zoi_with_current_dtor()
61 U_CFUNC int zoi_with_current_valid(zend_object_iterator *iter TSRMLS_DC) in zoi_with_current_valid()
63 return ((zoi_with_current*)iter)->current != NULL ? SUCCESS : FAILURE; in zoi_with_current_valid()
66 U_CFUNC void zoi_with_current_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) in zoi_with_current_get_current_data() argument
68 *data = &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data()
71 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter TSRMLS_DC) in zoi_with_current_invalidate_current()
73 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current()
80 static void string_enum_current_move_forward(zend_object_iterator *iter TSRMLS_DC) in string_enum_current_move_forward()
82 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward()
85 iter->funcs->invalidate_current(iter TSRMLS_CC); in string_enum_current_move_forward()
91 const char *result = ((StringEnumeration*)iter->data)->next( in string_enum_current_move_forward()
104 static void string_enum_rewind(zend_object_iterator *iter TSRMLS_DC) in string_enum_rewind()
106 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_rewind()
110 iter->funcs->invalidate_current(iter TSRMLS_CC); in string_enum_rewind()
116 ((StringEnumeration*)iter->data)->reset(INTLITERATOR_ERROR_CODE(ii)); in string_enum_rewind()
123 iter->funcs->move_forward(iter TSRMLS_CC); in string_enum_rewind()
127 static void string_enum_destroy_it(zend_object_iterator *iter TSRMLS_DC) in string_enum_destroy_it()
129 delete (StringEnumeration*)iter->data; in string_enum_destroy_it()