Lines Matching refs:key
50 void ds_map_put(ds_map_t *map, zval *key, zval *value) in ds_map_put() argument
52 ds_htable_put(map->table, key, value); in ds_map_put()
92 zval *ds_map_get(ds_map_t *map, zval *key, zval *def) in ds_map_get() argument
94 zval *value = ds_htable_get(map->table, key); in ds_map_get()
108 void ds_map_remove(ds_map_t *map, zval *key, zval *def, zval *return_value) in ds_map_remove() argument
110 int removed = ds_htable_remove(map->table, key, return_value); in ds_map_remove()
127 bool ds_map_has_key(ds_map_t *map, zval *key) in ds_map_has_key() argument
129 return ds_htable_has_key(map->table, key); in ds_map_has_key()
256 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_first()
268 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_last()
280 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_skip()
285 zval key; in iterator_add() local
287 iterator->funcs->get_current_key(iterator, &key); in iterator_add()
289 ds_map_put((ds_map_t *) puser, &key, value); in iterator_add()
290 zval_ptr_dtor(&key); in iterator_add()
303 zend_string *key; in add_ht_to_map() local
307 ZEND_HASH_FOREACH_KEY_VAL(ht, index, key, value) { in add_ht_to_map()
308 if (key) { in add_ht_to_map()
309 ZVAL_STR(&temp, key); in add_ht_to_map()