* xmlXPtrNewRangeNodePoint: * @start: the starting node * @end: the ending point * * Create a new xmlXPathObjectPtr of type range from a node to a point * * Returns the newly created object. */
| 456 | * Returns the newly created object. |
| 457 | */ |
| 458 | xmlXPathObjectPtr |
| 459 | xmlXPtrNewRangeNodePoint(xmlNodePtr start, xmlXPathObjectPtr end) { |
| 460 | xmlXPathObjectPtr ret; |
| 461 | |
| 462 | if (start == NULL) |
| 463 | return(NULL); |
| 464 | if (end == NULL) |
| 465 | return(NULL); |
| 466 | if (end->type != XPATH_POINT) |
| 467 | return(NULL); |
| 468 | |
| 469 | ret = xmlXPtrNewRangeInternal(start, -1, end->user, end->index); |
| 470 | xmlXPtrRangeCheckOrder(ret); |
| 471 | return(ret); |
| 472 | } |
| 473 | |
| 474 | /** |
| 475 | * xmlXPtrNewRangeNodes: |
nothing calls this directly
no test coverage detected