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

/PHP_TRUNK/ext/intl/common/
H A Dcommon_enum.h45 if (ii->iterator == NULL) { \
52 zend_object_iterator *iterator; member in struct:__anon103
66 void (*destroy_it)(zend_object_iterator *iterator);
/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 )
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 resourcebundle_extract_value( &iterator->current, rb );
48 ZVAL_UNDEF(&iterator->current);
56 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
58 if (!Z_ISUNDEF(iterator
72 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
84 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
92 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
103 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
120 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
130 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
153 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.h132 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon232
153 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon234::__anon237
H A Dspl_fixedarray.c849 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
852 zval_ptr_dtor(&iterator->intern.it.data);
1014 /* iterator handler table */
1026 spl_fixedarray_it *iterator; local
1029 zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0);
1033 iterator = emalloc(sizeof(spl_fixedarray_it));
1035 zend_iterator_init((zend_object_iterator*)iterator);
1037 ZVAL_COPY(&iterator->intern.it.data, object);
1038 iterator->intern.it.funcs = &spl_fixedarray_it_funcs;
1039 iterator
[all...]
H A Dspl_heap.c79 /* define an overloaded iterator structure */
884 spl_heap_it *iterator = (spl_heap_it *)iter; local
887 zval_ptr_dtor(&iterator->intern.it.data);
893 /* do nothing, the iterator always points to the top element */
1020 /* do nothing, the iterator always points to the top element */
1071 /* iterator handler table */
1092 spl_heap_it *iterator; local
1096 zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0);
1100 iterator = emalloc(sizeof(spl_heap_it));
1102 zend_iterator_init(&iterator
1116 spl_heap_it *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
168 #define SPL_FETCH_SUB_ITERATOR(var, object) SPL_FETCH_SUB_ELEMENT(var, object, iterator)
178 sub_iter = object->iterators[object->level].iterator;
197 sub_iter = object->iterators[level].iterator;
218 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
226 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
237 zend_object_iterator *iterator; local
244 SPL_FETCH_SUB_ITERATOR(iterator, object);
248 iterator = object->iterators[object->level].iterator;
443 spl_recursive_it_iterator *iterator; local
476 zval *iterator; local
637 zend_object_iterator *iterator; local
657 zend_object_iterator *iterator; local
1065 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1214 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1262 zend_object_iterator *iterator; local
[all...]
H A Dspl_directory.c739 Cronstructs a new dir iterator from a path. */
1408 Cronstructs a new dir iterator from a path. */
1490 Returns an iterator for the current entry if it is a directory */
1563 Cronstructs a new dir iterator from a path. */
1572 Cronstructs a new dir iterator from a glob expression (no glob:// needed). */
1599 /* {{{ forward declarations to the iterator handlers */
1607 /* iterator handler table */
1621 spl_filesystem_iterator *iterator; local
1625 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1628 iterator
1642 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1668 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1713 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1730 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1768 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1789 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1820 spl_filesystem_iterator *iterator; local
[all...]
H A Dspl_observer.c1006 /* {{{ proto void attachIterator(Iterator iterator[, mixed info]) throws InvalidArgumentException
1007 Attach a new iterator */
1011 zval *iterator = NULL, *info = NULL; local
1013 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &iterator, zend_ce_iterator, &info) == FAILURE) {
1037 spl_object_storage_attach(intern, getThis(), iterator, info);
1042 Rewind all attached iterator instances */
1065 Move all attached iterator instances forward */
1088 Return whether all or one sub iterator is valid depending on flags */
1163 zend_throw_exception(spl_ce_RuntimeException, "Failed to call sub iterator method", 0);
1168 zend_throw_exception(spl_ce_RuntimeException, "Called current() with non valid sub iterator",
[all...]
H A Dspl_array.c216 /* Cache iterator functions if ArrayIterator or derived. Check current's */
1125 /* iterator handler table */
1137 zend_user_iterator *iterator; local
1141 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1144 iterator = emalloc(sizeof(zend_user_iterator));
1146 zend_iterator_init(&iterator->it);
1148 ZVAL_COPY(&iterator->it.data, object);
1149 iterator->it.funcs = &spl_array_it_funcs;
1150 iterator->ce = ce;
1151 ZVAL_UNDEF(&iterator
[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 */
930 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
932 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
935 zval_ptr_dtor(&iterator->intern.it.data);
991 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
995 spl_dllist_it_helper_rewind(&iterator->traverse_pointer, &iterator->traverse_position, llist, object->flags);
1001 spl_dllist_it *iterator local
1010 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1023 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1031 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1300 spl_dllist_it *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));
55 zend_iterator_init(&iterator->intern);
57 ZVAL_COPY(&iterator->intern.data, object);
58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs;
59 iterator->result = Z_MYSQLI_P(object);
60 iterator->row_num = -1;
62 return &iterator->intern;
69 php_mysqli_result_iterator *iterator local
80 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
89 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
99 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
116 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
142 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
[all...]
/PHP_TRUNK/ext/dom/
H A Ddom_iterators.c127 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
129 zval_ptr_dtor(&iterator->intern.data);
130 zval_ptr_dtor(&iterator->curobj);
137 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
139 if (Z_TYPE(iterator->curobj) != IS_UNDEF) {
149 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
151 return &iterator->curobj;
157 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
158 zval *object = &iterator->intern.data;
163 dom_object *intern = Z_DOMOBJ_P(&iterator
187 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
263 php_dom_iterator *iterator; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_interfaces.c131 /* iterator interface, c-level functions used by engine */
262 zend_user_iterator *iterator; local
265 zend_throw_error(NULL, "An iterator cannot be used with foreach by reference");
269 iterator = emalloc(sizeof(zend_user_iterator));
271 zend_iterator_init((zend_object_iterator*)iterator);
273 ZVAL_COPY(&iterator->it.data, object);
274 iterator->it.funcs = ce->iterator_funcs.funcs;
275 iterator->ce = Z_OBJCE_P(object);
276 ZVAL_UNDEF(&iterator->value);
277 return (zend_object_iterator*)iterator;
284 zval iterator; local
[all...]
H A Dzend_generators.h60 zend_object_iterator *iterator; member in struct:_zend_generator
H A Dzend_generators.c187 if (generator->iterator) {
188 zend_iterator_dtor(generator->iterator);
975 static void zend_generator_iterator_dtor(zend_object_iterator *iterator) /* {{{ */ argument
977 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
978 generator->iterator = NULL;
979 zval_ptr_dtor(&iterator->data);
980 zend_iterator_dtor(iterator);
984 static int zend_generator_iterator_valid(zend_object_iterator *iterator) /* {{{ */ argument
986 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
996 static zval *zend_generator_iterator_get_data(zend_object_iterator *iterator) /* {{{ */ argument
1008 zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key) argument
1027 zend_generator_iterator_move_forward(zend_object_iterator *iterator) argument
1037 zend_generator_iterator_rewind(zend_object_iterator *iterator) argument
1056 zend_object_iterator *iterator; local
[all...]
/PHP_TRUNK/ext/date/
H A Dphp_date.c1821 /* define an overloaded iterator structure */
1832 date_period_it *iterator = (date_period_it *)iter; local
1834 if (Z_TYPE(iterator->current) != IS_UNDEF) {
1835 zval_ptr_dtor(&iterator->current);
1836 ZVAL_UNDEF(&iterator->current);
1844 date_period_it *iterator = (date_period_it *)iter; local
1848 zval_ptr_dtor(&iterator->intern.data);
1855 date_period_it *iterator = (date_period_it *)iter; local
1856 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data);
1860 if (!object->include_start_date || iterator
1879 date_period_it *iterator = (date_period_it *)iter; local
1903 date_period_it *iterator = (date_period_it *)iter; local
1911 date_period_it *iterator = (date_period_it *)iter; local
1921 date_period_it *iterator = (date_period_it *)iter; local
1945 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c2079 /* dtor required to cleanup iterator related data properly */
2422 php_sxe_iterator *iterator; local
2425 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
2427 iterator = emalloc(sizeof(php_sxe_iterator));
2428 zend_iterator_init(&iterator->intern);
2430 ZVAL_COPY(&iterator->intern.data, object);
2431 iterator->intern.funcs = &php_sxe_iterator_funcs;
2432 iterator->sxe = Z_SXEOBJ_P(object);
2434 return (zend_object_iterator*)iterator;
2440 php_sxe_iterator *iterator local
2451 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2459 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2467 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2504 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2513 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]

Completed in 59 milliseconds