* xmlDictComputeHash: * @dict: dictionary * @string: C string * * Compute the hash value of a C string. * * Returns the hash value. */
| 520 | * Returns the hash value. |
| 521 | */ |
| 522 | unsigned |
| 523 | xmlDictComputeHash(const xmlDict *dict, const xmlChar *string) { |
| 524 | size_t len; |
| 525 | return(xmlDictHashName(dict->seed, string, SIZE_MAX, &len)); |
| 526 | } |
| 527 | |
| 528 | #define HASH_ROL31(x,n) ((x) << (n) | ((x) & 0x7FFFFFFF) >> (31 - (n))) |
| 529 |
no test coverage detected