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_directory.c739 Cronstructs a new dir iterator from a path. */
1407 Cronstructs a new dir iterator from a path. */
1489 Returns an iterator for the current entry if it is a directory */
1566 Cronstructs a new dir iterator from a path. */
1575 Cronstructs a new dir iterator from a glob expression (no glob:// needed). */
1602 /* {{{ forward declarations to the iterator handlers */
1610 /* iterator handler table */
1624 spl_filesystem_iterator *iterator; local
1628 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1631 iterator
1645 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1671 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1716 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1733 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1771 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1792 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1823 spl_filesystem_iterator *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;
441 spl_recursive_it_iterator *iterator; local
474 zval *iterator; local
635 zend_object_iterator *iterator; local
655 zend_object_iterator *iterator; local
1058 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1207 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1253 zend_object_iterator *iterator; local
[all...]
H A Dspl_fixedarray.c847 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
850 zval_ptr_dtor(&iterator->intern.it.data);
1010 /* iterator handler table */
1022 spl_fixedarray_it *iterator; local
1025 zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0);
1029 iterator = emalloc(sizeof(spl_fixedarray_it));
1031 zend_iterator_init((zend_object_iterator*)iterator);
1033 ZVAL_COPY(&iterator->intern.it.data, object);
1034 iterator->intern.it.funcs = &spl_fixedarray_it_funcs;
1035 iterator
[all...]
H A Dspl_heap.c79 /* define an overloaded iterator structure */
886 spl_heap_it *iterator = (spl_heap_it *)iter; local
889 zval_ptr_dtor(&iterator->intern.it.data);
895 /* do nothing, the iterator always points to the top element */
1022 /* 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_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 */
926 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
928 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
931 zval_ptr_dtor(&iterator->intern.it.data);
987 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
991 spl_dllist_it_helper_rewind(&iterator->traverse_pointer, &iterator->traverse_position, llist, object->flags);
997 spl_dllist_it *iterator local
1006 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1019 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1027 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1297 spl_dllist_it *iterator; local
[all...]
H A Dspl_observer.c1005 /* {{{ proto void attachIterator(Iterator iterator[, mixed info]) throws InvalidArgumentException
1006 Attach a new iterator */
1010 zval *iterator = NULL, *info = NULL; local
1012 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &iterator, zend_ce_iterator, &info) == FAILURE) {
1036 spl_object_storage_attach(intern, getThis(), iterator, info);
1041 Rewind all attached iterator instances */
1064 Move all attached iterator instances forward */
1087 Return whether all or one sub iterator is valid depending on flags */
1162 zend_throw_exception(spl_ce_RuntimeException, "Failed to call sub iterator method", 0);
1167 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 */
1123 /* iterator handler table */
1135 zend_user_iterator *iterator; local
1139 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1142 iterator = emalloc(sizeof(zend_user_iterator));
1144 zend_iterator_init(&iterator->it);
1146 ZVAL_COPY(&iterator->it.data, object);
1147 iterator->it.funcs = &spl_array_it_funcs;
1148 iterator->ce = ce;
1149 ZVAL_UNDEF(&iterator
[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
186 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
257 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));
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/Zend/
H A Dzend_generators.h60 zend_object_iterator *iterator; member in struct:_zend_generator
H A Dzend_interfaces.c131 /* iterator interface, c-level functions used by engine */
262 zend_user_iterator *iterator; local
265 zend_error(E_EXCEPTION | E_ERROR, "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.c206 if (generator->iterator) {
207 zend_iterator_dtor(generator->iterator);
982 static void zend_generator_iterator_dtor(zend_object_iterator *iterator) /* {{{ */ argument
984 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
985 generator->iterator = NULL;
986 zval_ptr_dtor(&iterator->data);
987 zend_iterator_dtor(iterator);
991 static int zend_generator_iterator_valid(zend_object_iterator *iterator) /* {{{ */ argument
993 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
1003 static zval *zend_generator_iterator_get_data(zend_object_iterator *iterator) /* {{{ */ argument
1015 zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key) argument
1031 zend_generator_iterator_move_forward(zend_object_iterator *iterator) argument
1041 zend_generator_iterator_rewind(zend_object_iterator *iterator) argument
1060 zend_object_iterator *iterator; local
[all...]
/PHP_TRUNK/ext/date/
H A Dphp_date.c1817 /* define an overloaded iterator structure */
1828 date_period_it *iterator = (date_period_it *)iter; local
1830 if (Z_TYPE(iterator->current) != IS_UNDEF) {
1831 zval_ptr_dtor(&iterator->current);
1832 ZVAL_UNDEF(&iterator->current);
1840 date_period_it *iterator = (date_period_it *)iter; local
1844 zval_ptr_dtor(&iterator->intern.data);
1851 date_period_it *iterator = (date_period_it *)iter; local
1852 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data);
1856 if (!object->include_start_date || iterator
1875 date_period_it *iterator = (date_period_it *)iter; local
1899 date_period_it *iterator = (date_period_it *)iter; local
1907 date_period_it *iterator = (date_period_it *)iter; local
1917 date_period_it *iterator = (date_period_it *)iter; local
1941 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c2088 /* dtor required to cleanup iterator related data properly */
2400 php_sxe_iterator *iterator; local
2403 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
2405 iterator = emalloc(sizeof(php_sxe_iterator));
2406 zend_iterator_init(&iterator->intern);
2408 ZVAL_COPY(&iterator->intern.data, object);
2409 iterator->intern.funcs = &php_sxe_iterator_funcs;
2410 iterator->sxe = Z_SXEOBJ_P(object);
2412 return (zend_object_iterator*)iterator;
2418 php_sxe_iterator *iterator local
2429 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2437 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2445 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2482 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2491 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]

Completed in 52 milliseconds