* 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. */
| 862 | * Returns the dictionary entry. |
| 863 | */ |
| 864 | xmlHashedString |
| 865 | xmlDictLookupHashed(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: |
no test coverage detected