Lines Matching full:dict
1023 * Free a string if it is not owned by the "dict" dictionnary in the
1027 if ((str) && ((!dict) || \
1028 (xmlDictOwns(dict, (const xmlChar *)(str)) == 0))) \
1036 * Copy a string using a "dict" dictionnary in the current scope,
1041 if (dict) { \
1042 if (xmlDictOwns(dict, (const xmlChar *)(str))) \
1045 cpy = (xmlChar *) xmlDictLookup((dict), (const xmlChar *)(str), -1); \
1053 * Copy a string using a "dict" dictionnary in the current scope,
1058 if (dict) { \
1059 if (xmlDictOwns(dict, (const xmlChar *)(str))) \
1062 cpy = xmlDictLookup((dict), (const xmlChar *)(str), -1); \
1075 xmlDictPtr dict = NULL;
1080 if (cur->doc != NULL) dict = cur->doc->dict;
1181 xmlDictPtr dict = NULL;
1196 if (cur != NULL) dict = cur->dict;
1231 if (dict) xmlDictFree(dict);
1792 (!(xmlDictOwns(node->doc->dict, name)))))
1804 (!(xmlDictOwns(node->doc->dict, name)))))
1820 if ((doc != NULL) && (doc->dict != NULL))
1821 cur->name = (xmlChar *) xmlDictLookup(doc->dict, name, -1);
1979 if ((doc != NULL) && (doc->dict != NULL))
1980 cur->name = xmlDictLookup(doc->dict, name, -1);
2029 xmlDictPtr dict = NULL;
2032 if (cur->doc != NULL) dict = cur->doc->dict;
2129 if ((doc != NULL) && (doc->dict != NULL))
2130 cur->name = xmlDictLookup(doc->dict, name, -1);
2263 if ((doc != NULL) && (doc->dict != NULL))
2265 xmlDictLookup(doc->dict, name, -1));
2310 (!(xmlDictOwns(doc->dict, name))))
3579 xmlDictPtr dict = NULL;
3594 if (cur->doc != NULL) dict = cur->doc->dict;
3648 xmlDictPtr dict = NULL;
3669 if (cur->doc != NULL) dict = cur->doc->dict;
4129 if ((doc != NULL) && (doc->dict != NULL))
4130 ret->name = xmlDictLookup(doc->dict, node->name, -1);
4990 xmlDictPtr dict;
5023 dict = doc->dict;
5025 dict = NULL;
5026 if (dict != NULL) {
5027 if ((cur->name != NULL) && (!xmlDictOwns(dict, cur->name)))
5029 cur->name = xmlDictLookup(dict, name, -1);
5476 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5477 (xmlDictOwns(cur->doc->dict, cur->content))))
5554 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5555 (xmlDictOwns(cur->doc->dict, cur->content))))
5640 ((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5641 xmlDictOwns(cur->doc->dict, cur->content))) {
6813 ((node->doc != NULL) && (node->doc->dict != NULL) &&
6814 xmlDictOwns(node->doc->dict, node->content))) {
7903 * XML_TREE_ADOPT_STR: If we have a dest-dict, put @str in the dict;
7904 * otherwise copy it, when it was in the source-dict.
7908 if (destDoc->dict) { \
7910 str = xmlDictLookup(destDoc->dict, str, -1); \
7911 if ((sourceDoc == NULL) || (sourceDoc->dict == NULL) || \
7912 (!xmlDictOwns(sourceDoc->dict, old))) \
7914 } else if ((sourceDoc) && (sourceDoc->dict) && \
7915 xmlDictOwns(sourceDoc->dict, str)) { \
7921 * XML_TREE_ADOPT_STR_2: If @str was in the source-dict, then
7922 * put it in dest-dict or copy it.
7926 (sourceDoc->dict != NULL) && \
7927 xmlDictOwns(sourceDoc->dict, cur->content)) { \
7928 if (destDoc->dict) \
7930 xmlDictLookup(destDoc->dict, cur->content, -1); \
8788 (sourceDoc->dict == destDoc->dict))
8848 * - ns->href and ns->prefix are never in the dict, so
8849 * we need not move the values over to the destination dict.
8868 * NOTE: ns->prefix and ns->href are never in the dict.
8991 * This puts the content in the dest dict, only if
8992 * it was previously in the source dict.
9157 xmlDictPtr dict; /* The destination dict */
9181 dict = destDoc->dict;
9845 (sourceDoc->dict == destDoc->dict))