Lines Matching refs:nodesetval

1395 	    xmlXPathDebugDumpNodeSet(output, cur->nodesetval, depth);  in xmlXPathDebugDumpObject()
1399 xmlXPathDebugDumpValueTree(output, cur->nodesetval, depth); in xmlXPathDebugDumpObject()
2196 if (obj->nodesetval != NULL) { in xmlXPathCacheFreeObjectList()
2197 if (obj->nodesetval->nodeTab != NULL) in xmlXPathCacheFreeObjectList()
2198 xmlFree(obj->nodesetval->nodeTab); in xmlXPathCacheFreeObjectList()
2199 xmlFree(obj->nodesetval); in xmlXPathCacheFreeObjectList()
2307 ret->nodesetval = val; in xmlXPathCacheWrapNodeSet()
2399 if ((ret->nodesetval->nodeMax == 0) || in xmlXPathCacheNewNodeSet()
2402 xmlXPathNodeSetAddUnique(ret->nodesetval, val); in xmlXPathCacheNewNodeSet()
2404 ret->nodesetval->nodeTab[0] = val; in xmlXPathCacheNewNodeSet()
2405 ret->nodesetval->nodeNr = 1; in xmlXPathCacheNewNodeSet()
2425 ret->nodesetval = xmlXPathNodeSetCreate(val); in xmlXPathCacheNewNodeSet()
2426 if (ret->nodesetval == NULL) { in xmlXPathCacheNewNodeSet()
2666 res = xmlXPathCastNodeSetToString(val->nodesetval); in xmlXPathCacheConvertString()
2709 xmlXPathNodeSetMerge(NULL, val->nodesetval))); in xmlXPathCacheObjectCopy()
2985 ret = obj->nodesetval; in xmlXPathPopNodeSet()
2991 obj->nodesetval = NULL; in xmlXPathPopNodeSet()
4343 ret->nodesetval = xmlXPathNodeSetCreate(val); in xmlXPathNewNodeSet()
4373 ret->nodesetval = xmlXPathNodeSetCreate(val); in xmlXPathNewValueTree()
4403 if (xmlXPathNodeSetAddUnique(ret->nodesetval, val->nodeTab[i]) in xmlXPathNewNodeSetList()
4431 ret->nodesetval = val; in xmlXPathWrapNodeSet()
5424 if ((val->nodesetval != NULL) && in xmlXPathObjectCopy()
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()
5444 ret->nodesetval = xmlXPathNodeSetCreate((xmlNodePtr) top); in xmlXPathObjectCopy()
5446 ret->nodesetval = xmlXPathNodeSetCreate(NULL); in xmlXPathObjectCopy()
5451 ret->nodesetval = xmlXPathNodeSetMerge(NULL, val->nodesetval); in xmlXPathObjectCopy()
5488 xmlXPathFreeNodeSet(obj->nodesetval); in xmlXPathFreeObject()
5493 if (obj->nodesetval != NULL) in xmlXPathFreeObject()
5494 xmlXPathFreeValueTree(obj->nodesetval); in xmlXPathFreeObject()
5496 if (obj->nodesetval != NULL) in xmlXPathFreeObject()
5497 xmlXPathFreeNodeSet(obj->nodesetval); in xmlXPathFreeObject()
5541 if (obj->nodesetval != NULL) { in xmlXPathReleaseObject()
5549 xmlXPathFreeValueTree(obj->nodesetval); in xmlXPathReleaseObject()
5550 obj->nodesetval = NULL; in xmlXPathReleaseObject()
5551 } else if ((obj->nodesetval->nodeMax <= 40) && in xmlXPathReleaseObject()
5558 xmlXPathFreeNodeSet(obj->nodesetval); in xmlXPathReleaseObject()
5559 obj->nodesetval = NULL; in xmlXPathReleaseObject()
5609 if (obj->nodesetval != NULL) { in xmlXPathReleaseObject()
5610 xmlNodeSetPtr tmpset = obj->nodesetval; in xmlXPathReleaseObject()
5637 obj->nodesetval = tmpset; in xmlXPathReleaseObject()
5647 if (obj->nodesetval != NULL) in xmlXPathReleaseObject()
5648 xmlXPathFreeNodeSet(obj->nodesetval); in xmlXPathReleaseObject()
5774 ret = xmlXPathCastNodeSetToString(val->nodesetval); in xmlXPathCastToString()
5820 res = xmlXPathCastNodeSetToString(val->nodesetval); in xmlXPathConvertString()
5939 ret = xmlXPathCastNodeSetToNumber(val->nodesetval); in xmlXPathCastToNumber()
6051 ret = xmlXPathCastNodeSetToBoolean(val->nodesetval); in xmlXPathCastToBoolean()
6486 ns = arg->nodesetval; in xmlXPathCompareNodeSetFloat()
6541 ns = arg->nodesetval; in xmlXPathCompareNodeSetString()
6611 ns1 = arg1->nodesetval; in xmlXPathCompareNodeSets()
6612 ns2 = arg2->nodesetval; in xmlXPathCompareNodeSets()
6735 ns = arg->nodesetval; in xmlXPathEqualNodeSetString()
6796 ns = arg->nodesetval; in xmlXPathEqualNodeSetFloat()
6862 ns1 = arg1->nodesetval; in xmlXPathEqualNodeSets()
6863 ns2 = arg2->nodesetval; in xmlXPathEqualNodeSets()
7188 if ((arg1->nodesetval == NULL) || in xmlXPathEqualValues()
7189 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathEqualValues()
7273 if ((arg1->nodesetval == NULL) || in xmlXPathNotEqualValues()
7274 (arg1->nodesetval->nodeNr == 0)) ret = 0; in xmlXPathNotEqualValues()
8550 if ((cur == NULL) || (cur->nodesetval == NULL)) in xmlXPathCountFunction()
8554 (double) cur->nodesetval->nodeNr)); in xmlXPathCountFunction()
8556 if ((cur->nodesetval->nodeNr != 1) || in xmlXPathCountFunction()
8557 (cur->nodesetval->nodeTab == NULL)) { in xmlXPathCountFunction()
8563 tmp = cur->nodesetval->nodeTab[0]; in xmlXPathCountFunction()
8672 if (obj->nodesetval != NULL) { in xmlXPathIdFunction()
8673 for (i = 0; i < obj->nodesetval->nodeNr; i++) { in xmlXPathIdFunction()
8675 xmlXPathCastNodeToString(obj->nodesetval->nodeTab[i]); in xmlXPathIdFunction()
8726 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathLocalNameFunction()
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()
8784 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNamespaceURIFunction()
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()
8844 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) { in xmlXPathNameFunction()
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()
9628 if ((cur->nodesetval != NULL) && (cur->nodesetval->nodeNr != 0)) { in xmlXPathSumFunction()
9629 for (i = 0; i < cur->nodesetval->nodeNr; i++) { in xmlXPathSumFunction()
9630 res += xmlXPathCastNodeToNumber(cur->nodesetval->nodeTab[i]); in xmlXPathSumFunction()
11443 else if (ctxt->value->nodesetval == NULL) in xmlXPathCompStep()
11446 xmlGenericErrorContextNodeSet(stdout, ctxt->value->nodesetval); in xmlXPathCompStep()
11473 else if (ctxt->value->nodesetval == NULL) in xmlXPathCompStep()
11477 ctxt->value->nodesetval); in xmlXPathCompStep()
11759 if (xmlXPathNodeSetAddUnique(contextObj->nodesetval, in xmlXPathCompOpEvalPredicate()
11793 xmlXPathNodeSetClear(contextObj->nodesetval, hasNsNodes); in xmlXPathCompOpEvalPredicate()
11911 if (xmlXPathNodeSetAddUnique(contextObj->nodesetval, in xmlXPathCompOpEvalPositionalPredicate()
11988 xmlXPathNodeSetClear(contextObj->nodesetval, hasNsNodes); in xmlXPathCompOpEvalPositionalPredicate()
12245 (obj->nodesetval != NULL) ? obj->nodesetval->nodeNr : 0); in xmlXPathNodeCollectAndTest()
12252 contextSeq = obj->nodesetval; in xmlXPathNodeCollectAndTest()
12755 && (ctxt->value->nodesetval != NULL) in xmlXPathCompOpEvalFirst()
12756 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalFirst()
12767 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalFirst()
12768 xmlXPathNodeSetSort(ctxt->value->nodesetval); in xmlXPathCompOpEvalFirst()
12769 *first = ctxt->value->nodesetval->nodeTab[0]; in xmlXPathCompOpEvalFirst()
12781 arg1->nodesetval = xmlXPathNodeSetMerge(arg1->nodesetval, in xmlXPathCompOpEvalFirst()
12782 arg2->nodesetval); in xmlXPathCompOpEvalFirst()
12834 && (ctxt->value->nodesetval != NULL) in xmlXPathCompOpEvalFirst()
12835 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalFirst()
12836 xmlXPathNodeSetSort(ctxt->value->nodesetval); in xmlXPathCompOpEvalFirst()
12886 && (ctxt->value->nodesetval != NULL) in xmlXPathCompOpEvalLast()
12887 && (ctxt->value->nodesetval->nodeNr >= 1)) { in xmlXPathCompOpEvalLast()
12891 if (ctxt->value->nodesetval->nodeNr > 1) in xmlXPathCompOpEvalLast()
12892 xmlXPathNodeSetSort(ctxt->value->nodesetval); in xmlXPathCompOpEvalLast()
12894 ctxt->value->nodesetval->nodeTab[ctxt->value-> in xmlXPathCompOpEvalLast()
12895 nodesetval->nodeNr - in xmlXPathCompOpEvalLast()
12907 && (ctxt->value->nodesetval != NULL) in xmlXPathCompOpEvalLast()
12908 && (ctxt->value->nodesetval->nodeNr >= 1)) { /* TODO: NOP ? */ in xmlXPathCompOpEvalLast()
12916 arg1->nodesetval = xmlXPathNodeSetMerge(arg1->nodesetval, in xmlXPathCompOpEvalLast()
12917 arg2->nodesetval); in xmlXPathCompOpEvalLast()
12969 && (ctxt->value->nodesetval != NULL) in xmlXPathCompOpEvalLast()
12970 && (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEvalLast()
12971 xmlXPathNodeSetSort(ctxt->value->nodesetval); in xmlXPathCompOpEvalLast()
13022 (ctxt->value->nodesetval != NULL) && in xmlXPathCompOpEvalFilterFirst()
13023 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEvalFilterFirst()
13024 (ctxt->value->nodesetval->nodeNr > 1)) { in xmlXPathCompOpEvalFilterFirst()
13025 ctxt->value->nodesetval->nodeTab[0] = in xmlXPathCompOpEvalFilterFirst()
13026 ctxt->value->nodesetval->nodeTab[ctxt-> in xmlXPathCompOpEvalFilterFirst()
13028 nodesetval-> in xmlXPathCompOpEvalFilterFirst()
13031 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEvalFilterFirst()
13032 *first = *(ctxt->value->nodesetval->nodeTab); in xmlXPathCompOpEvalFilterFirst()
13093 if (xmlXPathNodeSetAddUnique(tmp->nodesetval, in xmlXPathCompOpEvalFilterFirst()
13123 xmlXPathNodeSetClear(tmp->nodesetval, 1); in xmlXPathCompOpEvalFilterFirst()
13163 oldset = obj->nodesetval; in xmlXPathCompOpEvalFilterFirst()
13209 if (xmlXPathNodeSetAddUnique(tmp->nodesetval, in xmlXPathCompOpEvalFilterFirst()
13246 xmlXPathNodeSetClear(tmp->nodesetval, 1); in xmlXPathCompOpEvalFilterFirst()
13454 if ((arg1->nodesetval == NULL) || in xmlXPathCompOpEval()
13455 ((arg2->nodesetval != NULL) && in xmlXPathCompOpEval()
13456 (arg2->nodesetval->nodeNr != 0))) in xmlXPathCompOpEval()
13458 arg1->nodesetval = xmlXPathNodeSetMerge(arg1->nodesetval, in xmlXPathCompOpEval()
13459 arg2->nodesetval); in xmlXPathCompOpEval()
13678 (ctxt->value->nodesetval != NULL) && in xmlXPathCompOpEval()
13679 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
13680 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEval()
13712 (ctxt->value->nodesetval != NULL) && in xmlXPathCompOpEval()
13713 (ctxt->value->nodesetval->nodeTab != NULL) && in xmlXPathCompOpEval()
13714 (ctxt->value->nodesetval->nodeNr > 1)) { in xmlXPathCompOpEval()
13715 ctxt->value->nodesetval->nodeTab[0] = in xmlXPathCompOpEval()
13716 ctxt->value->nodesetval->nodeTab[ctxt-> in xmlXPathCompOpEval()
13718 nodesetval-> in xmlXPathCompOpEval()
13721 ctxt->value->nodesetval->nodeNr = 1; in xmlXPathCompOpEval()
13849 oldset = obj->nodesetval; in xmlXPathCompOpEval()
13918 if (xmlXPathNodeSetAddUnique(tmp->nodesetval, in xmlXPathCompOpEval()
13964 xmlXPathNodeSetClear(tmp->nodesetval, 1); in xmlXPathCompOpEval()
13997 (ctxt->value->nodesetval != NULL) && in xmlXPathCompOpEval()
13998 (ctxt->value->nodesetval->nodeNr > 1)) in xmlXPathCompOpEval()
14000 xmlXPathNodeSetSort(ctxt->value->nodesetval); in xmlXPathCompOpEval()
14108 oldset = obj->nodesetval; in xmlXPathCompOpEval()
14320 xmlXPathNodeSetAddUnique((*resultSeq)->nodesetval, in xmlXPathRunStreamEval()
14326 xmlXPathNodeSetAddUnique((*resultSeq)->nodesetval, ctxt->node); in xmlXPathRunStreamEval()
14386 xmlXPathNodeSetAddUnique((*resultSeq)->nodesetval, cur); in xmlXPathRunStreamEval()
14414 if (xmlXPathNodeSetAddUnique((*resultSeq)->nodesetval, cur) in xmlXPathRunStreamEval()
14487 nb_nodes, retObj->nodesetval->nodeNr); in xmlXPathRunStreamEval()
14610 if (res->nodesetval == NULL) in xmlXPathEvalPredicate()
14612 return(res->nodesetval->nodeNr != 0); in xmlXPathEvalPredicate()
14654 if (res->nodesetval == NULL) in xmlXPathEvaluatePredicateResult()
14656 return(res->nodesetval->nodeNr != 0); in xmlXPathEvaluatePredicateResult()