ext/iodine/fiobj_hash.c
/**
 * Returns 1 if the key (Symbol) exists in the Hash, even if value is NULL.
 */
Returns 1 if the key (Symbol) exists in the Hash, even if value is NULL.
Returns 1 if the key ( Symbol ) exists in the Hash even if value is NULL .
int fiobj_hash_haskey(const FIOBJ hash, FIOBJ key) {
  assert(hash && FIOBJ_TYPE_IS(hash, FIOBJ_T_HASH));
  return fio_hash___find(&obj2hash(hash)->hash, fiobj_obj2hash(key), key) !=
         FIOBJ_INVALID;
}
int fiobj_hash_haskey ( const FIOBJ hash , FIOBJ key ) { assert ( hash && FIOBJ_TYPE_IS ( hash , FIOBJ_T_HASH ) ) ; return fio_hash___find ( & obj2hash ( hash ) -> hash , fiobj_obj2hash ( key ) , key ) != FIOBJ_INVALID ; }
Returns 1 if the key (Symbol) exists in the Hash, even if value is NULL.
Returns 1 if the key ( Symbol ) exists in the Hash even if value is NULL .