Lines Matching refs:value
56 void ds_set_add(ds_set_t *set, zval *value) in ds_set_add() argument
58 ds_htable_put(set->table, value, NULL); in ds_set_add()
81 zval *value; in add_array_to_set() local
82 ZEND_HASH_FOREACH_VAL(array, value) { in add_array_to_set()
83 ZVAL_DEREF(value); in add_array_to_set()
84 ds_set_add(set, value); in add_array_to_set()
108 bool ds_set_contains(ds_set_t *set, zval *value) in ds_set_contains() argument
110 return ds_htable_has_key(set->table, value); in ds_set_contains()
118 static inline void ds_set_remove(ds_set_t *set, zval *value) in ds_set_remove() argument
120 ds_htable_remove(set->table, value, NULL); in ds_set_remove()
184 zval *value; in ds_set_assign_diff() local
185 DS_SET_FOREACH(other, value) { in ds_set_assign_diff()
186 ds_set_remove(set, value); in ds_set_assign_diff()
198 zval *value; in ds_set_assign_intersect() local
199 DS_SET_FOREACH(set, value) { in ds_set_assign_intersect()
200 if ( ! ds_set_contains(other, value)) { in ds_set_assign_intersect()
201 ds_set_remove(set, value); in ds_set_assign_intersect()
216 zval *value; in ds_set_assign_xor() local
218 DS_SET_FOREACH(set, value) { in ds_set_assign_xor()
219 if (ds_set_contains(other, value)) { in ds_set_assign_xor()
220 ds_set_remove(set, value); in ds_set_assign_xor()
225 DS_SET_FOREACH(other, value) { in ds_set_assign_xor()
226 ds_set_remove(set, value); in ds_set_assign_xor()
250 zval *value; in ds_set_assign_union() local
251 DS_SET_FOREACH(other, value) { in ds_set_assign_union()
252 ds_set_add(set, value); in ds_set_assign_union()
270 zval *value; in ds_set_reduce() local
280 DS_SET_FOREACH(set, value) { in ds_set_reduce()
282 ZVAL_COPY_VALUE(¶ms[1], value); in ds_set_reduce()
307 zval *value; in ds_set_map() local
309 DS_SET_FOREACH(set, value) { in ds_set_map()
313 fci.params = value; in ds_set_map()
338 zval *value; in ds_set_filter_callback() local
340 DS_SET_FOREACH(set, value) { in ds_set_filter_callback()
344 fci.params = value; in ds_set_filter_callback()
353 ds_set_add(result, value); in ds_set_filter_callback()
372 zval *value; in ds_set_filter() local
373 DS_SET_FOREACH(set, value) { in ds_set_filter()
374 if (zend_is_true(value)) { in ds_set_filter()
375 ds_set_add(result, value); in ds_set_filter()
396 zval *value; in ds_set_to_array() local
400 DS_HTABLE_FOREACH_KEY(set->table, value) { in ds_set_to_array()
401 add_next_index_zval(arr, value); in ds_set_to_array()
402 Z_TRY_ADDREF_P(value); in ds_set_to_array()
409 zval *value; in ds_set_sum() local
412 DS_SET_FOREACH(set, value) { in ds_set_sum()
413 DS_ADD_TO_SUM(value, return_value); in ds_set_sum()