Class FnSubstringBefore

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

public final class FnSubstringBefore extends Object
Implements the XPath 3.1 fn:substring-before function.
  • Method Details

    • fnSubstringBefore

      @NonNull public static String fnSubstringBefore(@NonNull String arg1, @NonNull String arg2)
      An implementation of XPath 3.1 fn:substring-before.
      Parameters:
      arg1 - the source string to get a substring from
      arg2 - the substring to match and find the substring to return before the match
      Returns:
      the substring