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

/PHP_5_4/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
126 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
136 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
159 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_5_4/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
5242 HashPosition iterator; local
5252 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
5253 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) {
5260 zend_hash_move_forward_ex(CG(function_table), &iterator); local
/PHP_5_4/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
964 spl_heap_it *iterator = (spl_heap_it *)iter; local
1104 spl_heap_it *iterator; local
1128 spl_heap_it *iterator; local
[all...]
H A Dspl_iterators.h132 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon225
156 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon227::__anon230
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
968 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
1073 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
1750 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1766 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1809 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1830 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1861 spl_filesystem_iterator *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
148 sub_iter = object->iterators[object->level].iterator;
165 sub_iter = object->iterators[level].iterator;
188 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
196 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
644 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1023 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1127 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1173 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
1040 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1253 spl_dllist_it *iterator; local
[all...]
/PHP_5_4/Zend/
H A Dzend_API.c3944 HashPosition iterator; local
3955 zend_hash_internal_pointer_reset_ex(function_table, &iterator);
3956 while (zend_hash_get_current_data_ex(function_table, (void **)&func, &iterator) == SUCCESS) {
3962 if (zend_hash_get_current_key_ex(function_table, &name, &len, &idx, 0, &iterator) != HASH_KEY_IS_STRING) {
3972 zend_hash_move_forward_ex(function_table, &iterator);
H A Dzend_interfaces.c118 /* iterator interface, c-level functions used by engine */
278 zend_user_iterator *iterator; local
281 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
284 iterator = emalloc(sizeof(zend_user_iterator));
287 iterator->it.data = (void*)object;
288 iterator->it.funcs = ce->iterator_funcs.funcs;
289 iterator->ce = Z_OBJCE_P(object);
290 iterator->value = NULL;
291 return (zend_object_iterator*)iterator;
298 zval *iterator local
[all...]
H A Dzend_builtin_functions.c2061 HashPosition iterator; local
2064 zend_hash_internal_pointer_reset_ex(arg_array->value.ht, &iterator);
2065 while (zend_hash_get_current_data_ex(arg_array->value.ht, (void **) &tmp, &iterator) == SUCCESS) {
2070 zend_hash_move_forward_ex(arg_array->value.ht, &iterator);
2458 HashPosition iterator; local
2474 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
2482 while (zend_hash_get_current_data_ex(CG(function_table), (void **) &zif, &iterator) == SUCCESS) {
2491 zend_hash_move_forward_ex(CG(function_table), &iterator); local
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)) {
184 zend_hash_move_forward_ex(ht, &iterator);
198 HashPosition iterator; local
203 zend_hash_internal_pointer_reset_ex(ht, &iterator);
204 while (zend_hash_get_current_data_ex(ht, (void **) &tmp, &iterator) == SUCCESS) {
209 switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) {
219 zend_hash_move_forward_ex(ht, &iterator);
[all...]
/PHP_5_4/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;
168 php_dom_iterator *iterator local
205 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
279 php_dom_iterator *iterator; local
[all...]
/PHP_5_4/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_4/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
2392 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2431 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2440 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]
/PHP_5_4/ext/date/
H A Dphp_date.c1791 /* define an overloaded iterator structure */
1803 date_period_it *iterator = (date_period_it *)iter; local
1805 if (iterator->current) {
1806 zval_ptr_dtor(&iterator->current);
1807 iterator->current = NULL;
1816 date_period_it *iterator = (date_period_it *)iter; local
1820 zval_ptr_dtor(&iterator->date_period_zval);
1822 efree(iterator);
1830 date_period_it *iterator = (date_period_it *)iter; local
1831 php_period_obj *object = iterator
1855 date_period_it *iterator = (date_period_it *)iter; local
1881 date_period_it *iterator = (date_period_it *)iter; local
1891 date_period_it *iterator = (date_period_it *)iter; local
1902 date_period_it *iterator = (date_period_it *)iter; local
1929 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]

Completed in 53 milliseconds