java.lang.Object
dev.metaschema.core.metapath.function.library.FnTokenize
Implements the XPath 3.1 fn:tokenize
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISequence<IStringItem>fnTokenize(IStringItem input, IStringItem pattern, IStringItem flags) Implements fn:tokenize.fnTokenize(String input, String pattern, String flags) Implements fn:tokenize.
-
Method Details
-
fnTokenize
@NonNull public static ISequence<IStringItem> fnTokenize(@NonNull IStringItem input, @NonNull IStringItem pattern, @NonNull IStringItem flags) Implements fn:tokenize.- Parameters:
input- the string to tokenizepattern- the regular expression to use for identifying token boundariesflags- matching options- Returns:
- the sequence of tokens
-
fnTokenize
@NonNull public static List<String> fnTokenize(@NonNull String input, @NonNull String pattern, @NonNull String flags) Implements fn:tokenize.- Parameters:
input- the string to match againstpattern- the regular expression to use for matchingflags- matching options- Returns:
- the stream of tokens
-