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

Function xmlDictLookupHashed

ThirdParty/libxml2/vtklibxml2/dict.c:864–879  ·  view source on GitHub ↗

* xmlDictLookupHashed: * @dict: dictionary * @name: string key * @len: length of the key, if -1 it is recomputed * * Lookup a dictionary entry and add the string to the dictionary if * it wasn't found. * * Returns the dictionary entry. */

Source from the content-addressed store, hash-verified

862 * Returns the dictionary entry.
863 */
864xmlHashedString
865xmlDictLookupHashed(xmlDictPtr dict, const xmlChar *name, int len) {
866 const xmlDictEntry *entry;
867 xmlHashedString ret;
868
869 entry = xmlDictLookupInternal(dict, NULL, name, len, 1);
870
871 if (entry == NULL) {
872 ret.name = NULL;
873 ret.hashValue = 0;
874 } else {
875 ret = *entry;
876 }
877
878 return(ret);
879}
880
881/**
882 * xmlDictExists:

Callers 6

xmlAddDefAttrsFunction · 0.85
xmlParseNCNameComplexFunction · 0.85
xmlParseNCNameFunction · 0.85
xmlParseQNameHashedFunction · 0.85
xmlParseStartTag2Function · 0.85
xmlParseInNodeContextFunction · 0.85

Calls 1

xmlDictLookupInternalFunction · 0.85

Tested by

no test coverage detected