• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libxml2-26/libxml2/

Lines Matching +defs:range +defs:list

154  * Returns the index of the node in its parent children list, -1
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
750 * Removes an entry from an existing LocationSet list.
788 * it with the single range made of the two nodes @start and @end
1335 xmlXPathRegisterFunc(ret, (xmlChar *)"range-to",
1337 xmlXPathRegisterFunc(ret, (xmlChar *)"range",
1339 xmlXPathRegisterFunc(ret, (xmlChar *)"range-inside",
1341 xmlXPathRegisterFunc(ret, (xmlChar *)"string-range",
1426 * @range: a range object
1428 * Build a node list tree copy of the range
1430 * Returns an xmlNodePtr list or NULL.
1434 xmlXPtrBuildRangeNodeList(xmlXPathObjectPtr range) {
1436 xmlNodePtr list = NULL, last = NULL, parent = NULL, tmp;
1441 if (range == NULL)
1443 if (range->type != XPATH_RANGE)
1445 start = (xmlNodePtr) range->user;
1449 end = range->user2;
1456 index1 = range->index;
1457 index2 = range->index2;
1478 if (list == NULL)
1485 return(list);
1488 if (list == NULL)
1489 list = tmp;
1515 (list == NULL) /* looks superfluous but ... */ ) {
1528 last = list = tmp;
1532 list = tmp;
1543 list = tmp;
1572 if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
1587 if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
1593 return(list);
1600 * Build a node list tree copy of the XPointer result.
1603 * Returns an xmlNodePtr list or NULL.
1608 xmlNodePtr list = NULL, last = NULL;
1649 list = last = xmlCopyNode(set->nodeTab[i], 1);
1664 list = last = xmlXPtrBuildNodeList(set->locTab[i]);
1682 return(list);
1783 * - If x is of type range, the start point is the start point of x.
1875 * - If x is of type range, the resulting point is the end point of x.
1957 * @loc: the location for which the covering range must be computed
1959 * A covering range is a range that wholly encompasses a location
2022 * Function implementing the range() function 5.4.3
2023 * location-set range(location-set )
2025 * The range function returns ranges covering the locations in
2027 * location-set, a range location representing the covering range of
2057 * The loop is to compute the covering range for each item and add it
2075 * @loc: the location for which the inside range must be computed
2077 * A inside range is a range described in the range-inside() description
2161 * Function implementing the range-inside() function 5.4.3
2162 * location-set range-inside(location-set )
2164 * The range-inside function returns ranges covering the contents of
2166 * the argument location-set, a range location is added to the result
2167 * location-set. If x is a range location, then x is added to the
2168 * result location-set. If x is not a range location, then x is used
2169 * as the container location of the start and end points of the range
2170 * location to be added; the index of the start point of the range is
2203 * The loop is to compute the covering range for each item and add it
2223 * Implement the range-to() XPointer function
2227 xmlXPathObjectPtr range;
2253 * Run the evaluation with a node list made of a single item
2268 range = xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], res);
2269 if (range != NULL) {
2270 xmlXPtrLocationSetAdd(newset, range);
2444 * of the range and (@end, @endindex) will indicate the end
2445 * of the range
2480 "found range %d bytes at index %d of ->",
2530 * of the range and (@end, @endindex) will indicate the end
2531 * of the range
2656 * @obj: an range
2692 * @obj: an range
2731 * Function implementing the string-range() function
2732 * range as described in 5.4.2
2736 * string-range returns a set of string ranges, a set of substrings in a
2739 * will contain a range location for each non-overlapping match.]
2744 * character to be in the resulting range, relative to the start of the
2745 * match. The default value is 1, which makes the range start immediately
2747 * gives the number of characters in the range; the default is that the
2748 * range extends to the end of the matched string.
2758 * The points of the range-locations in the returned location-set will
2818 * the list of location set corresponding to that search
2950 * Run the evaluation with a node list made of a single item