Lines Matching refs:value
170 void ds_vector_set(ds_vector_t *vector, zend_long index, zval *value) in ds_vector_set() argument
175 ZVAL_COPY(ptr, value); in ds_vector_set()
199 static inline zend_long ds_vector_find_index(ds_vector_t *vector, zval *value) in ds_vector_find_index() argument
205 if (zend_is_identical(value, pos)) { in ds_vector_find_index()
213 void ds_vector_find(ds_vector_t *vector, zval *value, zval *return_value) in ds_vector_find() argument
215 zend_long index = ds_vector_find_index(vector, value); in ds_vector_find()
225 bool ds_vector_contains(ds_vector_t *vector, zval *value) in ds_vector_contains() argument
227 return ds_vector_find_index(vector, value) != FAILURE; in ds_vector_contains()
275 void ds_vector_insert(ds_vector_t *vector, zend_long index, zval *value) in ds_vector_insert() argument
277 ds_vector_insert_va(vector, index, 1, value); in ds_vector_insert()
280 void ds_vector_push(ds_vector_t *vector, zval *value) in ds_vector_push() argument
283 ZVAL_COPY(&vector->buffer[vector->size++], value); in ds_vector_push()
310 void ds_vector_unshift(ds_vector_t *vector, zval *value) in ds_vector_unshift() argument
312 ds_vector_insert(vector, 0, value); in ds_vector_unshift()
378 zval *value; in add_array_to_vector() local
381 ZEND_HASH_FOREACH_VAL(array, value) { in add_array_to_vector()
382 ds_vector_push(vector, value); in add_array_to_vector()
518 zval *value; in ds_vector_reversed() local
522 DS_VECTOR_FOREACH(vector, value) { in ds_vector_reversed()
523 ZVAL_COPY(target--, value); in ds_vector_reversed()
533 zval *value; in ds_vector_apply() local
535 DS_VECTOR_FOREACH(vector, value) { in ds_vector_apply()
537 fci.params = value; in ds_vector_apply()
544 zval_ptr_dtor(value); in ds_vector_apply()
545 ZVAL_COPY_VALUE(value, &retval); in ds_vector_apply()
553 zval *value; in ds_vector_map() local
557 DS_VECTOR_FOREACH(vector, value) { in ds_vector_map()
559 fci.params = value; in ds_vector_map()
588 zval *value; in ds_vector_filter() local
592 DS_VECTOR_FOREACH(vector, value) { in ds_vector_filter()
593 if (zend_is_true(value)) { in ds_vector_filter()
594 ZVAL_COPY(target++, value); in ds_vector_filter()
610 zval *value; in ds_vector_filter_callback() local
614 DS_VECTOR_FOREACH(vector, value) { in ds_vector_filter_callback()
616 fci.params = value; in ds_vector_filter_callback()
634 ZVAL_COPY(target++, value); in ds_vector_filter_callback()
647 zval *value; in ds_vector_reduce() local
657 DS_VECTOR_FOREACH(vector, value) { in ds_vector_reduce()
659 ZVAL_COPY_VALUE(¶ms[1], value); in ds_vector_reduce()
702 zval *value; in ds_vector_sum() local
706 DS_VECTOR_FOREACH(vector, value) { in ds_vector_sum()
707 DS_ADD_TO_SUM(value, return_value); in ds_vector_sum()