MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPtrNewRange

Function xmlXPtrNewRange

ThirdParty/libxml2/vtklibxml2/xpointer.c:377–394  ·  view source on GitHub ↗

* xmlXPtrNewRange: * @start: the starting node * @startindex: the start index * @end: the ending point * @endindex: the ending index * * Create a new xmlXPathObjectPtr of type range * * Returns the newly created object. */

Source from the content-addressed store, hash-verified

375 * Returns the newly created object.
376 */
377xmlXPathObjectPtr
378xmlXPtrNewRange(xmlNodePtr start, int startindex,
379 xmlNodePtr end, int endindex) {
380 xmlXPathObjectPtr ret;
381
382 if (start == NULL)
383 return(NULL);
384 if (end == NULL)
385 return(NULL);
386 if (startindex < 0)
387 return(NULL);
388 if (endindex < 0)
389 return(NULL);
390
391 ret = xmlXPtrNewRangeInternal(start, startindex, end, endindex);
392 xmlXPtrRangeCheckOrder(ret);
393 return(ret);
394}
395
396/**
397 * xmlXPtrNewRangePoints:

Callers 3

xmlXPtrCoveringRangeFunction · 0.70
xmlXPtrInsideRangeFunction · 0.70

Calls 2

xmlXPtrNewRangeInternalFunction · 0.85
xmlXPtrRangeCheckOrderFunction · 0.85

Tested by

no test coverage detected