Appends a string, formatted as if by Starlark's str % tuple operator, to the printer's buffer. Supported conversions: %s (convert as if by str()) %r (convert as if by repr()) %d (convert an integer to its decimal representat
(
Printer printer, StarlarkSemantics semantics, String format, Object... arguments)
| 300 | * @throws IllegalFormatException if the format string is invalid or the arguments do not match it |
| 301 | */ |
| 302 | public static void format( |
| 303 | Printer printer, StarlarkSemantics semantics, String format, Object... arguments) { |
| 304 | formatWithList(printer, semantics, format, Arrays.asList(arguments)); |
| 305 | } |
| 306 | |
| 307 | /** Same as {@link #format}, but with a list instead of variadic args. */ |
| 308 | @SuppressWarnings("FormatString") // see b/178189609 |