Lines Matching defs:range
266 * @range: an object range
268 * Make sure the points in the range are in the right order
271 xmlXPtrRangeCheckOrder(xmlXPathObjectPtr range) {
274 if (range == NULL)
276 if (range->type != XPATH_RANGE)
278 if (range->user2 == NULL)
280 tmp = xmlXPtrCmpPoints(range->user, range->index,
281 range->user2, range->index2);
283 tmp2 = range->user;
284 range->user = range->user2;
285 range->user2 = tmp2;
286 tmp = range->index;
287 range->index = range->index2;
288 range->index2 = tmp;
294 * @range1: the first range
295 * @range2: the second range
329 * Create a new xmlXPathObjectPtr of type range
349 xmlXPtrErrMemory("allocating range");
367 * Create a new xmlXPathObjectPtr of type range using 2 Points
386 xmlXPtrErrMemory("allocating range");
404 * Create a new xmlXPathObjectPtr of type range from a point to a node
421 xmlXPtrErrMemory("allocating range");
439 * Create a new xmlXPathObjectPtr of type range from a node to a point
458 xmlXPtrErrMemory("allocating range");
476 * Create a new xmlXPathObjectPtr of type range using 2 nodes
491 xmlXPtrErrMemory("allocating range");
508 * Create a new xmlXPathObjectPtr of type range using a single nodes
521 xmlXPtrErrMemory("allocating range");
538 * Create a new xmlXPathObjectPtr of type range from a not to an object
568 xmlXPtrErrMemory("allocating range");
635 * @cur: the initial range set
714 * @cur: the initial range set
747 * @cur: the initial range set
788 * it with the single range made of the two nodes @start and @end
1332 xmlXPathRegisterFunc(ret, (xmlChar *)"range-to",
1334 xmlXPathRegisterFunc(ret, (xmlChar *)"range",
1336 xmlXPathRegisterFunc(ret, (xmlChar *)"range-inside",
1338 xmlXPathRegisterFunc(ret, (xmlChar *)"string-range",
1423 * @range: a range object
1425 * Build a node list tree copy of the range
1431 xmlXPtrBuildRangeNodeList(xmlXPathObjectPtr range) {
1438 if (range == NULL)
1440 if (range->type != XPATH_RANGE)
1442 start = (xmlNodePtr) range->user;
1446 end = range->user2;
1451 index1 = range->index;
1452 index2 = range->index2;
1778 * - If x is of type range, the start point is the start point of x.
1870 * - If x is of type range, the resulting point is the end point of x.
1952 * @loc: the location for which the covering range must be computed
1954 * A covering range is a range that wholly encompasses a location
2017 * Function implementing the range() function 5.4.3
2018 * location-set range(location-set )
2020 * The range function returns ranges covering the locations in
2022 * location-set, a range location representing the covering range of
2052 * The loop is to compute the covering range for each item and add it
2070 * @loc: the location for which the inside range must be computed
2072 * A inside range is a range described in the range-inside() description
2156 * Function implementing the range-inside() function 5.4.3
2157 * location-set range-inside(location-set )
2159 * The range-inside function returns ranges covering the contents of
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
2164 * as the container location of the start and end points of the range
2165 * location to be added; the index of the start point of the range is
2198 * The loop is to compute the covering range for each item and add it
2218 * Implement the range-to() XPointer function
2222 xmlXPathObjectPtr range;
2263 range = xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], res);
2264 if (range != NULL) {
2265 xmlXPtrLocationSetAdd(newset, range);
2439 * of the range and (@end, @endindex) will indicate the end
2440 * of the range
2474 "found range %d bytes at index %d of ->",
2524 * of the range and (@end, @endindex) will indicate the end
2525 * of the range
2654 * @obj: an range
2690 * @obj: an range
2729 * Function implementing the string-range() function
2730 * range as described in 5.4.2
2734 * string-range returns a set of string ranges, a set of substrings in a
2737 * will contain a range location for each non-overlapping match.]
2742 * character to be in the resulting range, relative to the start of the
2743 * match. The default value is 1, which makes the range start immediately
2745 * gives the number of characters in the range; the default is that the
2746 * range extends to the end of the matched string.
2756 * The points of the range-locations in the returned location-set will