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

/PHP_TRUNK/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_TRUNK/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_TRUNK/Zend/
H A Dzend.c138 HashPosition iterator; local
148 zend_hash_internal_pointer_reset_ex(ht, &iterator);
149 while (zend_hash_get_current_data_ex(ht, (void **) &tmp, &iterator) == SUCCESS) {
154 switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) {
186 zend_hash_move_forward_ex(ht, &iterator);
200 HashPosition iterator; local
205 zend_hash_internal_pointer_reset_ex(ht, &iterator);
206 while (zend_hash_get_current_data_ex(ht, (void **) &tmp, &iterator) == SUCCESS) {
211 switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) {
221 zend_hash_move_forward_ex(ht, &iterator);
[all...]
H A Dzend_builtin_functions.c2056 HashPosition iterator; local
2059 zend_hash_internal_pointer_reset_ex(arg_array->value.ht, &iterator);
2060 while (zend_hash_get_current_data_ex(arg_array->value.ht, (void **) &tmp, &iterator) == SUCCESS) {
2065 zend_hash_move_forward_ex(arg_array->value.ht, &iterator);
2453 HashPosition iterator; local
2469 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
2477 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &zif, &iterator) == SUCCESS) {
2486 zend_hash_move_forward_ex(CG(function_table), &iterator); local
H A Dzend_generators.c605 static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
607 zval *object = ((zend_generator_iterator *) iterator)->object;
613 static int zend_generator_iterator_valid(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
615 zend_generator *generator = (zend_generator *) iterator->data;
623 static void zend_generator_iterator_get_data(zend_object_iterator *iterator, zval ***data TSRMLS_DC) /* {{{ */ argument
625 zend_generator *generator = (zend_generator *) iterator->data;
637 static void zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key TSRMLS_DC) /* {{{ */ argument
639 zend_generator *generator = (zend_generator *) iterator->data;
651 static void zend_generator_iterator_move_forward(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
653 zend_generator *generator = (zend_generator *) iterator
680 zend_generator_iterator *iterator; local
[all...]
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_API.c4018 HashPosition iterator; local
4029 zend_hash_internal_pointer_reset_ex(function_table, &iterator);
4030 while (zend_hash_get_current_data_ex(function_table, (void **)&func, &iterator) == SUCCESS) {
4036 if (zend_hash_get_current_key_ex(function_table, &name, &len, &idx, 0, &iterator) != HASH_KEY_IS_STRING) {
4046 zend_hash_move_forward_ex(function_table, &iterator);
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/spl/
H A Dspl_dllist.c57 #define SPL_DLLIST_IT_DELETE 0x00000001 /* Delete flag makes the iterator delete the current element on next */
58 #define SPL_DLLIST_IT_LIFO 0x00000002 /* LIFO flag makes the iterator traverse the structure as a LastInFirstOut */
103 /* define an overloaded iterator structure */
931 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
933 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
936 zval_ptr_dtor((zval**)&iterator->intern.it.data);
938 efree(iterator);
996 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
997 spl_dllist_object *object = iterator->object;
1000 spl_dllist_it_helper_rewind(&iterator
1006 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1015 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1028 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1036 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1304 spl_dllist_it *iterator; local
[all...]
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_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::__anon227
153 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon229::__anon232
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. */
1428 Cronstructs a new dir iterator from a path. */
1510 Returns an iterator for the current entry if it is a directory */
1592 Cronstructs a new dir iterator fro
1650 spl_filesystem_iterator *iterator; local
1676 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1702 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1747 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1763 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1803 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1824 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1855 spl_filesystem_iterator *iterator; local
[all...]
H A Dspl_array.c251 /* Cache iterator functions if ArrayIterator or derived. Check current's */
986 /* define an overloaded iterator structure */
994 spl_array_it *iterator = (spl_array_it *)iter; local
997 zval_ptr_dtor((zval**)&iterator->intern.it.data);
999 efree(iterator);
1005 spl_array_it *iterator = (spl_array_it *)iter; local
1006 spl_array_object *object = iterator->object;
1023 spl_array_it *iterator = (spl_array_it *)iter; local
1024 spl_array_object *object = iterator->object;
1039 spl_array_it *iterator local
1057 spl_array_it *iterator = (spl_array_it *)iter; local
1103 spl_array_it *iterator = (spl_array_it *)iter; local
1170 spl_array_it *iterator; local
1315 spl_array_object *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
1012 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1132 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1178 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
[all...]
H A Dspl_observer.c1061 /* {{{ proto void attachIterator(Iterator iterator[, mixed info]) throws InvalidArgumentException
1062 Attach a new iterator */
1066 zval *iterator = NULL, *info = NULL; local
1068 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|z!", &iterator, zend_ce_iterator, &info) == FAILURE) {
1094 spl_object_storage_attach(intern, getThis(), iterator, info TSRMLS_CC);
1099 Rewind all attached iterator instances */
1122 Move all attached iterator instances forward */
1145 Return whether all or one sub iterator is valid depending on flags */
1220 zend_throw_exception(spl_ce_RuntimeException, "Failed to call sub iterator method", 0 TSRMLS_CC);
1225 zend_throw_exception(spl_ce_RuntimeException, "Called current() with non valid sub iterator",
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_frame.c132 HashPosition iterator; local
139 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(args), &iterator); local
141 (void **) &argstmp, &iterator) == SUCCESS) {
155 zend_hash_move_forward_ex(Z_ARRVAL_PP(args), &iterator); local
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c2019 /* dtor required to cleanup iterator related data properly */
2334 php_sxe_iterator *iterator; local
2337 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
2339 iterator = emalloc(sizeof(php_sxe_iterator));
2342 iterator->intern.data = (void*)object;
2343 iterator->intern.funcs = &php_sxe_iterator_funcs;
2344 iterator->sxe = php_sxe_fetch_object(object TSRMLS_CC);
2346 return (zend_object_iterator*)iterator;
2352 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2354 /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrappe
2365 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2373 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2381 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2418 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2427 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1112 HashPosition iterator; local
1116 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
1117 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) {
1126 zend_hash_move_forward_ex(CG(function_table), &iterator); local
5290 HashPosition iterator; local
5300 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
5301 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) {
5308 zend_hash_move_forward_ex(CG(function_table), &iterator); local
/PHP_TRUNK/ext/date/
H A Dphp_date.c1843 /* define an overloaded iterator structure */
1855 date_period_it *iterator = (date_period_it *)iter; local
1857 if (iterator->current) {
1858 zval_ptr_dtor(&iterator->current);
1859 iterator->current = NULL;
1868 date_period_it *iterator = (date_period_it *)iter; local
1872 zval_ptr_dtor(&iterator->date_period_zval);
1874 efree(iterator);
1882 date_period_it *iterator = (date_period_it *)iter; local
1883 php_period_obj *object = iterator
1907 date_period_it *iterator = (date_period_it *)iter; local
1933 date_period_it *iterator = (date_period_it *)iter; local
1942 date_period_it *iterator = (date_period_it *)iter; local
1953 date_period_it *iterator = (date_period_it *)iter; local
1980 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]

Completed in 104 milliseconds