Class Formatters

java.lang.Object
aQute.lib.formatter.Formatters

public class Formatters extends Object
  • Field Details

    • PRINTF_P

      private static final Pattern PRINTF_P
  • Constructor Details

    • Formatters

      public Formatters()
  • Method Details

    • format

      public static String format(String format, Function<String,Boolean> isTruthy, int offset, String... args)
      Format a string where the arguments are all strings. The string is formatted with the ROOT Locale.
      Parameters:
      format - the format string
      isTruthy - a function to turn a string into a boolean
      offset - the offset in the arguments array to start at
      args - the arguments
      Returns:
      a formatted string
    • format

      public static String format(String format, String... args)
      Format a string using string, numeric, and date conversions while the input is strings
      Parameters:
      format - the format string
      args - the arguments
      Returns:
      a formatted string
    • isTruthy

      private static boolean isTruthy(String arg)