* 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. */
| 899 | * Returns a pointer to the payload or NULL if no entry was found. |
| 900 | */ |
| 901 | void * |
| 902 | xmlHashLookup3(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: |
no test coverage detected