java.lang.Object
dev.metaschema.core.metapath.function.library.FnIndexOf

public final class FnIndexOf extends Object
/** Implements fn:index-of functions. This implementation does not implement the three-arg variant with collation at this time.
  • Method Details

    • fnIndexOf

      @NonNull public static ISequence<IIntegerItem> fnIndexOf(@NonNull List<IAnyAtomicItem> items, @NonNull IAnyAtomicItem search, @NonNull DynamicContext dynamicContext)
      Determine if the string provided in the first argument contains the string in the second argument as a substring.

      Based on the XPath 3.1 fn:index-of function.

      Parameters:
      items - the items to match against
      search - the item to match
      dynamicContext - used to provide evaluation information, including the implicit timezone
      Returns:
      a list of index numbers indicating the position of matches in the sequence