Lines Matching refs:nodeNr
937 fprintf(output, "Set contains %d nodes:\n", cur->nodeNr);
938 for (i = 0;i < cur->nodeNr;i++) {
955 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) {
2033 ret->nodesetval->nodeNr = 1;
3286 len = set->nodeNr;
3403 ret->nodeTab[ret->nodeNr++] =
3406 ret->nodeTab[ret->nodeNr++] = val;
3457 for (i = 0; i < cur->nodeNr; i++) {
3471 for (i = 0; i < cur->nodeNr; i++) {
3501 for (i = 0;i < cur->nodeNr;i++) {
3522 } else if (cur->nodeNr == cur->nodeMax) {
3534 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns);
3559 for (i = 0;i < cur->nodeNr;i++)
3575 } else if (cur->nodeNr == cur->nodeMax) {
3590 cur->nodeTab[cur->nodeNr++] =
3593 cur->nodeTab[cur->nodeNr++] = val;
3627 } else if (cur->nodeNr == cur->nodeMax) {
3642 cur->nodeTab[cur->nodeNr++] =
3645 cur->nodeTab[cur->nodeNr++] = val;
3681 val1 = xmlXPathNodeSetCreateSize(val2->nodeNr);
3684 if (val2->nodeNr != 0) {
3685 if (val2->nodeNr == 1)
3689 val2->nodeNr * sizeof(xmlNodePtr));
3691 val1->nodeNr = val2->nodeNr;
3698 initNr = val1->nodeNr;
3700 for (i = 0;i < val2->nodeNr;i++) {
3738 nodeNr == val1->nodeMax) {
3753 val1->nodeTab[val1->nodeNr++] =
3756 val1->nodeTab[val1->nodeNr++] = n2;
3786 for (i = 0;i < val2->nodeNr;i++) {
3800 } else if (val1->nodeNr == val1->nodeMax) {
3815 val1->nodeTab[val1->nodeNr++] =
3818 val1->nodeTab[val1->nodeNr++] = val2->nodeTab[i];
3846 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr);
3849 if (set2->nodeNr != 0) {
3851 set2->nodeNr * sizeof(xmlNodePtr));
3852 set1->nodeNr = set2->nodeNr;
3863 initNbSet1 = set1->nodeNr;
3864 for (i = 0;i < set2->nodeNr;i++) {
3907 } else if (set1->nodeNr >= set1->nodeMax) {
3922 set1->nodeTab[set1->nodeNr++] =
3925 set1->nodeTab[set1->nodeNr++] = n2;
3930 set2->nodeNr = 0;
3957 set1 = xmlXPathNodeSetCreateSize(set2->nodeNr);
3960 if (set2->nodeNr != 0) {
3962 set2->nodeNr * sizeof(xmlNodePtr));
3963 set1->nodeNr = set2->nodeNr;
3974 for (i = 0;i < set2->nodeNr;i++) {
3991 } else if (set1->nodeNr >= set1->nodeMax) {
4003 set1->nodeTab[set1->nodeNr++] = n2;
4006 set2->nodeNr = 0;
4027 for (i = 0;i < cur->nodeNr;i++)
4030 if (i >= cur->nodeNr) { /* not found */
4041 cur->nodeNr--;
4042 for (;i < cur->nodeNr;i++)
4044 cur->nodeTab[cur->nodeNr] = NULL;
4057 if (val >= cur->nodeNr) return;
4061 cur->nodeNr--;
4062 for (;val < cur->nodeNr;val++)
4064 cur->nodeTab[cur->nodeNr] = NULL;
4080 for (i = 0;i < obj->nodeNr;i++)
4100 if ((set == NULL) || (set->nodeNr <= 0))
4106 for (i = 0; i < set->nodeNr; i++) {
4113 set->nodeNr = 0;
4128 if ((set == NULL) || (set->nodeNr <= 0) || (pos >= set->nodeNr))
4134 for (i = pos; i < set->nodeNr; i++) {
4141 set->nodeNr = pos;
4158 for (i = 0;i < obj->nodeNr;i++) {
4189 if (obj->nodeNr == 0) {
4197 for (i = 0; i < obj->nodeNr; i++) {
4293 for (i = 1; i < val->nodeNr; ++i)
5497 if (tmpset->nodeNr > 1) {
5501 for (i = 0; i < tmpset->nodeNr; i++) {
5509 } else if (tmpset->nodeNr == 1) {
5514 tmpset->nodeNr = 0;
5621 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL))
5624 if (ns->nodeNr > 1)
5902 if ((ns == NULL) || (ns->nodeNr == 0))
6366 for (i = 0;i < ns->nodeNr;i++) {
6421 for (i = 0;i < ns->nodeNr;i++) {
6492 if ((ns1 == NULL) || (ns1->nodeNr <= 0)) {
6497 if ((ns2 == NULL) || (ns2->nodeNr <= 0)) {
6503 values2 = (double *) xmlMalloc(ns2->nodeNr * sizeof(double));
6510 for (i = 0;i < ns1->nodeNr;i++) {
6514 for (j = 0;j < ns2->nodeNr;j++) {
6618 if ((ns == NULL) || (ns->nodeNr <= 0) )
6621 for (i = 0; i < ns->nodeNr; i++) {
6676 for (i=0;i<ns->nodeNr;i++) {
6743 if ((ns1 == NULL) || (ns1->nodeNr <= 0))
6745 if ((ns2 == NULL) || (ns2->nodeNr <= 0))
6752 for (i = 0;i < ns1->nodeNr;i++)
6753 for (j = 0;j < ns2->nodeNr;j++)
6757 values1 = (xmlChar **) xmlMalloc(ns1->nodeNr * sizeof(xmlChar *));
6762 hashs1 = (unsigned int *) xmlMalloc(ns1->nodeNr * sizeof(unsigned int));
6768 memset(values1, 0, ns1->nodeNr * sizeof(xmlChar *));
6769 values2 = (xmlChar **) xmlMalloc(ns2->nodeNr * sizeof(xmlChar *));
6776 hashs2 = (unsigned int *) xmlMalloc(ns2->nodeNr * sizeof(unsigned int));
6784 memset(values2, 0, ns2->nodeNr * sizeof(xmlChar *));
6785 for (i = 0;i < ns1->nodeNr;i++) {
6787 for (j = 0;j < ns2->nodeNr;j++) {
6809 for (i = 0;i < ns1->nodeNr;i++)
6812 for (j = 0;j < ns2->nodeNr;j++)
7067 (arg1->nodesetval->nodeNr == 0)) ret = 0;
7152 (arg1->nodesetval->nodeNr == 0)) ret = 0;
8409 (double) cur->nodesetval->nodeNr));
8411 if ((cur->nodesetval->nodeNr != 1) ||
8528 for (i = 0; i < obj->nodesetval->nodeNr; i++) {
8581 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) {
8639 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) {
8699 if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr == 0)) {
9481 if ((cur->nodesetval != NULL) && (cur->nodesetval->nodeNr != 0)) {
9482 for (i = 0; i < cur->nodesetval->nodeNr; i++) {
11562 for (i = 0; i < set->nodeNr; i++) {
11706 for (i = 0; i < set->nodeNr; i++) {
11767 set->nodeNr = 1;
12063 (obj->nodesetval != NULL) ? obj->nodesetval->nodeNr : 0);
12071 if ((contextSeq == NULL) || (contextSeq->nodeNr <= 0)) {
12142 while ((contextIdx < contextSeq->nodeNr) || (contextNode != NULL)) {
12397 nbMatches += seq->nodeNr;
12404 if ((predOp != NULL) && (seq->nodeNr > 0)) {
12433 size = seq->nodeNr;
12453 } else if (seq->nodeNr > 0) {
12477 } else if (seq->nodeNr > 0) {
12508 if ((seq != NULL) && (seq->nodeNr == 0))
12572 && (ctxt->value->nodesetval->nodeNr >= 1)) {
12583 if (ctxt->value->nodesetval->nodeNr > 1)
12651 && (ctxt->value->nodesetval->nodeNr > 1))
12703 && (ctxt->value->nodesetval->nodeNr >= 1)) {
12707 if (ctxt->value->nodesetval->nodeNr > 1)
12711 nodesetval->nodeNr -
12724 && (ctxt->value->nodesetval->nodeNr >= 1)) { /* TODO: NOP ? */
12786 && (ctxt->value->nodesetval->nodeNr > 1))
12840 (ctxt->value->nodesetval->nodeNr > 1)) {
12845 nodeNr -
12847 ctxt->value->nodesetval->nodeNr = 1;
12983 if ((oldset == NULL) || (oldset->nodeNr == 0)) {
13010 for (i = 0; i < oldset->nodeNr; i++) {
13027 ctxt->context->contextSize = oldset->nodeNr;
13064 if (newset->nodeNr > 0) {
13267 (arg2->nodesetval->nodeNr != 0)))
13473 (ctxt->value->nodesetval->nodeNr > 1))
13474 ctxt->value->nodesetval->nodeNr = 1;
13508 (ctxt->value->nodesetval->nodeNr > 1)) {
13513 nodeNr -
13515 ctxt->value->nodesetval->nodeNr = 1;
13649 if ((oldset == NULL) || (oldset->nodeNr == 0)) {
13699 for (i = 0; i < oldset->nodeNr; i++) {
13716 ctxt->context->contextSize = oldset->nodeNr;
13788 (ctxt->value->nodesetval->nodeNr > 1))
13899 for (i = 0; i < oldset->nodeNr; i++) {
14266 nb_nodes, retObj->nodesetval->nodeNr);
14390 return(res->nodesetval->nodeNr != 0);
14434 return(res->nodesetval->nodeNr != 0);