Lines Matching refs:args
249 * depending on the args, so it appears that this pattern is not directly
389 * are matched by position - the first {@code %s} gets {@code args[0]}, etc.
395 * @param args the arguments to be substituted into the message
399 static String format(String template, Object... args) {
402 template.length() + 16 * args.length);
405 while (i < args.length) {
411 builder.append(args[i++]);
416 // if we run out of placeholders, append the extra args in square braces
417 if (i < args.length) {
419 builder.append(args[i++]);
420 while (i < args.length) {
422 builder.append(args[i++]);