Lines Matching defs:dict
1018 * Free a string if it is not owned by the "dict" dictionnary in the
1022 if ((str) && ((!dict) || \
1023 (xmlDictOwns(dict, (const xmlChar *)(str)) == 0))) \
1031 * Copy a string using a "dict" dictionnary in the current scope,
1036 if (dict) { \
1037 if (xmlDictOwns(dict, (const xmlChar *)(str))) \
1040 cpy = (xmlChar *) xmlDictLookup((dict), (const xmlChar *)(str), -1); \
1048 * Copy a string using a "dict" dictionnary in the current scope,
1053 if (dict) { \
1054 if (xmlDictOwns(dict, (const xmlChar *)(str))) \
1057 cpy = xmlDictLookup((dict), (const xmlChar *)(str), -1); \
1070 xmlDictPtr dict = NULL;
1075 if (cur->doc != NULL) dict = cur->doc->dict;
1174 xmlDictPtr dict = NULL;
1189 if (cur != NULL) dict = cur->dict;
1224 if (dict) xmlDictFree(dict);
1809 if ((doc != NULL) && (doc->dict != NULL))
1810 cur->name = (xmlChar *) xmlDictLookup(doc->dict, name, -1);
1965 if ((doc != NULL) && (doc->dict != NULL))
1966 cur->name = xmlDictLookup(doc->dict, name, -1);
2015 xmlDictPtr dict = NULL;
2018 if (cur->doc != NULL) dict = cur->doc->dict;
2115 if ((doc != NULL) && (doc->dict != NULL))
2116 cur->name = xmlDictLookup(doc->dict, name, -1);
2249 if ((doc != NULL) && (doc->dict != NULL))
2251 xmlDictLookup(doc->dict, name, -1));
3361 xmlDictPtr dict = NULL;
3376 if (cur->doc != NULL) dict = cur->doc->dict;
3430 xmlDictPtr dict = NULL;
3451 if (cur->doc != NULL) dict = cur->doc->dict;
3884 if ((doc != NULL) && (doc->dict != NULL))
3885 ret->name = xmlDictLookup(doc->dict, node->name, -1);
4745 xmlDictPtr dict;
4778 dict = doc->dict;
4780 dict = NULL;
4781 if (dict != NULL) {
4782 if ((cur->name != NULL) && (!xmlDictOwns(dict, cur->name)))
4784 cur->name = xmlDictLookup(dict, name, -1);
5231 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5232 (xmlDictOwns(cur->doc->dict, cur->content))))
5309 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5310 (xmlDictOwns(cur->doc->dict, cur->content))))
5395 ((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5396 xmlDictOwns(cur->doc->dict, cur->content))) {
6565 ((node->doc != NULL) && (node->doc->dict != NULL) &&
6566 xmlDictOwns(node->doc->dict, node->content))) {
7573 * XML_TREE_ADOPT_STR: If we have a dest-dict, put @str in the dict;
7574 * otherwise copy it, when it was in the source-dict.
7578 if (destDoc->dict) { \
7580 str = xmlDictLookup(destDoc->dict, str, -1); \
7581 if ((sourceDoc == NULL) || (sourceDoc->dict == NULL) || \
7582 (!xmlDictOwns(sourceDoc->dict, old))) \
7584 } else if ((sourceDoc) && (sourceDoc->dict) && \
7585 xmlDictOwns(sourceDoc->dict, str)) { \
7591 * XML_TREE_ADOPT_STR_2: If @str was in the source-dict, then
7592 * put it in dest-dict or copy it.
7596 (sourceDoc->dict != NULL) && \
7597 xmlDictOwns(sourceDoc->dict, cur->content)) { \
7598 if (destDoc->dict) \
7600 xmlDictLookup(destDoc->dict, cur->content, -1); \
8458 (sourceDoc->dict == destDoc->dict))
8518 * - ns->href and ns->prefix are never in the dict, so
8519 * we need not move the values over to the destination dict.
8538 * NOTE: ns->prefix and ns->href are never in the dict.
8661 * This puts the content in the dest dict, only if
8662 * it was previously in the source dict.
8827 xmlDictPtr dict; /* The destination dict */
8851 dict = destDoc->dict;
9515 (sourceDoc->dict == destDoc->dict))