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

Method startsWith

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

Source from the content-addressed store, hash-verified

453 }
454
455 public static boolean startsWith(String str, String[] prefixes)
456 {
457 if (str == null)
458 {
459 return false;
460 }
461 else if (prefixes == null)
462 {
463 return false;
464 }
465 else
466 {
467 for (int i = 0; i < prefixes.length; ++i)
468 {
469 String s = prefixes[i];
470
471 if (str.startsWith(s))
472 {
473 return true;
474 }
475 }
476
477 return false;
478 }
479 }
480
481 public static boolean endsWith(String str, String[] suffixes)
482 {

Callers 15

collectFilesFolderMethod · 0.95
collectFilesZIPMethod · 0.95
fixTextureNameMethod · 0.80
isValidMethod · 0.80
getTextureLocationMethod · 0.80
getHorseTexturePathMethod · 0.80
getLocationRandomMethod · 0.80
getPathBaseMethod · 0.80
skipConnectedTextureMethod · 0.80
getTextureLocationMethod · 0.80
readCustomColormapsMethod · 0.80
readSpawnEggColorsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected