java.lang.Object
dev.metaschema.core.metapath.function.library.FnIndexOf
/** Implements fn:index-of
functions. This implementation does not implement the three-arg variant with
collation at this time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISequence<IIntegerItem>fnIndexOf(List<IAnyAtomicItem> items, IAnyAtomicItem search, DynamicContext dynamicContext) Determine if the string provided in the first argument contains the string in the second argument as a substring.
-
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 againstsearch- the item to matchdynamicContext- used to provide evaluation information, including the implicit timezone- Returns:
- a list of index numbers indicating the position of matches in the sequence
-