MCPcopy
hub / github.com/arduino/Arduino / format

Method format

arduino-core/src/processing/app/I18n.java:92–101  ·  view source on GitHub ↗
(String fmt, Object... args)

Source from the content-addressed store, hash-verified

90 }
91
92 public static String format(String fmt, Object... args) {
93 // Single quote is used to escape curly bracket arguments.
94
95 // - Prevents strings fixed at translation time to be fixed again
96 fmt = fmt.replace("''", "'");
97 // - Replace ' with the escaped version ''
98 fmt = fmt.replace("'", "''");
99
100 return MessageFormat.format(fmt, args);
101 }
102
103 /**
104 * Does nothing.

Callers 15

callArduinoBuilderMethod · 0.95
execMethod · 0.95
messageMethod · 0.95
burnBootloaderMethod · 0.95
canUploadWWWFilesMethod · 0.95
extractMethod · 0.95
messageMethod · 0.95
performInstallMethod · 0.95
removeMethod · 0.95
toStringMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by 3

testMessageFormatMethod · 0.76
testAllLocalesMethod · 0.76