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

Function xmlHashLookup3

ThirdParty/libxml2/vtklibxml2/hash.c:901–915  ·  view source on GitHub ↗

* xmlHashLookup3: * @hash: hash table * @key: first string key * @key2: second string key * @key3: third string key * * Find the payload specified by the (@key, @key2, @key3) tuple. * * Returns a pointer to the payload or NULL if no entry was found. */

Source from the content-addressed store, hash-verified

899 * Returns a pointer to the payload or NULL if no entry was found.
900 */
901void *
902xmlHashLookup3(xmlHashTablePtr hash, const xmlChar *key,
903 const xmlChar *key2, const xmlChar *key3) {
904 const xmlHashEntry *entry;
905 unsigned hashValue;
906 int found;
907
908 if ((hash == NULL) || (hash->size == 0) || (key == NULL))
909 return(NULL);
910 hashValue = xmlHashValue(hash->randomSeed, key, key2, key3, NULL);
911 entry = xmlHashFindEntry(hash, key, key2, key3, hashValue, &found);
912 if (found)
913 return(entry->payload);
914 return(NULL);
915}
916
917/**
918 * xmlHashQLookup3:

Callers 6

xmlAddAttributeDeclFunction · 0.85
xmlGetDtdAttrDescFunction · 0.85
xmlGetDtdQAttrDescFunction · 0.85
xmlHashLookupFunction · 0.85
xmlHashLookup2Function · 0.85

Calls 2

xmlHashValueFunction · 0.85
xmlHashFindEntryFunction · 0.85

Tested by

no test coverage detected