Lines Matching refs:iter
35 void zoi_with_current_dtor(zend_object_iterator *iter) in zoi_with_current_dtor() argument
37 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor()
54 iter->funcs->invalidate_current(iter); in zoi_with_current_dtor()
55 zoiwc->destroy_it(iter); in zoi_with_current_dtor()
59 U_CFUNC zend_result zoi_with_current_valid(zend_object_iterator *iter) in zoi_with_current_valid() argument
61 return Z_ISUNDEF(((zoi_with_current*)iter)->current)? FAILURE : SUCCESS; in zoi_with_current_valid()
64 U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter) in zoi_with_current_get_current_data() argument
66 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data()
69 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter) in zoi_with_current_invalidate_current() argument
71 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current()
78 static void string_enum_current_move_forward(zend_object_iterator *iter) in string_enum_current_move_forward() argument
80 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward()
83 iter->funcs->invalidate_current(iter); in string_enum_current_move_forward()
89 const char *result = ((StringEnumeration*)Z_PTR(iter->data))->next( in string_enum_current_move_forward()
101 static void string_enum_rewind(zend_object_iterator *iter) in string_enum_rewind() argument
103 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_rewind()
107 iter->funcs->invalidate_current(iter); in string_enum_rewind()
113 ((StringEnumeration*)Z_PTR(iter->data))->reset(INTLITERATOR_ERROR_CODE(ii)); in string_enum_rewind()
120 iter->funcs->move_forward(iter); in string_enum_rewind()
124 static void string_enum_destroy_it(zend_object_iterator *iter) in string_enum_destroy_it() argument
126 delete (StringEnumeration*)Z_PTR(iter->data); in string_enum_destroy_it()