MCPcopy Index your code
hub / github.com/processing/processing / pluralize

Method pluralize

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

Source from the content-addressed store, hash-verified

206
207
208 static public String pluralize(String key, int count) {
209 // First check if the bundle contains an entry for this specific count
210 String customKey = key + "." + count;
211 String value = get(customKey);
212 if (value != null) {
213 return String.format(value, count);
214 }
215 // Use the general 'n' version for n items
216 return interpolate(key + ".n", count);
217 }
218
219
220 /**

Callers 1

importDataMethod · 0.95

Calls 3

getMethod · 0.95
interpolateMethod · 0.95
formatMethod · 0.65

Tested by

no test coverage detected