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

Method endsWith

src/main/java/net/optifine/util/StrUtils.java:481–505  ·  view source on GitHub ↗
(String str, String[] suffixes)

Source from the content-addressed store, hash-verified

479 }
480
481 public static boolean endsWith(String str, String[] suffixes)
482 {
483 if (str == null)
484 {
485 return false;
486 }
487 else if (suffixes == null)
488 {
489 return false;
490 }
491 else
492 {
493 for (int i = 0; i < suffixes.length; ++i)
494 {
495 String s = suffixes[i];
496
497 if (str.endsWith(s))
498 {
499 return true;
500 }
501 }
502
503 return false;
504 }
505 }
506
507 public static String removePrefix(String str, String prefix)
508 {

Callers 15

makePotionPropertiesMethod · 0.95
collectFilesFolderMethod · 0.95
collectFilesZIPMethod · 0.95
parseTextureMethod · 0.80
fixTextureNameMethod · 0.80
getParentTexturePathMethod · 0.80
isEmissiveMethod · 0.80
loadTextureMethod · 0.80
parseTextureMethod · 0.80
fixTextureNameMethod · 0.80
parseModelMethod · 0.80
fixModelNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected