Home | History | Annotate | Download | only in libxml2

Lines Matching refs: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
735 "xmlXPtrLocationSetDel: Range wasn't found in RangeList\n");
747 * @cur: the initial range set
788 * it with the single range made of the two nodes @start and @end
1342 xmlXPathRegisterFunc(ret, (xmlChar *)"range-to",
1344 xmlXPathRegisterFunc(ret, (xmlChar *)"range",
1346 xmlXPathRegisterFunc(ret, (xmlChar *)"range-inside",
1348 xmlXPathRegisterFunc(ret, (xmlChar *)"string-range",
1433 * @range: a range object
1435 * Build a node list tree copy of the range
1441 xmlXPtrBuildRangeNodeList(xmlXPathObjectPtr range) {
1448 if (range == NULL)
1450 if (range->type != XPATH_RANGE)
1452 start = (xmlNodePtr) range->user;
1456 end = range->user2;
1461 index1 = range->index;
1462 index2 = range->index2;
1788 * - If x is of type range, the start point is the start point of x.
1880 * - If x is of type range, the resulting point is the end point of x.
1962 * @loc: the location for which the covering range must be computed
1964 * A covering range is a range that wholly encompasses a location
2027 * Function implementing the range() function 5.4.3
2028 * location-set range(location-set )
2030 * The range function returns ranges covering the locations in
2032 * location-set, a range location representing the covering range of
2062 * The loop is to compute the covering range for each item and add it
2080 * @loc: the location for which the inside range must be computed
2082 * A inside range is a range described in the range-inside() description
2166 * Function implementing the range-inside() function 5.4.3
2167 * location-set range-inside(location-set )
2169 * The range-inside function returns ranges covering the contents of
2171 * the argument location-set, a range location is added to the result
2172 * location-set. If x is a range location, then x is added to the
2173 * result location-set. If x is not a range location, then x is used
2174 * as the container location of the start and end points of the range
2175 * location to be added; the index of the start point of the range is
2208 * The loop is to compute the covering range for each item and add it
2228 * Implement the range-to() XPointer function
2232 xmlXPathObjectPtr range;
2273 range = xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], res);
2274 if (range != NULL) {
2275 xmlXPtrLocationSetAdd(newset, range);
2449 * of the range and (@end, @endindex) will indicate the end
2450 * of the range
2484 "found range %d bytes at index %d of ->",
2534 * of the range and (@end, @endindex) will indicate the end
2535 * of the range
2663 * @obj: an range
2699 * @obj: an range
2738 * Function implementing the string-range() function
2739 * range as described in 5.4.2
2743 * string-range returns a set of string ranges, a set of substrings in a
2746 * will contain a range location for each non-overlapping match.]
2751 * character to be in the resulting range, relative to the start of the
2752 * match. The default value is 1, which makes the range start immediately
2754 * gives the number of characters in the range; the default is that the
2755 * range extends to the end of the matched string.
2765 * The points of the range-locations in the returned location-set will