• Home
  • Raw
  • Download

Lines Matching refs:nodeTab

1340 	    xmlXPathDebugDumpNode(output, cur->nodeTab[i], depth + 1);  in xmlXPathDebugDumpNodeSet()
1354 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) { in xmlXPathDebugDumpValueTree()
1363 xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1); in xmlXPathDebugDumpValueTree()
2228 if (obj->nodesetval->nodeTab != NULL) in xmlXPathCacheFreeObjectList()
2229 xmlFree(obj->nodesetval->nodeTab); in xmlXPathCacheFreeObjectList()
2436 ret->nodesetval->nodeTab[0] = val; in xmlXPathCacheNewNodeSet()
3478 if (xmlXPathCmpNodesExt(set->nodeTab[j], in xmlXPathNodeSetSort()
3479 set->nodeTab[j + incr]) == -1) in xmlXPathNodeSetSort()
3481 if (xmlXPathCmpNodes(set->nodeTab[j], in xmlXPathNodeSetSort()
3482 set->nodeTab[j + incr]) == -1) in xmlXPathNodeSetSort()
3485 tmp = set->nodeTab[j]; in xmlXPathNodeSetSort()
3486 set->nodeTab[j] = set->nodeTab[j + incr]; in xmlXPathNodeSetSort()
3487 set->nodeTab[j + incr] = tmp; in xmlXPathNodeSetSort()
3495 libxml_domnode_tim_sort(set->nodeTab, set->nodeNr); in xmlXPathNodeSetSort()
3579 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate()
3581 if (ret->nodeTab == NULL) { in xmlXPathNodeSetCreate()
3586 memset(ret->nodeTab, 0 , in xmlXPathNodeSetCreate()
3593 ret->nodeTab[ret->nodeNr++] = in xmlXPathNodeSetCreate()
3596 ret->nodeTab[ret->nodeNr++] = val; in xmlXPathNodeSetCreate()
3617 if (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) { in xmlXPathNodeSetContains()
3621 ns2 = (xmlNsPtr) cur->nodeTab[i]; in xmlXPathNodeSetContains()
3631 if (cur->nodeTab[i] == val) in xmlXPathNodeSetContains()
3663 if ((cur->nodeTab[i] != NULL) && in xmlXPathNodeSetAddNs()
3664 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) && in xmlXPathNodeSetAddNs()
3665 (((xmlNsPtr)cur->nodeTab[i])->next == (xmlNsPtr) node) && in xmlXPathNodeSetAddNs()
3666 (xmlStrEqual(ns->prefix, ((xmlNsPtr)cur->nodeTab[i])->prefix))) in xmlXPathNodeSetAddNs()
3674 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddNs()
3676 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAddNs()
3680 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAddNs()
3690 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddNs()
3697 cur->nodeTab = temp; in xmlXPathNodeSetAddNs()
3700 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns); in xmlXPathNodeSetAddNs()
3724 if (cur->nodeTab[i] == val) return(0); in xmlXPathNodeSetAdd()
3730 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAdd()
3732 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAdd()
3736 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAdd()
3746 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAdd()
3753 cur->nodeTab = temp; in xmlXPathNodeSetAdd()
3759 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAdd()
3762 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAdd()
3785 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddUnique()
3787 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAddUnique()
3791 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAddUnique()
3801 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddUnique()
3807 cur->nodeTab = temp; in xmlXPathNodeSetAddUnique()
3814 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAddUnique()
3817 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAddUnique()
3859 *(val1->nodeTab) = *(val2->nodeTab); in xmlXPathNodeSetMerge()
3861 memcpy(val1->nodeTab, val2->nodeTab, in xmlXPathNodeSetMerge()
3874 n2 = val2->nodeTab[i]; in xmlXPathNodeSetMerge()
3880 n1 = val1->nodeTab[j]; in xmlXPathNodeSetMerge()
3902 val1->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetMerge()
3904 if (val1->nodeTab == NULL) { in xmlXPathNodeSetMerge()
3908 memset(val1->nodeTab, 0 , in xmlXPathNodeSetMerge()
3918 temp = (xmlNodePtr *) xmlRealloc(val1->nodeTab, val1->nodeMax * 2 * in xmlXPathNodeSetMerge()
3924 val1->nodeTab = temp; in xmlXPathNodeSetMerge()
3931 val1->nodeTab[val1->nodeNr++] = in xmlXPathNodeSetMerge()
3934 val1->nodeTab[val1->nodeNr++] = n2; in xmlXPathNodeSetMerge()
3960 n2 = set2->nodeTab[i]; in xmlXPathNodeSetMergeAndClear()
3965 n1 = set1->nodeTab[j]; in xmlXPathNodeSetMergeAndClear()
3978 set2->nodeTab[i] = NULL; in xmlXPathNodeSetMergeAndClear()
3988 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClear()
3990 if (set1->nodeTab == NULL) { in xmlXPathNodeSetMergeAndClear()
3994 memset(set1->nodeTab, 0, in xmlXPathNodeSetMergeAndClear()
4005 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
4010 set1->nodeTab = temp; in xmlXPathNodeSetMergeAndClear()
4013 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClear()
4040 n2 = set2->nodeTab[i]; in xmlXPathNodeSetMergeAndClearNoDupls()
4042 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClearNoDupls()
4044 if (set1->nodeTab == NULL) { in xmlXPathNodeSetMergeAndClearNoDupls()
4048 memset(set1->nodeTab, 0, in xmlXPathNodeSetMergeAndClearNoDupls()
4059 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4064 set1->nodeTab = temp; in xmlXPathNodeSetMergeAndClearNoDupls()
4067 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClearNoDupls()
4092 if (cur->nodeTab[i] == val) break; in xmlXPathNodeSetDel()
4102 if ((cur->nodeTab[i] != NULL) && in xmlXPathNodeSetDel()
4103 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL)) in xmlXPathNodeSetDel()
4104 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[i]); in xmlXPathNodeSetDel()
4107 cur->nodeTab[i] = cur->nodeTab[i + 1]; in xmlXPathNodeSetDel()
4108 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetDel()
4122 if ((cur->nodeTab[val] != NULL) && in xmlXPathNodeSetRemove()
4123 (cur->nodeTab[val]->type == XML_NAMESPACE_DECL)) in xmlXPathNodeSetRemove()
4124 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[val]); in xmlXPathNodeSetRemove()
4127 cur->nodeTab[val] = cur->nodeTab[val + 1]; in xmlXPathNodeSetRemove()
4128 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetRemove()
4140 if (obj->nodeTab != NULL) { in xmlXPathFreeNodeSet()
4145 if ((obj->nodeTab[i] != NULL) && in xmlXPathFreeNodeSet()
4146 (obj->nodeTab[i]->type == XML_NAMESPACE_DECL)) in xmlXPathFreeNodeSet()
4147 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]); in xmlXPathFreeNodeSet()
4148 xmlFree(obj->nodeTab); in xmlXPathFreeNodeSet()
4172 node = set->nodeTab[i]; in xmlXPathNodeSetClearFromPos()
4212 node = set->nodeTab[i]; in xmlXPathNodeSetKeepLast()
4217 set->nodeTab[0] = set->nodeTab[set->nodeNr-1]; in xmlXPathNodeSetKeepLast()
4234 if (obj->nodeTab != NULL) { in xmlXPathFreeValueTree()
4236 if (obj->nodeTab[i] != NULL) { in xmlXPathFreeValueTree()
4237 if (obj->nodeTab[i]->type == XML_NAMESPACE_DECL) { in xmlXPathFreeValueTree()
4238 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]); in xmlXPathFreeValueTree()
4240 xmlFreeNodeList(obj->nodeTab[i]); in xmlXPathFreeValueTree()
4244 xmlFree(obj->nodeTab); in xmlXPathFreeValueTree()
4270 if (obj->nodeTab == NULL) { in xmlGenericErrorContextNodeSet()
4275 if (obj->nodeTab[i] == NULL) { in xmlGenericErrorContextNodeSet()
4279 if ((obj->nodeTab[i]->type == XML_DOCUMENT_NODE) || in xmlGenericErrorContextNodeSet()
4280 (obj->nodeTab[i]->type == XML_HTML_DOCUMENT_NODE)) in xmlGenericErrorContextNodeSet()
4282 else if (obj->nodeTab[i]->name == NULL) in xmlGenericErrorContextNodeSet()
4284 else fprintf(output, " %s", obj->nodeTab[i]->name); in xmlGenericErrorContextNodeSet()
4366 else if (val->nodeTab == NULL) in xmlXPathNewNodeSetList()
4369 ret = xmlXPathNewNodeSet(val->nodeTab[0]); in xmlXPathNewNodeSetList()
4373 if (xmlXPathNodeSetAddUnique(ret->nodesetval, val->nodeTab[i]) in xmlXPathNewNodeSetList()
5404 (val->nodesetval->nodeTab != NULL)) { in xmlXPathObjectCopy()
5411 xmlStrdup(val->nodesetval->nodeTab[0]->name); in xmlXPathObjectCopy()
5415 cur = val->nodesetval->nodeTab[0]->children; in xmlXPathObjectCopy()
5608 node = tmpset->nodeTab[i]; in xmlXPathReleaseObject()
5616 if ((tmpset->nodeTab[0] != NULL) && in xmlXPathReleaseObject()
5617 (tmpset->nodeTab[0]->type == XML_NAMESPACE_DECL)) in xmlXPathReleaseObject()
5618 xmlXPathNodeSetFreeNs((xmlNsPtr) tmpset->nodeTab[0]); in xmlXPathReleaseObject()
5728 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL)) in xmlXPathCastNodeSetToString()
5733 return(xmlXPathCastNodeToString(ns->nodeTab[0])); in xmlXPathCastNodeSetToString()
6479 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathCompareNodeSetFloat()
6534 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathCompareNodeSetString()
6624 val1 = xmlXPathCastNodeToNumber(ns1->nodeTab[i]); in xmlXPathCompareNodeSets()
6629 values2[j] = xmlXPathCastNodeToNumber(ns2->nodeTab[j]); in xmlXPathCompareNodeSets()
6741 if (xmlXPathNodeValHash(ns->nodeTab[i]) == hash) { in xmlXPathEqualNodeSetString()
6742 str2 = xmlNodeGetContent(ns->nodeTab[i]); in xmlXPathEqualNodeSetString()
6796 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathEqualNodeSetFloat()
6873 if (ns1->nodeTab[i] == ns2->nodeTab[j]) in xmlXPathEqualNodeSets()
6909 hashs1[i] = xmlXPathNodeValHash(ns1->nodeTab[i]); in xmlXPathEqualNodeSets()
6912 hashs2[j] = xmlXPathNodeValHash(ns2->nodeTab[j]); in xmlXPathEqualNodeSets()
6921 values1[i] = xmlNodeGetContent(ns1->nodeTab[i]); in xmlXPathEqualNodeSets()
6923 values2[j] = xmlNodeGetContent(ns2->nodeTab[j]); in xmlXPathEqualNodeSets()
8643 xmlXPathCastNodeToString(obj->nodesetval->nodeTab[i]); in xmlXPathIdFunction()
8700 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathLocalNameFunction()
8704 if (cur->nodesetval->nodeTab[i]->name[0] == ' ') in xmlXPathLocalNameFunction()
8709 cur->nodesetval->nodeTab[i]->name)); in xmlXPathLocalNameFunction()
8713 ((xmlNsPtr)cur->nodesetval->nodeTab[i])->prefix)); in xmlXPathLocalNameFunction()
8758 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathNamespaceURIFunction()
8761 if (cur->nodesetval->nodeTab[i]->ns == NULL) in xmlXPathNamespaceURIFunction()
8765 cur->nodesetval->nodeTab[i]->ns->href)); in xmlXPathNamespaceURIFunction()
8819 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathNameFunction()
8822 if (cur->nodesetval->nodeTab[i]->name[0] == ' ') in xmlXPathNameFunction()
8825 else if ((cur->nodesetval->nodeTab[i]->ns == NULL) || in xmlXPathNameFunction()
8826 (cur->nodesetval->nodeTab[i]->ns->prefix == NULL)) { in xmlXPathNameFunction()
8829 cur->nodesetval->nodeTab[i]->name)); in xmlXPathNameFunction()
8833 fullname = xmlBuildQName(cur->nodesetval->nodeTab[i]->name, in xmlXPathNameFunction()
8834 cur->nodesetval->nodeTab[i]->ns->prefix, in xmlXPathNameFunction()
8836 if (fullname == cur->nodesetval->nodeTab[i]->name) in xmlXPathNameFunction()
8837 fullname = xmlStrdup(cur->nodesetval->nodeTab[i]->name); in xmlXPathNameFunction()
8847 cur->nodesetval->nodeTab[i])); in xmlXPathNameFunction()
9574 res += xmlXPathCastNodeToNumber(cur->nodesetval->nodeTab[i]); in xmlXPathSumFunction()
11656 xmlNodePtr node = set->nodeTab[i]; in xmlXPathNodeSetFilter()
11684 set->nodeTab[j] = node; in xmlXPathNodeSetFilter()
11685 set->nodeTab[i] = NULL; in xmlXPathNodeSetFilter()
11691 set->nodeTab[i] = NULL; in xmlXPathNodeSetFilter()
11709 xmlNodePtr node = set->nodeTab[i]; in xmlXPathNodeSetFilter()
11725 tmp = (xmlNodePtr *) xmlRealloc(set->nodeTab, in xmlXPathNodeSetFilter()
11730 set->nodeTab = tmp; in xmlXPathNodeSetFilter()
12206 xpctxt->node = contextSeq->nodeTab[contextIdx++]; in xmlXPathNodeCollectAndTest()
12634 *first = ctxt->value->nodesetval->nodeTab[0]; in xmlXPathCompOpEvalFirst()
12768 ctxt->value->nodesetval->nodeTab[ctxt->value-> in xmlXPathCompOpEvalLast()
12900 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEvalFilterFirst()
12903 *first = *(ctxt->value->nodesetval->nodeTab); in xmlXPathCompOpEvalFilterFirst()
12939 *first = set->nodeTab[0]; in xmlXPathCompOpEvalFilterFirst()
13314 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEval()
13479 ctxt->context->node = oldset->nodeTab[i]; in xmlXPathCompOpEval()
13498 xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], in xmlXPathCompOpEval()