Lines Matching refs:iter
36 void zoi_with_current_dtor(zend_object_iterator *iter) in zoi_with_current_dtor() argument
38 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor()
55 iter->funcs->invalidate_current(iter); in zoi_with_current_dtor()
56 zoiwc->destroy_it(iter); in zoi_with_current_dtor()
60 U_CFUNC int zoi_with_current_valid(zend_object_iterator *iter) in zoi_with_current_valid() argument
62 return Z_ISUNDEF(((zoi_with_current*)iter)->current)? FAILURE : SUCCESS; in zoi_with_current_valid()
65 U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter) in zoi_with_current_get_current_data() argument
67 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data()
70 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter) in zoi_with_current_invalidate_current() argument
72 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current()
79 static void string_enum_current_move_forward(zend_object_iterator *iter) in string_enum_current_move_forward() argument
81 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward()
84 iter->funcs->invalidate_current(iter); in string_enum_current_move_forward()
90 const char *result = ((StringEnumeration*)Z_PTR(iter->data))->next( in string_enum_current_move_forward()
102 static void string_enum_rewind(zend_object_iterator *iter) in string_enum_rewind() argument
104 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_rewind()
108 iter->funcs->invalidate_current(iter); in string_enum_rewind()
114 ((StringEnumeration*)Z_PTR(iter->data))->reset(INTLITERATOR_ERROR_CODE(ii)); in string_enum_rewind()
121 iter->funcs->move_forward(iter); in string_enum_rewind()
125 static void string_enum_destroy_it(zend_object_iterator *iter) in string_enum_destroy_it() argument
127 delete (StringEnumeration*)Z_PTR(iter->data); in string_enum_destroy_it()