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

public final class FnContains extends Object
Implements the XPath 3.1 fn:contains function.
  • Method Details

    • fnContains

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

      Based on the XPath 3.1 fn:contains function.

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