Lines Matching refs:nodeNr

1300 	fprintf(output, "Set contains %d nodes:\n", cur->nodeNr);  in xmlXPathDebugDumpNodeSet()
1301 for (i = 0;i < cur->nodeNr;i++) { in xmlXPathDebugDumpNodeSet()
1318 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) { in xmlXPathDebugDumpValueTree()
2402 ret->nodesetval->nodeNr = 1; in xmlXPathCacheNewNodeSet()
3430 len = set->nodeNr; in xmlXPathNodeSetSort()
3453 libxml_domnode_tim_sort(set->nodeTab, set->nodeNr); in xmlXPathNodeSetSort()
3550 ret->nodeTab[ret->nodeNr++] = in xmlXPathNodeSetCreate()
3553 ret->nodeTab[ret->nodeNr++] = val; in xmlXPathNodeSetCreate()
3604 for (i = 0; i < cur->nodeNr; i++) { in xmlXPathNodeSetContains()
3618 for (i = 0; i < cur->nodeNr; i++) { in xmlXPathNodeSetContains()
3650 for (i = 0;i < cur->nodeNr;i++) { in xmlXPathNodeSetAddNs()
3671 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAddNs()
3687 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns); in xmlXPathNodeSetAddNs()
3710 for (i = 0;i < cur->nodeNr;i++) in xmlXPathNodeSetAdd()
3726 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAdd()
3745 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAdd()
3748 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAdd()
3780 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAddUnique()
3799 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAddUnique()
3802 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAddUnique()
3839 val1 = xmlXPathNodeSetCreateSize(val2->nodeNr); in xmlXPathNodeSetMerge()
3842 if (val2->nodeNr != 0) { in xmlXPathNodeSetMerge()
3843 if (val2->nodeNr == 1) in xmlXPathNodeSetMerge()
3847 val2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3849 val1->nodeNr = val2->nodeNr; in xmlXPathNodeSetMerge()
3856 initNr = val1->nodeNr; in xmlXPathNodeSetMerge()
3858 for (i = 0;i < val2->nodeNr;i++) { in xmlXPathNodeSetMerge()
3896 } else if (val1->nodeNr == val1->nodeMax) { in xmlXPathNodeSetMerge()
3915 val1->nodeTab[val1->nodeNr++] = in xmlXPathNodeSetMerge()
3918 val1->nodeTab[val1->nodeNr++] = n2; in xmlXPathNodeSetMerge()
3946 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr); in xmlXPathNodeSetMergeAndClear()
3949 if (set2->nodeNr != 0) { in xmlXPathNodeSetMergeAndClear()
3951 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
3952 set1->nodeNr = set2->nodeNr; in xmlXPathNodeSetMergeAndClear()
3963 initNbSet1 = set1->nodeNr; in xmlXPathNodeSetMergeAndClear()
3964 for (i = 0;i < set2->nodeNr;i++) { in xmlXPathNodeSetMergeAndClear()
4007 } else if (set1->nodeNr >= set1->nodeMax) { in xmlXPathNodeSetMergeAndClear()
4023 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClear()
4028 set2->nodeNr = 0; in xmlXPathNodeSetMergeAndClear()
4055 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr); in xmlXPathNodeSetMergeAndClearNoDupls()
4058 if (set2->nodeNr != 0) { in xmlXPathNodeSetMergeAndClearNoDupls()
4060 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4061 set1->nodeNr = set2->nodeNr; in xmlXPathNodeSetMergeAndClearNoDupls()
4072 for (i = 0;i < set2->nodeNr;i++) { in xmlXPathNodeSetMergeAndClearNoDupls()
4089 } else if (set1->nodeNr >= set1->nodeMax) { in xmlXPathNodeSetMergeAndClearNoDupls()
4105 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClearNoDupls()
4108 set2->nodeNr = 0; in xmlXPathNodeSetMergeAndClearNoDupls()
4129 for (i = 0;i < cur->nodeNr;i++) in xmlXPathNodeSetDel()
4132 if (i >= cur->nodeNr) { /* not found */ in xmlXPathNodeSetDel()
4143 cur->nodeNr--; in xmlXPathNodeSetDel()
4144 for (;i < cur->nodeNr;i++) in xmlXPathNodeSetDel()
4146 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetDel()
4159 if (val >= cur->nodeNr) return; in xmlXPathNodeSetRemove()
4163 cur->nodeNr--; in xmlXPathNodeSetRemove()
4164 for (;val < cur->nodeNr;val++) in xmlXPathNodeSetRemove()
4166 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetRemove()
4182 for (i = 0;i < obj->nodeNr;i++) in xmlXPathFreeNodeSet()
4203 if ((set == NULL) || (pos >= set->nodeNr)) in xmlXPathNodeSetClearFromPos()
4209 for (i = pos; i < set->nodeNr; i++) { in xmlXPathNodeSetClearFromPos()
4216 set->nodeNr = pos; in xmlXPathNodeSetClearFromPos()
4247 if ((set == NULL) || (set->nodeNr <= 1)) in xmlXPathNodeSetKeepLast()
4249 for (i = 0; i < set->nodeNr - 1; i++) { in xmlXPathNodeSetKeepLast()
4255 set->nodeTab[0] = set->nodeTab[set->nodeNr-1]; in xmlXPathNodeSetKeepLast()
4256 set->nodeNr = 1; in xmlXPathNodeSetKeepLast()
4273 for (i = 0;i < obj->nodeNr;i++) { in xmlXPathFreeValueTree()
4304 if (obj->nodeNr == 0) { in xmlGenericErrorContextNodeSet()
4312 for (i = 0; i < obj->nodeNr; i++) { in xmlGenericErrorContextNodeSet()
4408 for (i = 1; i < val->nodeNr; ++i) { in xmlXPathNewNodeSetList()
5632 if (tmpset->nodeNr > 1) { in xmlXPathReleaseObject()
5636 for (i = 0; i < tmpset->nodeNr; i++) { in xmlXPathReleaseObject()
5644 } else if (tmpset->nodeNr == 1) { in xmlXPathReleaseObject()
5649 tmpset->nodeNr = 0; in xmlXPathReleaseObject()
5757 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL)) in xmlXPathCastNodeSetToString()
5760 if (ns->nodeNr > 1) in xmlXPathCastNodeSetToString()
6038 if ((ns == NULL) || (ns->nodeNr == 0)) in xmlXPathCastNodeSetToBoolean()
6507 for (i = 0;i < ns->nodeNr;i++) { in xmlXPathCompareNodeSetFloat()
6562 for (i = 0;i < ns->nodeNr;i++) { in xmlXPathCompareNodeSetString()
6633 if ((ns1 == NULL) || (ns1->nodeNr <= 0)) { in xmlXPathCompareNodeSets()
6638 if ((ns2 == NULL) || (ns2->nodeNr <= 0)) { in xmlXPathCompareNodeSets()
6644 values2 = (double *) xmlMalloc(ns2->nodeNr * sizeof(double)); in xmlXPathCompareNodeSets()
6651 for (i = 0;i < ns1->nodeNr;i++) { in xmlXPathCompareNodeSets()
6655 for (j = 0;j < ns2->nodeNr;j++) { in xmlXPathCompareNodeSets()
6765 if ((ns == NULL) || (ns->nodeNr <= 0) ) in xmlXPathEqualNodeSetString()
6768 for (i = 0; i < ns->nodeNr; i++) { in xmlXPathEqualNodeSetString()
6823 for (i=0;i<ns->nodeNr;i++) { in xmlXPathEqualNodeSetFloat()
6890 if ((ns1 == NULL) || (ns1->nodeNr <= 0)) in xmlXPathEqualNodeSets()
6892 if ((ns2 == NULL) || (ns2->nodeNr <= 0)) in xmlXPathEqualNodeSets()
6899 for (i = 0;i < ns1->nodeNr;i++) in xmlXPathEqualNodeSets()
6900 for (j = 0;j < ns2->nodeNr;j++) in xmlXPathEqualNodeSets()
6904 values1 = (xmlChar **) xmlMalloc(ns1->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6909 hashs1 = (unsigned int *) xmlMalloc(ns1->nodeNr * sizeof(unsigned int)); in xmlXPathEqualNodeSets()
6915 memset(values1, 0, ns1->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6916 values2 = (xmlChar **) xmlMalloc(ns2->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6923 hashs2 = (unsigned int *) xmlMalloc(ns2->nodeNr * sizeof(unsigned int)); in xmlXPathEqualNodeSets()
6931 memset(values2, 0, ns2->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6932 for (i = 0;i < ns1->nodeNr;i++) { in xmlXPathEqualNodeSets()
6934 for (j = 0;j < ns2->nodeNr;j++) { in xmlXPathEqualNodeSets()
6956 for (i = 0;i < ns1->nodeNr;i++) in xmlXPathEqualNodeSets()
6959 for (j = 0;j < ns2->nodeNr;j++) in xmlXPathEqualNodeSets()
7214 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathEqualValues()
7299 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathNotEqualValues()
8567 (double) cur->nodesetval->nodeNr)); in xmlXPathCountFunction()
8569 if ((cur->nodesetval->nodeNr != 1) || in xmlXPathCountFunction()
8686 for (i = 0; i < obj->nodesetval->nodeNr; i++) { in xmlXPathIdFunction()
8739 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathLocalNameFunction()
8797 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNamespaceURIFunction()
8857 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNameFunction()
9641 if ((cur->nodesetval != NULL) && (cur->nodesetval->nodeNr != 0)) { in xmlXPathSumFunction()
9642 for (i = 0; i < cur->nodesetval->nodeNr; i++) { in xmlXPathSumFunction()
11708 for (i = 0; i < set->nodeNr; i++) { in xmlXPathCompOpEvalPredicate()
11860 for (i = 0; i < set->nodeNr; i++) { in xmlXPathCompOpEvalPositionalPredicate()
11934 set->nodeNr = 1; in xmlXPathCompOpEvalPositionalPredicate()
12222 (obj->nodesetval != NULL) ? obj->nodesetval->nodeNr : 0); in xmlXPathNodeCollectAndTest()
12230 if ((contextSeq == NULL) || (contextSeq->nodeNr <= 0)) { in xmlXPathNodeCollectAndTest()
12300 while (((contextIdx < contextSeq->nodeNr) || (contextNode != NULL)) && in xmlXPathNodeCollectAndTest()
12547 nbMatches += seq->nodeNr; in xmlXPathNodeCollectAndTest()
12557 if ((predOp != NULL) && (seq->nodeNr > 0)) { in xmlXPathNodeCollectAndTest()
12586 size = seq->nodeNr; in xmlXPathNodeCollectAndTest()
12606 } else if (seq->nodeNr > 0) { in xmlXPathNodeCollectAndTest()
12630 } else if (seq->nodeNr > 0) { in xmlXPathNodeCollectAndTest()
12661 if ((seq != NULL) && (seq->nodeNr == 0)) in xmlXPathNodeCollectAndTest()
12733 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalFirst()
12744 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalFirst()
12807 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalFirst()
12851 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalLast()
12855 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalLast()
12859 nodesetval->nodeNr - in xmlXPathCompOpEvalLast()
12868 && (ctxt->value->nodesetval->nodeNr >= 1)) { /* TODO: NOP ? */ in xmlXPathCompOpEvalLast()
12925 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalLast()
12980 (ctxt->value->nodesetval->nodeNr > 1)) { in xmlXPathCompOpEvalFilterFirst()
13106 (ctxt->value->nodesetval->nodeNr != 0)) { in xmlXPathCompOpEvalFilterFirst()
13125 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEvalFilterFirst()
13144 ctxt->context->contextSize = oldset->nodeNr; in xmlXPathCompOpEvalFilterFirst()
13180 if (newset->nodeNr > 0) { in xmlXPathCompOpEvalFilterFirst()
13324 (arg2->nodesetval->nodeNr != 0))) in xmlXPathCompOpEval()
13523 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
13559 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
13676 (ctxt->value->nodesetval->nodeNr != 0)) { in xmlXPathCompOpEval()
13716 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEval()
13735 ctxt->context->contextSize = oldset->nodeNr; in xmlXPathCompOpEval()
13806 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
13914 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEval()
14286 nb_nodes, retObj->nodesetval->nodeNr); in xmlXPathRunStreamEval()
14411 return(res->nodesetval->nodeNr != 0); in xmlXPathEvalPredicate()
14455 return(res->nodesetval->nodeNr != 0); in xmlXPathEvaluatePredicateResult()