Class Format

All Implemented Interfaces:
Named

public class Format extends ProcedureN
  • Field Details

    • format

      public static final Format format
  • Constructor Details

    • Format

      public Format()
  • Method Details

    • format

      public static void format(Writer dst, Object[] args, int arg_offset)
    • formatToWriter

      public static void formatToWriter(Writer dst, Object format, Object... vals)
    • formatToOutputStream

      public static void formatToOutputStream(OutputStream dst, Object format, Object... vals)
    • formatToString

      public static String formatToString(int arg_offset, Object... args)
    • sprintfToString

      public static String sprintfToString(Object fmt, Object... args)
    • formatToFString

      public static FString formatToFString(char style, Object fmt, Object[] args)
      Apply format and argument, yielding an FString.
      Parameters:
      style - either '%' (C/Emacs-style format specifiers), or '~' (Common Lisp-style format specifiers).
      fmt - the format string or specification
      args - the arguments to be formatted
    • applyN

      public Object applyN(Object[] args)
      Overrides:
      applyN in class Procedure
    • format

      public static Object format(Object... args)