MCPcopy Index your code
hub / github.com/benfry/processing4 / pluralize

Method pluralize

app/src/processing/app/Language.java:221–230  ·  view source on GitHub ↗
(String key, int count)

Source from the content-addressed store, hash-verified

219
220
221 static public String pluralize(String key, int count) {
222 // First check if the bundle contains an entry for this specific count
223 String customKey = key + "." + count;
224 String value = get(customKey);
225 if (value != null) {
226 return String.format(value, count);
227 }
228 // Use the general 'n' version for n items
229 return interpolate(key + ".n", count);
230 }
231
232
233 /**

Callers 1

importDataMethod · 0.95

Calls 3

getMethod · 0.95
interpolateMethod · 0.95
formatMethod · 0.65

Tested by

no test coverage detected