Lines Matching defs:nodes2

4380  * @nodes2:  a node-set
4386 * nodes2 is empty
4389 xmlXPathDifference (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4394 if (xmlXPathNodeSetIsEmpty(nodes2))
4405 if (!xmlXPathNodeSetContains(nodes2, cur))
4414 * @nodes2: a node-set
4423 xmlXPathIntersection (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4430 if (xmlXPathNodeSetIsEmpty(nodes2))
4437 if (xmlXPathNodeSetContains(nodes2, cur))
4505 * @nodes2: a node-set
4510 * Returns true (1) if @nodes1 shares any node with @nodes2, false (0)
4514 xmlXPathHasSameNodes (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4519 xmlXPathNodeSetIsEmpty(nodes2))
4525 if (xmlXPathNodeSetContains(nodes2, cur))
4590 * @nodes2: a node-set, sorted by document order
4595 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4596 * in document order, @nodes1 if @nodes2 is NULL or empty or
4597 * an empty node-set if @nodes1 doesn't contain @nodes2
4600 xmlXPathLeadingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4601 if (xmlXPathNodeSetIsEmpty(nodes2))
4604 xmlXPathNodeSetItem(nodes2, 1)));
4610 * @nodes2: a node-set
4614 * @nodes1 and @nodes2 are sorted by document order, then
4617 * Returns the nodes in @nodes1 that precede the first node in @nodes2
4618 * in document order, @nodes1 if @nodes2 is NULL or empty or
4619 * an empty node-set if @nodes1 doesn't contain @nodes2
4622 xmlXPathLeading (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4623 if (xmlXPathNodeSetIsEmpty(nodes2))
4628 xmlXPathNodeSetSort(nodes2);
4630 xmlXPathNodeSetItem(nodes2, 1)));
4693 * @nodes2: a node-set, sorted by document order
4698 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4699 * in document order, @nodes1 if @nodes2 is NULL or empty or
4700 * an empty node-set if @nodes1 doesn't contain @nodes2
4703 xmlXPathTrailingSorted (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4704 if (xmlXPathNodeSetIsEmpty(nodes2))
4707 xmlXPathNodeSetItem(nodes2, 0)));
4713 * @nodes2: a node-set
4717 * @nodes1 and @nodes2 are sorted by document order, then
4720 * Returns the nodes in @nodes1 that follow the first node in @nodes2
4721 * in document order, @nodes1 if @nodes2 is NULL or empty or
4722 * an empty node-set if @nodes1 doesn't contain @nodes2
4725 xmlXPathTrailing (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
4726 if (xmlXPathNodeSetIsEmpty(nodes2))
4731 xmlXPathNodeSetSort(nodes2);
4733 xmlXPathNodeSetItem(nodes2, 0)));