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

Method removePrefix

src/main/java/net/optifine/util/StrUtils.java:507–522  ·  view source on GitHub ↗
(String str, String prefix)

Source from the content-addressed store, hash-verified

505 }
506
507 public static String removePrefix(String str, String prefix)
508 {
509 if (str != null && prefix != null)
510 {
511 if (str.startsWith(prefix))
512 {
513 str = str.substring(prefix.length());
514 }
515
516 return str;
517 }
518 else
519 {
520 return str;
521 }
522 }
523
524 public static String removeSuffix(String str, String suffix)
525 {

Callers 15

readSpawnEggColorsMethod · 0.95
readDyeColorsMethod · 0.95
readTextColorsMethod · 0.95
readMapColorsMethod · 0.95
getSpriteLocationMethod · 0.95
updateModelTextureMethod · 0.95
makeBakedModelMethod · 0.95
loadModelsMethod · 0.95
updateModelsFullMethod · 0.95
loadBlockAliasesMethod · 0.95
loadItemAliasesMethod · 0.95
getResourceAsStreamMethod · 0.95

Calls 2

startsWithMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected