Lines Matching refs:nodes2
4457 * @nodes2: a node-set
4463 * nodes2 is empty
4466 xmlXPathDifference (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4471 if (xmlXPathNodeSetIsEmpty(nodes2))
4482 if (!xmlXPathNodeSetContains(nodes2, cur)) {
4493 * @nodes2: a node-set
4502 xmlXPathIntersection (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4511 if (xmlXPathNodeSetIsEmpty(nodes2))
4518 if (xmlXPathNodeSetContains(nodes2, cur)) {
4591 * @nodes2: a node-set
4596 * Returns true (1) if @nodes1 shares any node with @nodes2, false (0)
4600 xmlXPathHasSameNodes (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4605 xmlXPathNodeSetIsEmpty(nodes2))
4611 if (xmlXPathNodeSetContains(nodes2, cur))
4679 * @nodes2: a node-set, sorted by document order
4684 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4685 * in document order, @nodes1 if @nodes2 is NULL or empty or
4686 * an empty node-set if @nodes1 doesn't contain @nodes2
4689 xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4690 if (xmlXPathNodeSetIsEmpty(nodes2))
4693 xmlXPathNodeSetItem(nodes2, 1)));
4699 * @nodes2: a node-set
4703 * @nodes1 and @nodes2 are sorted by document order, then
4706 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4707 * in document order, @nodes1 if @nodes2 is NULL or empty or
4708 * an empty node-set if @nodes1 doesn't contain @nodes2
4711 xmlXPathLeading (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4712 if (xmlXPathNodeSetIsEmpty(nodes2))
4717 xmlXPathNodeSetSort(nodes2);
4719 xmlXPathNodeSetItem(nodes2, 1)));
4785 * @nodes2: a node-set, sorted by document order
4790 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4791 * in document order, @nodes1 if @nodes2 is NULL or empty or
4792 * an empty node-set if @nodes1 doesn't contain @nodes2
4795 xmlXPathTrailingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4796 if (xmlXPathNodeSetIsEmpty(nodes2))
4799 xmlXPathNodeSetItem(nodes2, 0)));
4805 * @nodes2: a node-set
4809 * @nodes1 and @nodes2 are sorted by document order, then
4812 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4813 * in document order, @nodes1 if @nodes2 is NULL or empty or
4814 * an empty node-set if @nodes1 doesn't contain @nodes2
4817 xmlXPathTrailing (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4818 if (xmlXPathNodeSetIsEmpty(nodes2))
4823 xmlXPathNodeSetSort(nodes2);
4825 xmlXPathNodeSetItem(nodes2, 0)));