Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/PHP-5.5/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c41 if (iterator->is_table) { in resourcebundle_iterator_read()
49 iterator->current = NULL; in resourcebundle_iterator_read()
59 if (iterator->current) { in resourcebundle_iterator_invalidate()
80 efree(iterator); in resourcebundle_iterator_dtor()
88 return (iterator->i < iterator->length) ? SUCCESS : FAILURE; in resourcebundle_iterator_has_more()
96 if (!iterator->current) { in resourcebundle_iterator_current()
108 if (!iterator->current) { in resourcebundle_iterator_key()
125 iterator->i++; in resourcebundle_iterator_step()
135 iterator->i = 0; in resourcebundle_iterator_reset()
166 iterator->subject = rb; in resourcebundle_get_iterator()
[all …]
/PHP-5.5/ext/mysqli/
H A Dmysqli_result_iterator.c49 php_mysqli_result_iterator *iterator; in php_mysqli_result_get_iterator() local
60 iterator->row_num = -1; in php_mysqli_result_get_iterator()
73 if (iterator->intern.data) { in php_mysqli_result_iterator_dtor()
76 if (iterator->current_row) { in php_mysqli_result_iterator_dtor()
79 efree(iterator); in php_mysqli_result_iterator_dtor()
89 return iterator->current_row && Z_TYPE_P(iterator->current_row) == IS_ARRAY ? SUCCESS : FAILURE; in php_mysqli_result_iterator_valid()
99 *data = &iterator->current_row; in php_mysqli_result_iterator_current_data()
113 if (iterator->current_row) { in php_mysqli_result_iterator_move_forward()
119 iterator->row_num++; in php_mysqli_result_iterator_move_forward()
146 iterator->row_num = -1;
[all …]
/PHP-5.5/ext/spl/internal/
H A Diteratoriterator.inc44 * @param iterator inner iterator
51 $iterator = $iterator->getIterator();
53 if ($iterator instanceof Iterator)
55 $this->iterator = $iterator;
67 return $this->iterator;
74 return $this->iterator->valid();
81 return $this->iterator->key();
95 return $this->iterator->next();
102 return $this->iterator->rewind();
105 /** Aggregate the inner iterator
[all …]
H A Drecursiveregexiterator.inc18 * This filter iterator assumes that the inner iterator
23 * Constructs a regular expression filter around an iterator whose
26 * @param it inner iterator
45 /** @return an iterator for the current elements children
47 * @note the returned iterator will be of the same class as $this
/PHP-5.5/ext/spl/tests/
H A Drecursiveiteratoriterator_getsubiterator_variation_003.phpt10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array));
12 $iterator->next();
13 $iterator->next();
14 $iterator->next();
15 var_dump($iterator->getSubIterator(-1));
16 var_dump($iterator->getSubIterator(0)->getArrayCopy());
17 var_dump($iterator->getSubIterator(1)->getArrayCopy());
18 var_dump($iterator->getSubIterator(2));
H A Drecursiveiteratoriterator_getsubiterator_variation.phpt10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array));
12 $iterator->next();
13 $iterator->next();
14 var_dump(get_class($iterator->getSubIterator()));
15 var_dump($iterator->getSubIterator()->getArrayCopy());
16 $iterator->next();
17 var_dump(get_class($iterator->getSubIterator()));
18 var_dump($iterator->getSubIterator()->getArrayCopy());
H A Drecursiveiteratoriterator_getsubiterator_variation_002.phpt10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array));
12 $iterator->next();
13 var_dump(is_null($iterator->getSubIterator()));
14 $iterator->next();
15 var_dump(is_null($iterator->getSubIterator()));
H A Dheap_009.phpt2 SPL: SplHeap and friends, throw: An iterator cannot be used with foreach by reference
50 An iterator cannot be used with foreach by reference
51 An iterator cannot be used with foreach by reference
52 An iterator cannot be used with foreach by reference
53 An iterator cannot be used with foreach by reference
54 An iterator cannot be used with foreach by reference
55 An iterator cannot be used with foreach by reference
H A Drecursiveiteratoriterator_getsubiterator_error.phpt8 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(array()));
9 $iterator->getSubIterator();
10 $iterator->getSubIterator(0);
11 $iterator->getSubIterator(0, 0);
H A Drecursiveiteratoriterator_getsubiterator_basic.phpt2 SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in constructor
12 $iterator = new RecursiveIteratorIterator($sub_iterator);
14 var_dump($iterator->getSubIterator() === $sub_iterator);
15 var_dump($iterator->getSubIterator() === $not_sub_iterator);
H A Dbug42654.phpt12 $iterator = new RecursiveIteratorIterator(new
14 foreach($iterator as $foo) {
15 $key = $iterator->key();
17 var_dump($iterator->getInnerIterator());
18 $iterator->offsetSet($key, 'alter');
19 var_dump($iterator->getInnerIterator());
21 $copy = $iterator->getArrayCopy();
H A Drecursiveiteratoriterator_beginiteration_basic.phpt11 $iterator = new RecursiveIteratorIterator($sub_iterator);
12 foreach ($iterator as $element) {
22 $iterator = new SkipsFirstElementRecursiveIteratorIterator($sub_iterator);
23 foreach ($iterator as $element) {
H A Drecursiveiteratoriterator_enditeration_basic.phpt11 $iterator = new RecursiveIteratorIterator($sub_iterator);
12 foreach ($iterator as $element) {
21 $iterator = new EndIterationRecursiveIteratorIterator($sub_iterator);
22 foreach ($iterator as $element) {
/PHP-5.5/ext/intl/common/
H A Dcommon_enum.cpp150 ii->iterator->index = 0; in IntlIterator_from_StringEnumeration()
160 if (ii->iterator) { in IntlIterator_objects_free()
163 ii->iterator->funcs->dtor(ii->iterator TSRMLS_CC); in IntlIterator_objects_free()
192 return ii->iterator; in IntlIterator_get_iterator()
210 intern->iterator = NULL; in IntlIterator_object_create()
235 ii->iterator->funcs->get_current_data(ii->iterator, &data TSRMLS_CC); in PHP_METHOD()
254 ii->iterator->funcs->get_current_key(ii->iterator, return_value TSRMLS_CC); in PHP_METHOD()
271 ii->iterator->funcs->move_forward(ii->iterator TSRMLS_CC); in PHP_METHOD()
274 ii->iterator->index++; in PHP_METHOD()
289 ii->iterator->funcs->rewind(ii->iterator TSRMLS_CC); in PHP_METHOD()
[all …]
/PHP-5.5/ext/dom/
H A Ddom_iterators.c131 if (iterator->curobj) { in php_dom_iterator_dtor()
135 efree(iterator); in php_dom_iterator_dtor()
144 if (iterator->curobj) { in php_dom_iterator_valid()
156 *data = &iterator->curobj; in php_dom_iterator_current_data()
194 object = (zval *)iterator->intern.data; in php_dom_iterator_move_forward()
198 curobj = iterator->curobj; in php_dom_iterator_move_forward()
244 iterator->curobj = curattr; in php_dom_iterator_move_forward()
266 php_dom_iterator *iterator; in php_dom_get_iterator() local
274 iterator->intern.data = (void*)object; in php_dom_get_iterator()
323 iterator->curobj = curattr; in php_dom_get_iterator()
[all …]
/PHP-5.5/ext/ctype/tests/
H A Dctype_alnum_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_alpha_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_cntrl_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_digit_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_graph_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_lower_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_print_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;
H A Dctype_upper_variation4.phpt23 $iterator = 1;
25 echo "-- Iteration $iterator --\n";
27 $iterator++;
31 $iterator = 1;
33 echo "-- Iteration $iterator --\n";
35 $iterator++;
H A Dctype_punct_variation4.phpt25 $iterator = 1;
27 echo "-- Iteration $iterator --\n";
29 $iterator++;
33 $iterator = 1;
35 echo "-- Iteration $iterator --\n";
37 $iterator++;
H A Dctype_space_variation4.phpt24 $iterator = 1;
26 echo "-- Iteration $iterator --\n";
28 $iterator++;
32 $iterator = 1;
34 echo "-- Iteration $iterator --\n";
36 $iterator++;

Completed in 33 milliseconds

12345678910>>...19