• Home
  • Raw
  • Download

Lines Matching refs:nodeNr

1309 	fprintf(output, "Set contains %d nodes:\n", cur->nodeNr);  in xmlXPathDebugDumpNodeSet()
1310 for (i = 0;i < cur->nodeNr;i++) { in xmlXPathDebugDumpNodeSet()
1327 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) { in xmlXPathDebugDumpValueTree()
2405 ret->nodesetval->nodeNr = 1; in xmlXPathCacheNewNodeSet()
3431 len = set->nodeNr; in xmlXPathNodeSetSort()
3454 libxml_domnode_tim_sort(set->nodeTab, set->nodeNr); in xmlXPathNodeSetSort()
3551 ret->nodeTab[ret->nodeNr++] = in xmlXPathNodeSetCreate()
3554 ret->nodeTab[ret->nodeNr++] = val; in xmlXPathNodeSetCreate()
3605 for (i = 0; i < cur->nodeNr; i++) { in xmlXPathNodeSetContains()
3619 for (i = 0; i < cur->nodeNr; i++) { in xmlXPathNodeSetContains()
3651 for (i = 0;i < cur->nodeNr;i++) { in xmlXPathNodeSetAddNs()
3672 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAddNs()
3688 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns); in xmlXPathNodeSetAddNs()
3711 for (i = 0;i < cur->nodeNr;i++) in xmlXPathNodeSetAdd()
3727 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAdd()
3746 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAdd()
3749 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAdd()
3781 } else if (cur->nodeNr == cur->nodeMax) { in xmlXPathNodeSetAddUnique()
3800 cur->nodeTab[cur->nodeNr++] = in xmlXPathNodeSetAddUnique()
3803 cur->nodeTab[cur->nodeNr++] = val; in xmlXPathNodeSetAddUnique()
3840 val1 = xmlXPathNodeSetCreateSize(val2->nodeNr); in xmlXPathNodeSetMerge()
3843 if (val2->nodeNr != 0) { in xmlXPathNodeSetMerge()
3844 if (val2->nodeNr == 1) in xmlXPathNodeSetMerge()
3848 val2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3850 val1->nodeNr = val2->nodeNr; in xmlXPathNodeSetMerge()
3857 initNr = val1->nodeNr; in xmlXPathNodeSetMerge()
3859 for (i = 0;i < val2->nodeNr;i++) { in xmlXPathNodeSetMerge()
3897 } else if (val1->nodeNr == val1->nodeMax) { in xmlXPathNodeSetMerge()
3916 val1->nodeTab[val1->nodeNr++] = in xmlXPathNodeSetMerge()
3919 val1->nodeTab[val1->nodeNr++] = n2; in xmlXPathNodeSetMerge()
3947 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr); in xmlXPathNodeSetMergeAndClear()
3950 if (set2->nodeNr != 0) { in xmlXPathNodeSetMergeAndClear()
3952 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
3953 set1->nodeNr = set2->nodeNr; in xmlXPathNodeSetMergeAndClear()
3964 initNbSet1 = set1->nodeNr; in xmlXPathNodeSetMergeAndClear()
3965 for (i = 0;i < set2->nodeNr;i++) { in xmlXPathNodeSetMergeAndClear()
4008 } else if (set1->nodeNr >= set1->nodeMax) { in xmlXPathNodeSetMergeAndClear()
4027 set1->nodeTab[set1->nodeNr++] = in xmlXPathNodeSetMergeAndClear()
4030 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClear()
4035 set2->nodeNr = 0; in xmlXPathNodeSetMergeAndClear()
4062 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr); in xmlXPathNodeSetMergeAndClearNoDupls()
4065 if (set2->nodeNr != 0) { in xmlXPathNodeSetMergeAndClearNoDupls()
4067 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4068 set1->nodeNr = set2->nodeNr; in xmlXPathNodeSetMergeAndClearNoDupls()
4079 for (i = 0;i < set2->nodeNr;i++) { in xmlXPathNodeSetMergeAndClearNoDupls()
4096 } else if (set1->nodeNr >= set1->nodeMax) { in xmlXPathNodeSetMergeAndClearNoDupls()
4112 set1->nodeTab[set1->nodeNr++] = n2; in xmlXPathNodeSetMergeAndClearNoDupls()
4115 set2->nodeNr = 0; in xmlXPathNodeSetMergeAndClearNoDupls()
4136 for (i = 0;i < cur->nodeNr;i++) in xmlXPathNodeSetDel()
4139 if (i >= cur->nodeNr) { /* not found */ in xmlXPathNodeSetDel()
4150 cur->nodeNr--; in xmlXPathNodeSetDel()
4151 for (;i < cur->nodeNr;i++) in xmlXPathNodeSetDel()
4153 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetDel()
4166 if (val >= cur->nodeNr) return; in xmlXPathNodeSetRemove()
4170 cur->nodeNr--; in xmlXPathNodeSetRemove()
4171 for (;val < cur->nodeNr;val++) in xmlXPathNodeSetRemove()
4173 cur->nodeTab[cur->nodeNr] = NULL; in xmlXPathNodeSetRemove()
4189 for (i = 0;i < obj->nodeNr;i++) in xmlXPathFreeNodeSet()
4209 if ((set == NULL) || (set->nodeNr <= 0)) in xmlXPathNodeSetClear()
4215 for (i = 0; i < set->nodeNr; i++) { in xmlXPathNodeSetClear()
4222 set->nodeNr = 0; in xmlXPathNodeSetClear()
4237 if ((set == NULL) || (set->nodeNr <= 0) || (pos >= set->nodeNr)) in xmlXPathNodeSetClearFromPos()
4243 for (i = pos; i < set->nodeNr; i++) { in xmlXPathNodeSetClearFromPos()
4250 set->nodeNr = pos; in xmlXPathNodeSetClearFromPos()
4267 for (i = 0;i < obj->nodeNr;i++) { in xmlXPathFreeValueTree()
4298 if (obj->nodeNr == 0) { in xmlGenericErrorContextNodeSet()
4306 for (i = 0; i < obj->nodeNr; i++) { in xmlGenericErrorContextNodeSet()
4402 for (i = 1; i < val->nodeNr; ++i) { in xmlXPathNewNodeSetList()
5618 if (tmpset->nodeNr > 1) { in xmlXPathReleaseObject()
5622 for (i = 0; i < tmpset->nodeNr; i++) { in xmlXPathReleaseObject()
5630 } else if (tmpset->nodeNr == 1) { in xmlXPathReleaseObject()
5635 tmpset->nodeNr = 0; in xmlXPathReleaseObject()
5742 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL)) in xmlXPathCastNodeSetToString()
5745 if (ns->nodeNr > 1) in xmlXPathCastNodeSetToString()
6023 if ((ns == NULL) || (ns->nodeNr == 0)) in xmlXPathCastNodeSetToBoolean()
6488 for (i = 0;i < ns->nodeNr;i++) { in xmlXPathCompareNodeSetFloat()
6543 for (i = 0;i < ns->nodeNr;i++) { in xmlXPathCompareNodeSetString()
6614 if ((ns1 == NULL) || (ns1->nodeNr <= 0)) { in xmlXPathCompareNodeSets()
6619 if ((ns2 == NULL) || (ns2->nodeNr <= 0)) { in xmlXPathCompareNodeSets()
6625 values2 = (double *) xmlMalloc(ns2->nodeNr * sizeof(double)); in xmlXPathCompareNodeSets()
6632 for (i = 0;i < ns1->nodeNr;i++) { in xmlXPathCompareNodeSets()
6636 for (j = 0;j < ns2->nodeNr;j++) { in xmlXPathCompareNodeSets()
6740 if ((ns == NULL) || (ns->nodeNr <= 0) ) in xmlXPathEqualNodeSetString()
6743 for (i = 0; i < ns->nodeNr; i++) { in xmlXPathEqualNodeSetString()
6798 for (i=0;i<ns->nodeNr;i++) { in xmlXPathEqualNodeSetFloat()
6865 if ((ns1 == NULL) || (ns1->nodeNr <= 0)) in xmlXPathEqualNodeSets()
6867 if ((ns2 == NULL) || (ns2->nodeNr <= 0)) in xmlXPathEqualNodeSets()
6874 for (i = 0;i < ns1->nodeNr;i++) in xmlXPathEqualNodeSets()
6875 for (j = 0;j < ns2->nodeNr;j++) in xmlXPathEqualNodeSets()
6879 values1 = (xmlChar **) xmlMalloc(ns1->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6884 hashs1 = (unsigned int *) xmlMalloc(ns1->nodeNr * sizeof(unsigned int)); in xmlXPathEqualNodeSets()
6890 memset(values1, 0, ns1->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6891 values2 = (xmlChar **) xmlMalloc(ns2->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6898 hashs2 = (unsigned int *) xmlMalloc(ns2->nodeNr * sizeof(unsigned int)); in xmlXPathEqualNodeSets()
6906 memset(values2, 0, ns2->nodeNr * sizeof(xmlChar *)); in xmlXPathEqualNodeSets()
6907 for (i = 0;i < ns1->nodeNr;i++) { in xmlXPathEqualNodeSets()
6909 for (j = 0;j < ns2->nodeNr;j++) { in xmlXPathEqualNodeSets()
6931 for (i = 0;i < ns1->nodeNr;i++) in xmlXPathEqualNodeSets()
6934 for (j = 0;j < ns2->nodeNr;j++) in xmlXPathEqualNodeSets()
7189 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathEqualValues()
7274 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathNotEqualValues()
8554 (double) cur->nodesetval->nodeNr)); in xmlXPathCountFunction()
8556 if ((cur->nodesetval->nodeNr != 1) || in xmlXPathCountFunction()
8673 for (i = 0; i < obj->nodesetval->nodeNr; i++) { in xmlXPathIdFunction()
8726 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathLocalNameFunction()
8784 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNamespaceURIFunction()
8844 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNameFunction()
9628 if ((cur->nodesetval != NULL) && (cur->nodesetval->nodeNr != 0)) { in xmlXPathSumFunction()
9629 for (i = 0; i < cur->nodesetval->nodeNr; i++) { in xmlXPathSumFunction()
11730 for (i = 0; i < set->nodeNr; i++) { in xmlXPathCompOpEvalPredicate()
11879 for (i = 0; i < set->nodeNr; i++) { in xmlXPathCompOpEvalPositionalPredicate()
11953 set->nodeNr = 1; in xmlXPathCompOpEvalPositionalPredicate()
12240 (obj->nodesetval != NULL) ? obj->nodesetval->nodeNr : 0); in xmlXPathNodeCollectAndTest()
12248 if ((contextSeq == NULL) || (contextSeq->nodeNr <= 0)) { in xmlXPathNodeCollectAndTest()
12318 while (((contextIdx < contextSeq->nodeNr) || (contextNode != NULL)) && in xmlXPathNodeCollectAndTest()
12562 nbMatches += seq->nodeNr; in xmlXPathNodeCollectAndTest()
12572 if ((predOp != NULL) && (seq->nodeNr > 0)) { in xmlXPathNodeCollectAndTest()
12601 size = seq->nodeNr; in xmlXPathNodeCollectAndTest()
12621 } else if (seq->nodeNr > 0) { in xmlXPathNodeCollectAndTest()
12645 } else if (seq->nodeNr > 0) { in xmlXPathNodeCollectAndTest()
12676 if ((seq != NULL) && (seq->nodeNr == 0)) in xmlXPathNodeCollectAndTest()
12740 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalFirst()
12751 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalFirst()
12819 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalFirst()
12871 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalLast()
12875 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalLast()
12879 nodesetval->nodeNr - in xmlXPathCompOpEvalLast()
12892 && (ctxt->value->nodesetval->nodeNr >= 1)) { /* TODO: NOP ? */ in xmlXPathCompOpEvalLast()
12954 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalLast()
13008 (ctxt->value->nodesetval->nodeNr > 1)) { in xmlXPathCompOpEvalFilterFirst()
13013 nodeNr - in xmlXPathCompOpEvalFilterFirst()
13015 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEvalFilterFirst()
13153 if ((oldset == NULL) || (oldset->nodeNr == 0)) { in xmlXPathCompOpEvalFilterFirst()
13180 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEvalFilterFirst()
13199 ctxt->context->contextSize = oldset->nodeNr; in xmlXPathCompOpEvalFilterFirst()
13237 if (newset->nodeNr > 0) { in xmlXPathCompOpEvalFilterFirst()
13440 (arg2->nodesetval->nodeNr != 0))) in xmlXPathCompOpEval()
13663 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
13664 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEval()
13698 (ctxt->value->nodesetval->nodeNr > 1)) { in xmlXPathCompOpEval()
13703 nodeNr - in xmlXPathCompOpEval()
13705 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEval()
13839 if ((oldset == NULL) || (oldset->nodeNr == 0)) { in xmlXPathCompOpEval()
13889 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEval()
13908 ctxt->context->contextSize = oldset->nodeNr; in xmlXPathCompOpEval()
13982 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
14093 for (i = 0; i < oldset->nodeNr; i++) { in xmlXPathCompOpEval()
14466 nb_nodes, retObj->nodesetval->nodeNr); in xmlXPathRunStreamEval()
14591 return(res->nodesetval->nodeNr != 0); in xmlXPathEvalPredicate()
14635 return(res->nodesetval->nodeNr != 0); in xmlXPathEvaluatePredicateResult()