MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / stringInc

Method stringInc

src/main/java/net/optifine/util/StrUtils.java:348–362  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

346 }
347
348 public static String stringInc(String str)
349 {
350 int i = parseInt(str, -1);
351
352 if (i == -1)
353 {
354 return "";
355 }
356 else
357 {
358 ++i;
359 String s = "" + i;
360 return s.length() > str.length() ? "" : fillLeft("" + i, str.length(), '0');
361 }
362 }
363
364 public static int parseInt(String s, int defVal)
365 {

Callers

nothing calls this directly

Calls 3

parseIntMethod · 0.95
fillLeftMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected