• Home
  • Raw
  • Download

Lines Matching refs:nodeTab

1313 	    xmlXPathDebugDumpNode(output, cur->nodeTab[i], depth + 1);  in xmlXPathDebugDumpNodeSet()
1327 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) { in xmlXPathDebugDumpValueTree()
1336 xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1); in xmlXPathDebugDumpValueTree()
2197 if (obj->nodesetval->nodeTab != NULL) in xmlXPathCacheFreeObjectList()
2198 xmlFree(obj->nodesetval->nodeTab); in xmlXPathCacheFreeObjectList()
2404 ret->nodesetval->nodeTab[0] = val; in xmlXPathCacheNewNodeSet()
3437 if (xmlXPathCmpNodesExt(set->nodeTab[j], in xmlXPathNodeSetSort()
3438 set->nodeTab[j + incr]) == -1) in xmlXPathNodeSetSort()
3440 if (xmlXPathCmpNodes(set->nodeTab[j], in xmlXPathNodeSetSort()
3441 set->nodeTab[j + incr]) == -1) in xmlXPathNodeSetSort()
3444 tmp = set->nodeTab[j]; in xmlXPathNodeSetSort()
3445 set->nodeTab[j] = set->nodeTab[j + incr]; in xmlXPathNodeSetSort()
3446 set->nodeTab[j + incr] = tmp; in xmlXPathNodeSetSort()
3454 libxml_domnode_tim_sort(set->nodeTab, set->nodeNr); in xmlXPathNodeSetSort()
3538 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate()
3540 if (ret->nodeTab == NULL) { in xmlXPathNodeSetCreate()
3545 memset(ret->nodeTab, 0 , in xmlXPathNodeSetCreate()
3551 ret->nodeTab[ret->nodeNr++] = in xmlXPathNodeSetCreate()
3554 ret->nodeTab[ret->nodeNr++] = val; in xmlXPathNodeSetCreate()
3579 ret->nodeTab = (xmlNodePtr *) xmlMalloc(size * sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize()
3580 if (ret->nodeTab == NULL) { in xmlXPathNodeSetCreateSize()
3585 memset(ret->nodeTab, 0 , size * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize()
3606 if (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) { in xmlXPathNodeSetContains()
3610 ns2 = (xmlNsPtr) cur->nodeTab[i]; in xmlXPathNodeSetContains()
3620 if (cur->nodeTab[i] == val) in xmlXPathNodeSetContains()
3652 if ((cur->nodeTab[i] != NULL) && in xmlXPathNodeSetAddNs()
3653 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) && in xmlXPathNodeSetAddNs()
3654 (((xmlNsPtr)cur->nodeTab[i])->next == (xmlNsPtr) node) && in xmlXPathNodeSetAddNs()
3655 (xmlStrEqual(ns->prefix, ((xmlNsPtr)cur->nodeTab[i])->prefix))) in xmlXPathNodeSetAddNs()
3663 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddNs()
3665 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAddNs()
3669 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAddNs()
3679 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddNs()
3686 cur->nodeTab = temp; in xmlXPathNodeSetAddNs()
3688 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns); in xmlXPathNodeSetAddNs()
3712 if (cur->nodeTab[i] == val) return(0); in xmlXPathNodeSetAdd()
3718 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAdd()
3720 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAdd()
3724 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAdd()
3734 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAdd()
3741 cur->nodeTab = temp; in xmlXPathNodeSetAdd()
3746 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAdd()
3749 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAdd()
3772 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddUnique()
3774 if (cur->nodeTab == NULL) { in xmlXPathNodeSetAddUnique()
3778 memset(cur->nodeTab, 0 , in xmlXPathNodeSetAddUnique()
3788 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddUnique()
3794 cur->nodeTab = temp; in xmlXPathNodeSetAddUnique()
3800 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAddUnique()
3803 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAddUnique()
3845 *(val1->nodeTab) = *(val2->nodeTab); in xmlXPathNodeSetMerge()
3847 memcpy(val1->nodeTab, val2->nodeTab, in xmlXPathNodeSetMerge()
3860 n2 = val2->nodeTab[i]; in xmlXPathNodeSetMerge()
3866 n1 = val1->nodeTab[j]; in xmlXPathNodeSetMerge()
3888 val1->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetMerge()
3890 if (val1->nodeTab == NULL) { in xmlXPathNodeSetMerge()
3894 memset(val1->nodeTab, 0 , in xmlXPathNodeSetMerge()
3904 temp = (xmlNodePtr *) xmlRealloc(val1->nodeTab, val1->nodeMax * 2 * in xmlXPathNodeSetMerge()
3910 val1->nodeTab = temp; in xmlXPathNodeSetMerge()
3916 val1->nodeTab[val1->nodeNr++] = in xmlXPathNodeSetMerge()
3919 val1->nodeTab[val1->nodeNr++] = n2; in xmlXPathNodeSetMerge()
3951 memcpy(set1->nodeTab, set2->nodeTab, in xmlXPathNodeSetMergeAndClear()
3966 n2 = set2->nodeTab[i]; in xmlXPathNodeSetMergeAndClear()
3976 n1 = set1->nodeTab[j]; in xmlXPathNodeSetMergeAndClear()
3989 set2->nodeTab[i] = NULL; in xmlXPathNodeSetMergeAndClear()
3999 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClear()
4001 if (set1->nodeTab == NULL) { in xmlXPathNodeSetMergeAndClear()
4005 memset(set1->nodeTab, 0, in xmlXPathNodeSetMergeAndClear()
4016 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
4021 set1->nodeTab = temp; in xmlXPathNodeSetMergeAndClear()
4027 set1->nodeTab[set1->nodeNr++] = in xmlXPathNodeSetMergeAndClear()
4030 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClear()
4066 memcpy(set1->nodeTab, set2->nodeTab, in xmlXPathNodeSetMergeAndClearNoDupls()
4080 n2 = set2->nodeTab[i]; in xmlXPathNodeSetMergeAndClearNoDupls()
4087 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClearNoDupls()
4089 if (set1->nodeTab == NULL) { in xmlXPathNodeSetMergeAndClearNoDupls()
4093 memset(set1->nodeTab, 0, in xmlXPathNodeSetMergeAndClearNoDupls()
4104 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4109 set1->nodeTab = temp; in xmlXPathNodeSetMergeAndClearNoDupls()
4112 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClearNoDupls()
4137 if (cur->nodeTab[i] == val) break; in xmlXPathNodeSetDel()
4147 if ((cur->nodeTab[i] != NULL) && in xmlXPathNodeSetDel()
4148 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL)) in xmlXPathNodeSetDel()
4149 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[i]); in xmlXPathNodeSetDel()
4152 cur->nodeTab[i] = cur->nodeTab[i + 1]; in xmlXPathNodeSetDel()
4153 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetDel()
4167 if ((cur->nodeTab[val] != NULL) && in xmlXPathNodeSetRemove()
4168 (cur->nodeTab[val]->type == XML_NAMESPACE_DECL)) in xmlXPathNodeSetRemove()
4169 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[val]); in xmlXPathNodeSetRemove()
4172 cur->nodeTab[val] = cur->nodeTab[val + 1]; in xmlXPathNodeSetRemove()
4173 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetRemove()
4185 if (obj->nodeTab != NULL) { in xmlXPathFreeNodeSet()
4190 if ((obj->nodeTab[i] != NULL) && in xmlXPathFreeNodeSet()
4191 (obj->nodeTab[i]->type == XML_NAMESPACE_DECL)) in xmlXPathFreeNodeSet()
4192 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]); in xmlXPathFreeNodeSet()
4193 xmlFree(obj->nodeTab); in xmlXPathFreeNodeSet()
4216 node = set->nodeTab[i]; in xmlXPathNodeSetClear()
4244 node = set->nodeTab[i]; in xmlXPathNodeSetClearFromPos()
4266 if (obj->nodeTab != NULL) { in xmlXPathFreeValueTree()
4268 if (obj->nodeTab[i] != NULL) { in xmlXPathFreeValueTree()
4269 if (obj->nodeTab[i]->type == XML_NAMESPACE_DECL) { in xmlXPathFreeValueTree()
4270 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]); in xmlXPathFreeValueTree()
4272 xmlFreeNodeList(obj->nodeTab[i]); in xmlXPathFreeValueTree()
4276 xmlFree(obj->nodeTab); in xmlXPathFreeValueTree()
4302 if (obj->nodeTab == NULL) { in xmlGenericErrorContextNodeSet()
4307 if (obj->nodeTab[i] == NULL) { in xmlGenericErrorContextNodeSet()
4311 if ((obj->nodeTab[i]->type == XML_DOCUMENT_NODE) || in xmlGenericErrorContextNodeSet()
4312 (obj->nodeTab[i]->type == XML_HTML_DOCUMENT_NODE)) in xmlGenericErrorContextNodeSet()
4314 else if (obj->nodeTab[i]->name == NULL) in xmlGenericErrorContextNodeSet()
4316 else fprintf(output, " %s", obj->nodeTab[i]->name); in xmlGenericErrorContextNodeSet()
4397 else if (val->nodeTab == NULL) in xmlXPathNewNodeSetList()
4400 ret = xmlXPathNewNodeSet(val->nodeTab[0]); in xmlXPathNewNodeSetList()
4403 if (xmlXPathNodeSetAddUnique(ret->nodesetval, val->nodeTab[i]) in xmlXPathNewNodeSetList()
5425 (val->nodesetval->nodeTab != NULL)) { in xmlXPathObjectCopy()
5432 xmlStrdup(val->nodesetval->nodeTab[0]->name); in xmlXPathObjectCopy()
5436 cur = val->nodesetval->nodeTab[0]->children; in xmlXPathObjectCopy()
5623 node = tmpset->nodeTab[i]; in xmlXPathReleaseObject()
5631 if ((tmpset->nodeTab[0] != NULL) && in xmlXPathReleaseObject()
5632 (tmpset->nodeTab[0]->type == XML_NAMESPACE_DECL)) in xmlXPathReleaseObject()
5633 xmlXPathNodeSetFreeNs((xmlNsPtr) tmpset->nodeTab[0]); in xmlXPathReleaseObject()
5742 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL)) in xmlXPathCastNodeSetToString()
5747 return(xmlXPathCastNodeToString(ns->nodeTab[0])); in xmlXPathCastNodeSetToString()
6489 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathCompareNodeSetFloat()
6544 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathCompareNodeSetString()
6633 val1 = xmlXPathCastNodeToNumber(ns1->nodeTab[i]); in xmlXPathCompareNodeSets()
6638 values2[j] = xmlXPathCastNodeToNumber(ns2->nodeTab[j]); in xmlXPathCompareNodeSets()
6744 if (xmlXPathNodeValHash(ns->nodeTab[i]) == hash) { in xmlXPathEqualNodeSetString()
6745 str2 = xmlNodeGetContent(ns->nodeTab[i]); in xmlXPathEqualNodeSetString()
6799 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]); in xmlXPathEqualNodeSetFloat()
6876 if (ns1->nodeTab[i] == ns2->nodeTab[j]) in xmlXPathEqualNodeSets()
6908 hashs1[i] = xmlXPathNodeValHash(ns1->nodeTab[i]); in xmlXPathEqualNodeSets()
6911 hashs2[j] = xmlXPathNodeValHash(ns2->nodeTab[j]); in xmlXPathEqualNodeSets()
6920 values1[i] = xmlNodeGetContent(ns1->nodeTab[i]); in xmlXPathEqualNodeSets()
6922 values2[j] = xmlNodeGetContent(ns2->nodeTab[j]); in xmlXPathEqualNodeSets()
8557 (cur->nodesetval->nodeTab == NULL)) { in xmlXPathCountFunction()
8563 tmp = cur->nodesetval->nodeTab[0]; in xmlXPathCountFunction()
8675 xmlXPathCastNodeToString(obj->nodesetval->nodeTab[i]); in xmlXPathIdFunction()
8730 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathLocalNameFunction()
8734 if (cur->nodesetval->nodeTab[i]->name[0] == ' ') in xmlXPathLocalNameFunction()
8739 cur->nodesetval->nodeTab[i]->name)); in xmlXPathLocalNameFunction()
8743 ((xmlNsPtr)cur->nodesetval->nodeTab[i])->prefix)); in xmlXPathLocalNameFunction()
8788 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathNamespaceURIFunction()
8791 if (cur->nodesetval->nodeTab[i]->ns == NULL) in xmlXPathNamespaceURIFunction()
8795 cur->nodesetval->nodeTab[i]->ns->href)); in xmlXPathNamespaceURIFunction()
8849 switch (cur->nodesetval->nodeTab[i]->type) { in xmlXPathNameFunction()
8852 if (cur->nodesetval->nodeTab[i]->name[0] == ' ') in xmlXPathNameFunction()
8855 else if ((cur->nodesetval->nodeTab[i]->ns == NULL) || in xmlXPathNameFunction()
8856 (cur->nodesetval->nodeTab[i]->ns->prefix == NULL)) { in xmlXPathNameFunction()
8859 cur->nodesetval->nodeTab[i]->name)); in xmlXPathNameFunction()
8863 fullname = xmlBuildQName(cur->nodesetval->nodeTab[i]->name, in xmlXPathNameFunction()
8864 cur->nodesetval->nodeTab[i]->ns->prefix, in xmlXPathNameFunction()
8866 if (fullname == cur->nodesetval->nodeTab[i]->name) in xmlXPathNameFunction()
8867 fullname = xmlStrdup(cur->nodesetval->nodeTab[i]->name); in xmlXPathNameFunction()
8877 cur->nodesetval->nodeTab[i])); in xmlXPathNameFunction()
9630 res += xmlXPathCastNodeToNumber(cur->nodesetval->nodeTab[i]); in xmlXPathSumFunction()
11731 if (set->nodeTab[i] == NULL) in xmlXPathCompOpEvalPredicate()
11734 contextNode = set->nodeTab[i]; in xmlXPathCompOpEvalPredicate()
11777 set->nodeTab[i] = NULL; in xmlXPathCompOpEvalPredicate()
11882 if (set->nodeTab[i] == NULL) in xmlXPathCompOpEvalPositionalPredicate()
11885 contextNode = set->nodeTab[i]; in xmlXPathCompOpEvalPositionalPredicate()
11950 set->nodeTab[i] = NULL; in xmlXPathCompOpEvalPositionalPredicate()
11954 set->nodeTab[0] = contextNode; in xmlXPathCompOpEvalPositionalPredicate()
11968 set->nodeTab[i] = NULL; in xmlXPathCompOpEvalPositionalPredicate()
12320 xpctxt->node = contextSeq->nodeTab[contextIdx++]; in xmlXPathNodeCollectAndTest()
12753 *first = ctxt->value->nodesetval->nodeTab[0]; in xmlXPathCompOpEvalFirst()
12878 ctxt->value->nodesetval->nodeTab[ctxt->value-> in xmlXPathCompOpEvalLast()
13007 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEvalFilterFirst()
13009 ctxt->value->nodesetval->nodeTab[0] = in xmlXPathCompOpEvalFilterFirst()
13010 ctxt->value->nodesetval->nodeTab[ctxt-> in xmlXPathCompOpEvalFilterFirst()
13016 *first = *(ctxt->value->nodesetval->nodeTab); in xmlXPathCompOpEvalFilterFirst()
13185 ctxt->context->node = oldset->nodeTab[i]; in xmlXPathCompOpEvalFilterFirst()
13186 if ((oldset->nodeTab[i]->type != XML_NAMESPACE_DECL) && in xmlXPathCompOpEvalFilterFirst()
13187 (oldset->nodeTab[i]->doc != NULL)) in xmlXPathCompOpEvalFilterFirst()
13188 ctxt->context->doc = oldset->nodeTab[i]->doc; in xmlXPathCompOpEvalFilterFirst()
13214 if (xmlXPathNodeSetAdd(newset, oldset->nodeTab[i]) < 0) in xmlXPathCompOpEvalFilterFirst()
13238 *first = *(newset->nodeTab); in xmlXPathCompOpEvalFilterFirst()
13697 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEval()
13699 ctxt->value->nodesetval->nodeTab[0] = in xmlXPathCompOpEval()
13700 ctxt->value->nodesetval->nodeTab[ctxt-> in xmlXPathCompOpEval()
13894 ctxt->context->node = oldset->nodeTab[i]; in xmlXPathCompOpEval()
13895 if ((oldset->nodeTab[i]->type != XML_NAMESPACE_DECL) && in xmlXPathCompOpEval()
13896 (oldset->nodeTab[i]->doc != NULL)) in xmlXPathCompOpEval()
13897 ctxt->context->doc = oldset->nodeTab[i]->doc; in xmlXPathCompOpEval()
13935 if (xmlXPathNodeSetAdd(newset, oldset->nodeTab[i]) in xmlXPathCompOpEval()
14098 ctxt->context->node = oldset->nodeTab[i]; in xmlXPathCompOpEval()
14117 xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], in xmlXPathCompOpEval()