* 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. */
| 375 | * Returns the newly created object. |
| 376 | */ |
| 377 | xmlXPathObjectPtr |
| 378 | xmlXPtrNewRange(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: |
no test coverage detected