| 167 | } |
| 168 | |
| 169 | bool cbm_ht_has(const CBMHashTable *ht, const char *key) { |
| 170 | if (!ht || !key) |
| 171 | return false; |
| 172 | cbm_vt_itr itr = cbm_vt_get(&ht->vt, key); |
| 173 | HT_LOOKED_UP(ht, key, !cbm_vt_is_end(itr)); |
| 174 | return !cbm_vt_is_end(itr); |
| 175 | } |
| 176 | |
| 177 | const char *cbm_ht_get_key(const CBMHashTable *ht, const char *key) { |
| 178 | if (!ht || !key) |
no outgoing calls