Package aQute.lib.formatter
Class Formatters
java.lang.Object
aQute.lib.formatter.Formatters
-
Field Details
-
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 stringisTruthy
- a function to turn a string into a booleanoffset
- the offset in the arguments array to start atargs
- the arguments- Returns:
- a formatted string
-
format
Format a string using string, numeric, and date conversions while the input is strings- Parameters:
format
- the format stringargs
- the arguments- Returns:
- a formatted string
-
isTruthy
-