Lines Matching defs:set
556 * Empty set ...
635 * @cur: the initial range set
639 * If the location already exist in the set @val is freed.
664 xmlXPtrErrMemory("adding location to set");
677 xmlXPtrErrMemory("adding location to set");
714 * @cur: the initial range set
747 * @cur: the initial range set
812 * @set: a node set
815 * it with all the nodes from @set
820 xmlXPtrNewLocationSetNodeSet(xmlNodeSetPtr set) {
830 if (set != NULL) {
838 for (i = 0;i < set->nodeNr;i++)
840 xmlXPtrNewCollapsedRange(set->nodeTab[i]));
1163 * or location set, return here.
1382 "xmlXPtrEval: evaluation failed to return a node set\n",
1396 xmlNodeSetPtr set;
1397 set = tmp->nodesetval;
1398 if ((set->nodeNr != 1) ||
1399 (set->nodeTab[0] != (xmlNodePtr) ctx->doc))
1475 /* prune and return full set */
1610 xmlNodeSetPtr set = obj->nodesetval;
1611 if (set == NULL)
1613 for (i = 0;i < set->nodeNr;i++) {
1614 if (set->nodeTab[i] == NULL)
1616 switch (set->nodeTab[i]->type) {
1644 list = last = xmlCopyNode(set->nodeTab[i], 1);
1646 xmlAddNextSibling(last, xmlCopyNode(set->nodeTab[i], 1));
1654 xmlLocationSetPtr set = (xmlLocationSetPtr) obj->user;
1655 if (set == NULL)
1657 for (i = 0;i < set->locNr;i++) {
1659 list = last = xmlXPtrBuildNodeList(set->locTab[i]);
1662 xmlXPtrBuildNodeList(set->locTab[i]));
1771 * location-set start-point(location-set)
1773 * For each location x in the argument location-set, start-point adds a
1774 * location of type point to the result location-set. That point represents
1801 * First convert to a location set
1863 * location-set end-point(location-set)
1865 * For each location x in the argument location-set, end-point adds a
1866 * location of type point to the result location-set. That point represents
1895 * First convert to a location set
2018 * location-set range(location-set )
2021 * the argument location-set. For each location x in the argument
2022 * location-set, a range location representing the covering range of
2023 * x is added to the result location-set.
2028 xmlXPathObjectPtr set;
2038 set = valuePop(ctxt);
2039 if (set->type == XPATH_NODESET) {
2043 * First convert to a location set
2045 tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
2046 xmlXPathFreeObject(set);
2047 set = tmp;
2049 oldset = (xmlLocationSetPtr) set->user;
2064 xmlXPathFreeObject(set);
2157 * location-set range-inside(location-set )
2160 * the locations in the argument location-set. For each location x in
2161 * the argument location-set, a range location is added to the result
2162 * location-set. If x is a range location, then x is added to the
2163 * result location-set. If x is not a range location, then x is used
2174 xmlXPathObjectPtr set;
2184 set = valuePop(ctxt);
2185 if (set->type == XPATH_NODESET) {
2189 * First convert to a location set
2191 tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
2192 xmlXPathFreeObject(set);
2193 set = tmp;
2195 oldset = (xmlLocationSetPtr) set->user;
2210 xmlXPathFreeObject(set);
2234 * it multiple times. Initialize the new set.
2282 * The result is used as the new evaluation set.
2733 * [Definition: For each location in the location-set argument,
2734 * string-range returns a set of string ranges, a set of substrings in a
2736 * substrings that match the string argument, and the resulting location-set
2756 * The points of the range-locations in the returned location-set will
2764 xmlXPathObjectPtr set;
2797 set = valuePop(ctxt);
2799 if (set->nodesetval == NULL) {
2802 if (set->type == XPATH_NODESET) {
2806 * First convert to a location set
2808 tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
2809 xmlXPathFreeObject(set);
2810 set = tmp;
2812 oldset = (xmlLocationSetPtr) set->user;
2815 * The loop is to search for each element in the location set
2816 * the list of location set corresponding to that search
2883 xmlXPathFreeObject(set);
2897 * a Location Set instead of a node set
2918 * Extract the old set, and then evaluate the result of the
2919 * expression for all the element in the set. use it to grow
2920 * up a new set.
2939 * it multiple times. Initialize the new set.
2984 * The result is used as the new evaluation set.