Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 64) sorted by relevance

123

/php-src/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp53 zval_ptr_dtor(&iter->data); in _breakiterator_destroy_it()
61 iter->funcs->invalidate_current(iter); in _breakiterator_move_forward()
135 zval_ptr_dtor(&iter->data); in _breakiterator_parts_destroy_it()
148 ZVAL_LONG(key, iter->index); in _breakiterator_parts_get_current_key()
157 iter->funcs->invalidate_current(iter); in _breakiterator_parts_move_forward()
172 iter->index = cur; in _breakiterator_parts_move_forward()
174 iter->index = next; in _breakiterator_parts_move_forward()
198 iter->funcs->invalidate_current(iter); in _breakiterator_parts_rewind()
203 iter->funcs->move_forward(iter); in _breakiterator_parts_rewind()
264 zval *iter = &ii->iterator->data; in PHP_METHOD() local
[all …]
/php-src/ext/zend_test/
H A Diterators.c34 return (test_traversable_it *)iter; in test_traversable_it_fetch()
37 static void test_traversable_it_dtor(zend_object_iterator *iter) { in test_traversable_it_dtor() argument
39 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_dtor()
43 static void test_traversable_it_rewind(zend_object_iterator *iter) { in test_traversable_it_rewind() argument
45 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_rewind()
49 static void test_traversable_it_next(zend_object_iterator *iter) { in test_traversable_it_next() argument
51 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_next()
57 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_valid()
66 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_key()
70 static zval *test_traversable_it_current(zend_object_iterator *iter) { in test_traversable_it_current() argument
[all …]
/php-src/Zend/
H A Dzend_iterators.c65 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_free() local
66 iter->funcs->dtor(iter); in iter_wrapper_free()
74 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_get_gc() local
75 if (iter->funcs->get_gc) { in iter_wrapper_get_gc()
76 return iter->funcs->get_gc(iter, table, n); in iter_wrapper_get_gc()
84 ZEND_API void zend_iterator_init(zend_object_iterator *iter) in zend_iterator_init() argument
86 zend_object_std_init(&iter->std, &zend_iterator_class_entry); in zend_iterator_init()
89 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter) in zend_iterator_dtor() argument
91 if (GC_DELREF(&iter->std) > 0) { in zend_iterator_dtor()
95 zend_objects_store_del(&iter->std); in zend_iterator_dtor()
H A Dzend_iterators.h36 void (*dtor)(zend_object_iterator *iter);
39 zend_result (*valid)(zend_object_iterator *iter);
42 zval *(*get_current_data)(zend_object_iterator *iter);
48 void (*get_current_key)(zend_object_iterator *iter, zval *key);
51 void (*move_forward)(zend_object_iterator *iter);
54 void (*rewind)(zend_object_iterator *iter);
57 void (*invalidate_current)(zend_object_iterator *iter);
61 HashTable *(*get_gc)(zend_object_iterator *iter, zval **table, int *n);
92 ZEND_API void zend_iterator_init(zend_object_iterator *iter);
93 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter);
H A Dzend_interfaces.c147 return &iter->value; in zend_user_it_get_current_data()
508 if (!iter) { in zend_create_internal_iterator_zval()
514 intern->iter = iter; in zend_create_internal_iterator_zval()
522 if (intern->iter) { in zend_internal_iterator_free()
540 zend_object_iterator *iter = intern->iter; in zend_internal_iterator_ensure_rewound() local
543 iter->funcs->rewind(iter); in zend_internal_iterator_ensure_rewound()
569 zval *data = intern->iter->funcs->get_current_data(intern->iter); in ZEND_METHOD()
588 intern->iter->funcs->get_current_key(intern->iter, return_value); in ZEND_METHOD()
608 intern->iter->funcs->move_forward(intern->iter); in ZEND_METHOD()
623 RETURN_BOOL(intern->iter->funcs->valid(intern->iter) == SUCCESS); in ZEND_METHOD()
[all …]
H A Dzend_property_hooks.c139 zend_object *zobj = Z_OBJ_P(&iter->data); in zho_declared_it_fetch_current()
243 zho_declared_it_fetch_current(iter); in zho_it_fetch_current()
245 zho_dynamic_it_fetch_current(iter); in zho_it_fetch_current()
252 zho_it_move_forward(iter); in zho_it_fetch_current()
256 static void zho_it_dtor(zend_object_iterator *iter) in zho_it_dtor() argument
259 zval_ptr_dtor(&iter->data); in zho_it_dtor()
269 zho_it_fetch_current(iter); in zho_it_valid()
276 zho_it_fetch_current(iter); in zho_it_get_current_data()
283 zho_it_fetch_current(iter); in zho_it_get_current_key()
310 static void zho_it_rewind(zend_object_iterator *iter) in zho_it_rewind() argument
[all …]
/php-src/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c53 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_invalidate()
67 static void resourcebundle_iterator_dtor( zend_object_iterator *iter ) in resourcebundle_iterator_dtor() argument
69 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_dtor()
72 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_dtor()
81 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_has_more()
89 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_current()
100 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_key()
115 static void resourcebundle_iterator_step( zend_object_iterator *iter ) in resourcebundle_iterator_step() argument
117 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_step()
120 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_step()
[all …]
/php-src/ext/intl/common/
H A Dcommon_enum.cpp35 void zoi_with_current_dtor(zend_object_iterator *iter) in zoi_with_current_dtor() argument
37 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor()
54 iter->funcs->invalidate_current(iter); in zoi_with_current_dtor()
55 zoiwc->destroy_it(iter); in zoi_with_current_dtor()
66 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data()
71 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current()
80 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward()
83 iter->funcs->invalidate_current(iter); in string_enum_current_move_forward()
107 iter->funcs->invalidate_current(iter); in string_enum_rewind()
120 iter->funcs->move_forward(iter); in string_enum_rewind()
[all …]
H A Dcommon_enum.h70 U_CFUNC void zoi_with_current_dtor(zend_object_iterator *iter);
71 U_CFUNC zend_result zoi_with_current_valid(zend_object_iterator *iter);
72 U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter);
73 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
/php-src/ext/mysqli/
H A Dmysqli_result_iterator.c65 static void php_mysqli_result_iterator_dtor(zend_object_iterator *iter) in php_mysqli_result_iterator_dtor() argument
67 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*)iter; in php_mysqli_result_iterator_dtor()
76 static zend_result php_mysqli_result_iterator_valid(zend_object_iterator *iter) in php_mysqli_result_iterator_valid() argument
78 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_valid()
87 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_current_data()
94 static void php_mysqli_result_iterator_move_forward(zend_object_iterator *iter) in php_mysqli_result_iterator_move_forward() argument
97 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_move_forward()
112 static void php_mysqli_result_iterator_rewind(zend_object_iterator *iter) in php_mysqli_result_iterator_rewind() argument
114 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_rewind()
129 php_mysqli_result_iterator_move_forward(iter); in php_mysqli_result_iterator_rewind()
[all …]
/php-src/ext/simplexml/
H A Dsimplexml.c995 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_prop_is_empty()
1092 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_get_prop_hash()
1455 if (sxe->iter.name) { in sxe_object_free_iterxpath()
2039 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD()
2064 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD()
2097 clone->iter.isprefix = sxe->iter.isprefix; in sxe_object_clone()
2099 clone->iter.name = zend_string_copy(sxe->iter.name); in sxe_object_clone()
2102 clone->iter.nsprefix = zend_string_copy(sxe->iter.nsprefix); in sxe_object_clone()
2104 clone->iter.type = sxe->iter.type; in sxe_object_clone()
2359 if (sxe->iter.name) { in php_sxe_iterator_fetch()
[all …]
/php-src/ext/dom/tests/
H A DchildNodes_current_crash.phpt12 $iter = $nodes->getIterator();
14 var_dump($iter->valid());
15 var_dump($iter->current()?->wholeText);
16 $iter->next();
17 var_dump($iter->valid());
18 var_dump($iter->current()?->wholeText);
H A Dgh15551.phpt9 $iter = $nodes->getIterator();
10 $iter->next();
11 var_dump($iter->valid());
H A Dentity_reference_stale_02.phpt22 $iter = $nodes->getIterator();
23 $iter->next();
28 var_dump($iter->current()->publicId);
/php-src/Zend/tests/generators/
H A Dyield_by_reference.phpt6 function &iter(array &$array) {
13 $iter = iter($array);
14 foreach ($iter as &$value) {
20 foreach (iter($array) as &$value) {
H A Dgc_with_iterator_in_foreach.phpt6 function gen($iter, &$gen) {
7 foreach ($iter as $v) {
12 $iter = new ArrayIterator([1, 2, 3]);
13 $gen = gen($iter, $gen);
/php-src/ext/spl/tests/
H A Dbug76367.phpt7 $iter = new NoRewindIterator(new ArrayIterator($arr));
9 while($iter->valid()) {
10 $iter->next();
13 var_dump($iter->current());
H A Dbug51068.phpt8 $iter = new DirectoryIterator('glob://*.51068');
9 foreach ($iter as $f) {
13 $iter = new DirectoryIterator('glob://bug.51068.dir/*.51068');
14 foreach ($iter as $f) {
18 $iter = new DirectoryIterator('glob://bug.51068.dir');
19 foreach ($iter as $f) {
/php-src/ext/dom/
H A Ddom_iterators.c69 nodeIterator iter; in php_dom_libxml_hash_iter_ex() local
70 iter.cur = 0; in php_dom_libxml_hash_iter_ex()
71 iter.index = index; in php_dom_libxml_hash_iter_ex()
72 iter.node = NULL; in php_dom_libxml_hash_iter_ex()
73 xmlHashScan(ht, itemHashScanner, &iter); in php_dom_libxml_hash_iter_ex()
74 return iter.node; in php_dom_libxml_hash_iter_ex()
94 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_dtor()
103 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_valid()
115 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_data()
128 ZVAL_LONG(key, iter->index); in php_dom_iterator_current_key()
[all …]
/php-src/ext/com_dotnet/
H A Dcom_iterator.c29 zend_object_iterator iter; member
40 static void com_iter_dtor(zend_object_iterator *iter) in com_iter_dtor() argument
42 struct php_com_iterator *I = (struct php_com_iterator*)Z_PTR(iter->data); in com_iter_dtor()
52 static zend_result com_iter_valid(zend_object_iterator *iter) in com_iter_valid() argument
63 static zval* com_iter_get_data(zend_object_iterator *iter) in com_iter_get_data() argument
70 static void com_iter_get_key(zend_object_iterator *iter, zval *key) in com_iter_get_key() argument
81 static void com_iter_move_forwards(zend_object_iterator *iter) in com_iter_move_forwards() argument
161 zend_iterator_init(&I->iter); in php_com_iter_get()
162 I->iter.funcs = &com_iter_funcs; in php_com_iter_get()
163 Z_PTR(I->iter.data) = I; in php_com_iter_get()
[all …]
/php-src/ext/date/tests/
H A DDatePeriod_IteratorAggregate.phpt17 $iter = $period->getIterator();
18 for (; $iter->valid(); $iter->next()) {
19 $i = $iter->key();
20 $date = $iter->current();
25 $iter->rewind();
26 for (; $iter->valid(); $iter->next()) {
27 $i = $iter->key();
28 $date = $iter->current();
/php-src/ext/intl/tests/
H A Dgh7734.phpt8 $iter = \IntlBreakIterator::createCodePointInstance();
9 $iter->setText('ABC');
11 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_SEQUENTIAL) as $key => $value) {
15 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_LEFT) as $key => $value) {
19 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_RIGHT) as $key => $value) {
/php-src/Zend/tests/namespaces/
H A Dnamespace_name_reserved_keywords.phpt6 namespace iter\fn {
25 use iter\fn;
35 iter\fn\test
/php-src/ext/standard/tests/file/windows_mb_path/
H A Drecursive_it.phpt28 $iter = new RecursiveIteratorIterator(
36 foreach ($iter as $item) {
42 $iter->rewind();
43 foreach ($iter as $item) {
/php-src/ext/pcre/tests/
H A Dbug27103.phpt11 function iter($ar)
18 iter(preg_split('//u', $teststr, -1, PREG_SPLIT_NO_EMPTY));
20 iter($matches[0]);

Completed in 48 milliseconds

123