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

public final class FnStartsWith extends Object
Implements the XPath 3.1 fn:starts-with function.
  • Method Details

    • fnStartsWith

      public static boolean fnStartsWith(@NonNull String arg1, @NonNull String arg2)
      Determine if the string provided in the first argument contains the string in the second argument as a leading substring.

      Based on the XPath 3.1 fn:starts-with function.

      Parameters:
      arg1 - the string to examine
      arg2 - the string to check as the leading substring
      Returns:
      true if arg1 starts with arg2, or false otherwise