Lines Matching refs:ii
90 &result_length, INTLITERATOR_ERROR_CODE(ii)); in string_enum_current_move_forward()
92 intl_error_set_code(NULL, INTLITERATOR_ERROR_CODE(ii)); in string_enum_current_move_forward()
93 if (U_FAILURE(INTLITERATOR_ERROR_CODE(ii))) { in string_enum_current_move_forward()
94 intl_errors_set_custom_msg(INTL_DATA_ERROR_P(ii), in string_enum_current_move_forward()
113 ((StringEnumeration*)Z_PTR(iter->data))->reset(INTLITERATOR_ERROR_CODE(ii)); in string_enum_rewind()
115 intl_error_set_code(NULL, INTLITERATOR_ERROR_CODE(ii)); in string_enum_rewind()
116 if (U_FAILURE(INTLITERATOR_ERROR_CODE(ii))) { in string_enum_rewind()
117 intl_errors_set_custom_msg(INTL_DATA_ERROR_P(ii), in string_enum_rewind()
142 IntlIterator_object *ii; in IntlIterator_from_StringEnumeration() local
144 ii = Z_INTL_ITERATOR_P(object); in IntlIterator_from_StringEnumeration()
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()
157 IntlIterator_object *ii = php_intl_iterator_fetch_object(object); in IntlIterator_objects_free() local
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()
164 intl_error_reset(INTLITERATOR_ERROR_P(ii)); in IntlIterator_objects_free()
166 zend_object_std_dtor(&ii->zo); in IntlIterator_objects_free()
178 IntlIterator_object *ii = Z_INTL_ITERATOR_P(object); in IntlIterator_get_iterator() local
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()
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()
258 intl_errors_set(INTLITERATOR_ERROR_P(ii), U_UNSUPPORTED_ERROR, in PHP_METHOD()
270 RETURN_BOOL(ii->iterator->funcs->valid(ii->iterator) == SUCCESS); in PHP_METHOD()