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

public final class FnFormatInteger extends Object
Implements the XPath 3.1 fn:format-integer functions.
See Also:
  • Method Details

    • fnFormatInteger

      @NonNull public static String fnFormatInteger(@Nullable IIntegerItem value, @NonNull String picture, @Nullable String lang)
      An implementation of XPath 3.1 fn:format-integer.
      Parameters:
      value - the integer value to format, or null for empty sequence
      picture - the picture string controlling the format
      lang - the language for locale-dependent formatting, or null to use the default
      Returns:
      the formatted integer string
      Throws:
      FormatFunctionException - if the picture string contains an invalid format token