format

fun format(format: String, vararg args: Any?): StringBuilder

Formats a String using a printf-style format String and a variable number of arguments.

Return

The StringBuilder containing the formatted String.

Parameters

format

The printf-style format String

args

The list of arguments used for formatting the string.

Throws

if format could not be formatted using args.