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

public final class FnSubstring extends Object
Implements the XPath 3.1 fn:substring functions.
  • Method Details

    • fnSubstring

      @NonNull public static String fnSubstring(@NonNull String source, int start, int length)
      An implementation of XPath 3.1 fn:substring.
      Parameters:
      source - the source string to get a substring from
      start - the 1-based start location
      length - the substring length
      Returns:
      the substring