* xmlXPtrNewRangePointNode: * @start: the starting point * @end: the ending node * * Create a new xmlXPathObjectPtr of type range from a point to a node * * Returns the newly created object. */
| 431 | * Returns the newly created object. |
| 432 | */ |
| 433 | xmlXPathObjectPtr |
| 434 | xmlXPtrNewRangePointNode(xmlXPathObjectPtr start, xmlNodePtr end) { |
| 435 | xmlXPathObjectPtr ret; |
| 436 | |
| 437 | if (start == NULL) |
| 438 | return(NULL); |
| 439 | if (end == NULL) |
| 440 | return(NULL); |
| 441 | if (start->type != XPATH_POINT) |
| 442 | return(NULL); |
| 443 | |
| 444 | ret = xmlXPtrNewRangeInternal(start->user, start->index, end, -1); |
| 445 | xmlXPtrRangeCheckOrder(ret); |
| 446 | return(ret); |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * xmlXPtrNewRangeNodePoint: |
nothing calls this directly
no test coverage detected