forked from aniani/vim
patch 8.2.4683: verbose check with dict_find() to see if a key is present
Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
This commit is contained in:
committed by
Bram Moolenaar
parent
7a411a306f
commit
4829c1c9e9
@@ -27,6 +27,7 @@ char_u *dict_iterate_next(dict_iterator_T *iter, typval_T **tv_result);
|
||||
int dict_add_dict(dict_T *d, char *key, dict_T *dict);
|
||||
long dict_len(dict_T *d);
|
||||
dictitem_T *dict_find(dict_T *d, char_u *key, int len);
|
||||
int dict_has_key(dict_T *d, char *key);
|
||||
int dict_get_tv(dict_T *d, char_u *key, typval_T *rettv);
|
||||
char_u *dict_get_string(dict_T *d, char_u *key, int save);
|
||||
varnumber_T dict_get_number(dict_T *d, char_u *key);
|
||||
|
||||
Reference in New Issue
Block a user