Home | History | Annotate | Download | only in common

Lines Matching refs:hash

31  * functions.  These functions hash keys, compare keys, delete keys,
56 * UHashElement pointer. A hash element contains a key, value, and
88 * This is a single hash element.
101 * @return A NON-NEGATIVE hash code for parm.
139 UHashFunction *keyHasher; /* Computes hash from key.
199 * @param size The initial capacity of this hash table.
222 uhash_init(UHashtable *hash,
230 * @param hash The UHashtable to close. If hash is NULL no operation is performed.
233 uhash_close(UHashtable *hash);
238 * Set the function used to hash keys.
239 * @param hash The UHashtable to set
240 * @param fn the function to be used hash keys; must not be NULL
244 uhash_setKeyHasher(UHashtable *hash, UHashFunction *fn);
249 * @param hash The UHashtable to set
254 uhash_setKeyComparator(UHashtable *hash, UKeyComparator *fn);
259 * @param hash The UHashtable to set
264 uhash_setValueComparator(UHashtable *hash, UValueComparator *fn);
272 * @param hash The UHashtable to set
277 uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn);
285 * @param hash The UHashtable to set
290 uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn);
296 * @param hash The UHashtable to set
300 uhash_setResizePolicy(UHashtable *hash, enum UHashResizePolicy policy);
304 * @param hash The UHashtable to query.
305 * @return The number of key-value pairs stored in hash.
308 uhash_count(const UHashtable *hash);
316 * @param hash The target UHashtable.
324 uhash_put(UHashtable *hash,
334 * @param hash The target UHashtable.
342 uhash_iput(UHashtable *hash,
352 * @param hash The target UHashtable.
360 uhash_puti(UHashtable *hash,
370 * @param hash The target UHashtable.
378 uhash_iputi(UHashtable *hash,
386 * @param hash The target UHashtable.
391 uhash_get(const UHashtable *hash,
397 * @param hash The target UHashtable.
402 uhash_iget(const UHashtable *hash,
408 * @param hash The target UHashtable.
413 uhash_geti(const UHashtable *hash,
418 * @param hash The target UHashtable.
423 uhash_igeti(const UHashtable *hash,
428 * @param hash The target UHashtable.
433 uhash_remove(UHashtable *hash,
438 * @param hash The target UHashtable.
443 uhash_iremove(UHashtable *hash,
448 * @param hash The target UHashtable.
453 uhash_removei(UHashtable *hash,
458 * @param hash The target UHashtable.
463 uhash_iremovei(UHashtable *hash,
468 * @param hash The target UHashtable.
471 uhash_removeAll(UHashtable *hash);
478 * compare, then the hash key may be desired in order to obtain the
480 * @param hash The target UHashtable.
482 * @return a hash element, or NULL if the key is not found.
485 uhash_find(const UHashtable *hash, const void* key);
494 * @param hash The target UHashtable.
497 * @return a hash element, or NULL if no further key-value pairs
501 uhash_nextElement(const UHashtable *hash,
507 * @param hash The hashtable
516 uhash_removeElement(UHashtable *hash, const UHashElement* e);
543 * Generate a hash code for a null-terminated UChar* string. If the
546 * @param key The string (const UChar*) to hash.
547 * @return A hash code for the key.
553 * Generate a hash code for a null-terminated char* string. If the
556 * @param key The string (const char*) to hash.
557 * @return A hash code for the key.
563 * Generate a case-insensitive hash code for a null-terminated char*
566 * @param key The string (const char*) to hash.
567 * @return A hash code for the key.
607 * Hash function for UnicodeString* keys.
608 * @param key The string (const char*) to hash.
609 * @return A hash code for the key.
615 * Hash function for UnicodeString* keys (case insensitive).
617 * @param key The string (const char*) to hash.
618 * @return A hash code for the key.
628 * Hash function for 32-bit integer keys.
629 * @param key The string (const char*) to hash.
630 * @return A hash code for the key.
658 * Checks if the given hash tables are equal or not.