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

public final class FnTokenize extends Object
Implements the XPath 3.1 fn:tokenize function.
  • 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 tokenize
      pattern - the regular expression to use for identifying token boundaries
      flags - 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 against
      pattern - the regular expression to use for matching
      flags - matching options
      Returns:
      the stream of tokens