Class CodepointEqual

All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence

public class CodepointEqual extends SystemFunction implements Callable
Implements the XPath 2.0 fn:codepoint-equal() function.

Compares two strings using the Unicode codepoint collation. (The function was introduced specifically to allow URI comparison: URIs are promoted to strings when necessary.)

  • Constructor Details

    • CodepointEqual

      public CodepointEqual()
  • Method Details

    • call

      public ZeroOrOne call(XPathContext context, Sequence[] arguments) throws XPathException
      Description copied from interface: Function
      Invoke the function
      Specified by:
      call in interface Callable
      Specified by:
      call in interface Function
      Parameters:
      context - the XPath dynamic evaluation context
      arguments - the actual arguments to be supplied
      Returns:
      the result of invoking the function
      Throws:
      XPathException - if a dynamic error occurs within the function