Searched defs:iterator (Results 1 - 21 of 21) sorted by relevance

/PHP_5_5/ext/intl/common/
H A Dcommon_enum.h45 if (ii->iterator == NULL) { \
53 zend_object_iterator *iterator; member in struct:__anon190
60 void (*destroy_it)(zend_object_iterator *iterator TSRMLS_DC);
/PHP_5_5/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c26 * Although libicu offers iterator functions, they are not used here: libicu does iterate
32 static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator TSRMLS_DC )
35 ResourceBundle_object *rb = iterator->subject;
37 rb->child = ures_getByIndex( rb->me, iterator->i, rb->child, &icuerror );
41 if (iterator->is_table) {
42 iterator->currentkey = estrdup( ures_getKey( rb->child ) );
44 MAKE_STD_ZVAL( iterator->current );
45 resourcebundle_extract_value( iterator->current, rb TSRMLS_CC );
49 iterator->current = NULL;
57 ResourceBundle_iterator *iterator local
73 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
87 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
95 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
106 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
123 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
133 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
156 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_5_5/ext/reflection/
H A Dphp_reflection.c1109 HashPosition iterator; local
1113 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
1114 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) {
1123 zend_hash_move_forward_ex(CG(function_table), &iterator); local
5264 HashPosition iterator; local
5274 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
5275 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) {
5282 zend_hash_move_forward_ex(CG(function_table), &iterator); local
/PHP_5_5/ext/spl/
H A Dspl_heap.c82 /* define an overloaded iterator structure */
890 spl_heap_it *iterator = (spl_heap_it *)iter; local
893 zval_ptr_dtor((zval**)&iterator->intern.it.data);
895 efree(iterator);
901 /* do nothing, the iterator always points to the top element */
907 spl_heap_it *iterator = (spl_heap_it *)iter; local
909 return (iterator->object->heap->count != 0 ? SUCCESS : FAILURE);
915 spl_heap_it *iterator = (spl_heap_it *)iter; local
916 zval **element = (zval **)&iterator->object->heap->elements[0];
918 if (iterator
933 spl_heap_it *iterator = (spl_heap_it *)iter; local
954 spl_heap_it *iterator = (spl_heap_it *)iter; local
963 spl_heap_it *iterator = (spl_heap_it *)iter; local
1103 spl_heap_it *iterator; local
1127 spl_heap_it *iterator; local
[all...]
H A Dspl_iterators.h132 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon226
153 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon228::__anon231
H A Dspl_fixedarray.c889 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
892 zval_ptr_dtor((zval**)&iterator->intern.it.data);
894 efree(iterator);
900 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
901 spl_fixedarray_object *intern = iterator->object;
906 iterator->object->current = 0;
913 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
914 spl_fixedarray_object *intern = iterator->object;
920 if (iterator->object->current >= 0 && iterator
931 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
953 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
966 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
1071 spl_fixedarray_it *iterator; local
[all...]
H A Dspl_directory.c125 zend_object_iterator *iterator; local
126 iterator = (zend_object_iterator*)
128 if (iterator->data != NULL) {
129 iterator->data = NULL;
130 iterator->funcs->dtor(iterator TSRMLS_CC);
739 Cronstructs a new dir iterator from a path. */
1430 Cronstructs a new dir iterator from a path. */
1512 Returns an iterator for the current entry if it is a directory */
1594 Cronstructs a new dir iterator fro
1652 spl_filesystem_iterator *iterator; local
1678 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1704 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1749 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1765 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1805 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1826 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1857 spl_filesystem_iterator *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
149 sub_iter = object->iterators[object->level].iterator;
166 sub_iter = object->iterators[level].iterator;
189 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
197 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
208 zend_object_iterator *iterator; local
217 iterator = object->iterators[object->level].iterator;
220 iterator->funcs->move_forward(iterator TSRMLS_C
415 spl_recursive_it_iterator *iterator; local
448 zval *iterator; local
613 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
631 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1014 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1134 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1180 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
[all...]
H A Dspl_observer.c1044 /* {{{ proto void attachIterator(Iterator iterator[, mixed info]) throws InvalidArgumentException
1045 Attach a new iterator */
1049 zval *iterator = NULL, *info = NULL; local
1051 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|z!", &iterator, zend_ce_iterator, &info) == FAILURE) {
1077 spl_object_storage_attach(intern, getThis(), iterator, info TSRMLS_CC);
1082 Rewind all attached iterator instances */
1105 Move all attached iterator instances forward */
1128 Return whether all or one sub iterator is valid depending on flags */
1203 zend_throw_exception(spl_ce_RuntimeException, "Failed to call sub iterator method", 0 TSRMLS_CC);
1208 zend_throw_exception(spl_ce_RuntimeException, "Called current() with non valid sub iterator",
[all...]
H A Dspl_array.c251 /* Cache iterator functions if ArrayIterator or derived. Check current's */
977 /* define an overloaded iterator structure */
985 spl_array_it *iterator = (spl_array_it *)iter; local
988 zval_ptr_dtor((zval**)&iterator->intern.it.data);
990 efree(iterator);
996 spl_array_it *iterator = (spl_array_it *)iter; local
997 spl_array_object *object = iterator->object;
1014 spl_array_it *iterator = (spl_array_it *)iter; local
1015 spl_array_object *object = iterator->object;
1030 spl_array_it *iterator local
1048 spl_array_it *iterator = (spl_array_it *)iter; local
1094 spl_array_it *iterator = (spl_array_it *)iter; local
1161 spl_array_it *iterator; local
1306 spl_array_object *iterator; local
[all...]
H A Dspl_dllist.c55 #define SPL_DLLIST_IT_DELETE 0x00000001 /* Delete flag makes the iterator delete the current element on next */
56 #define SPL_DLLIST_IT_LIFO 0x00000002 /* LIFO flag makes the iterator traverse the structure as a LastInFirstOut */
101 /* define an overloaded iterator structure */
934 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
936 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
939 zval_ptr_dtor((zval**)&iterator->intern.it.data);
941 efree(iterator);
999 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1000 spl_dllist_object *object = iterator->object;
1003 spl_dllist_it_helper_rewind(&iterator
1009 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1018 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1031 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1039 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1307 spl_dllist_it *iterator; local
[all...]
/PHP_5_5/Zend/
H A Dzend.c137 HashPosition iterator; local
147 zend_hash_internal_pointer_reset_ex(ht, &iterator);
148 while (zend_hash_get_current_data_ex(ht, (void **) &tmp, &iterator) == SUCCESS) {
153 switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) {
185 zend_hash_move_forward_ex(ht, &iterator);
199 HashPosition iterator; local
204 zend_hash_internal_pointer_reset_ex(ht, &iterator);
205 while (zend_hash_get_current_data_ex(ht, (void **) &tmp, &iterator) == SUCCESS) {
210 switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) {
220 zend_hash_move_forward_ex(ht, &iterator);
[all...]
H A Dzend_API.c4007 HashPosition iterator; local
4018 zend_hash_internal_pointer_reset_ex(function_table, &iterator);
4019 while (zend_hash_get_current_data_ex(function_table, (void **)&func, &iterator) == SUCCESS) {
4025 if (zend_hash_get_current_key_ex(function_table, &name, &len, &idx, 0, &iterator) != HASH_KEY_IS_STRING) {
4035 zend_hash_move_forward_ex(function_table, &iterator);
H A Dzend_generators.h31 /* The generator object zval has to be stored, because the iterator is
39 zend_generator_iterator iterator; member in struct:_zend_generator
H A Dzend_interfaces.c118 /* iterator interface, c-level functions used by engine */
252 zend_user_iterator *iterator; local
255 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
258 iterator = emalloc(sizeof(zend_user_iterator));
261 iterator->it.data = (void*)object;
262 iterator->it.funcs = ce->iterator_funcs.funcs;
263 iterator->ce = Z_OBJCE_P(object);
264 iterator->value = NULL;
265 return (zend_object_iterator*)iterator;
272 zval *iterator local
[all...]
H A Dzend_builtin_functions.c2046 HashPosition iterator; local
2049 zend_hash_internal_pointer_reset_ex(arg_array->value.ht, &iterator);
2050 while (zend_hash_get_current_data_ex(arg_array->value.ht, (void **) &tmp, &iterator) == SUCCESS) {
2055 zend_hash_move_forward_ex(arg_array->value.ht, &iterator);
2443 HashPosition iterator; local
2459 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
2467 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &zif, &iterator) == SUCCESS) {
2476 zend_hash_move_forward_ex(CG(function_table), &iterator); local
H A Dzend_generators.c606 static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
608 zval *object = ((zend_generator_iterator *) iterator)->object;
614 static int zend_generator_iterator_valid(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
616 zend_generator *generator = (zend_generator *) iterator->data;
624 static void zend_generator_iterator_get_data(zend_object_iterator *iterator, zval ***data TSRMLS_DC) /* {{{ */ argument
626 zend_generator *generator = (zend_generator *) iterator->data;
638 static void zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key TSRMLS_DC) /* {{{ */ argument
640 zend_generator *generator = (zend_generator *) iterator->data;
652 static void zend_generator_iterator_move_forward(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
654 zend_generator *generator = (zend_generator *) iterator
681 zend_generator_iterator *iterator; local
[all...]
/PHP_5_5/ext/dom/
H A Ddom_iterators.c127 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
129 zval_ptr_dtor((zval**)&iterator->intern.data);
131 if (iterator->curobj) {
132 zval_ptr_dtor((zval**)&iterator->curobj);
135 efree(iterator);
142 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
144 if (iterator->curobj) {
154 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
156 *data = &iterator->curobj;
162 php_dom_iterator *iterator local
192 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
266 php_dom_iterator *iterator; local
[all...]
/PHP_5_5/ext/mysqli/
H A Dmysqli_result_iterator.c49 php_mysqli_result_iterator *iterator; local
52 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
54 iterator = ecalloc(1, sizeof(php_mysqli_result_iterator));
57 iterator->intern.data = (void*)object;
58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs;
59 iterator->result = (mysqli_object *) zend_object_store_get_object(object TSRMLS_CC);
60 iterator->row_num = -1;
62 return (zend_object_iterator*)iterator;
70 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
72 /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrappe
87 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
97 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
108 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
128 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
155 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
[all...]
/PHP_5_5/ext/simplexml/
H A Dsimplexml.c2025 /* dtor required to cleanup iterator related data properly */
2340 php_sxe_iterator *iterator; local
2343 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
2345 iterator = emalloc(sizeof(php_sxe_iterator));
2348 iterator->intern.data = (void*)object;
2349 iterator->intern.funcs = &php_sxe_iterator_funcs;
2350 iterator->sxe = php_sxe_fetch_object(object TSRMLS_CC);
2352 return (zend_object_iterator*)iterator;
2358 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2360 /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrappe
2371 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2379 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2387 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2424 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2433 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]
/PHP_5_5/ext/date/
H A Dphp_date.c1842 /* define an overloaded iterator structure */
1854 date_period_it *iterator = (date_period_it *)iter; local
1856 if (iterator->current) {
1857 zval_ptr_dtor(&iterator->current);
1858 iterator->current = NULL;
1867 date_period_it *iterator = (date_period_it *)iter; local
1871 zval_ptr_dtor(&iterator->date_period_zval);
1873 efree(iterator);
1881 date_period_it *iterator = (date_period_it *)iter; local
1882 php_period_obj *object = iterator
1906 date_period_it *iterator = (date_period_it *)iter; local
1932 date_period_it *iterator = (date_period_it *)iter; local
1941 date_period_it *iterator = (date_period_it *)iter; local
1952 date_period_it *iterator = (date_period_it *)iter; local
1979 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]

Completed in 55 milliseconds