MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlDictComputeHash

Function xmlDictComputeHash

ThirdParty/libxml2/vtklibxml2/dict.c:522–526  ·  view source on GitHub ↗

* xmlDictComputeHash: * @dict: dictionary * @string: C string * * Compute the hash value of a C string. * * Returns the hash value. */

Source from the content-addressed store, hash-verified

520 * Returns the hash value.
521 */
522unsigned
523xmlDictComputeHash(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

Callers 3

xmlParserNsLookupSaxFunction · 0.85
xmlParserNsUpdateSaxFunction · 0.85
xmlParseStartTag2Function · 0.85

Calls 1

xmlDictHashNameFunction · 0.85

Tested by

no test coverage detected