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

Method removeSuffix

src/main/java/net/optifine/util/StrUtils.java:524–539  ·  view source on GitHub ↗
(String str, String suffix)

Source from the content-addressed store, hash-verified

522 }
523
524 public static String removeSuffix(String str, String suffix)
525 {
526 if (str != null && suffix != null)
527 {
528 if (str.endsWith(suffix))
529 {
530 str = str.substring(0, str.length() - suffix.length());
531 }
532
533 return str;
534 }
535 else
536 {
537 return str;
538 }
539 }
540
541 public static String replaceSuffix(String str, String suffix, String suffixNew)
542 {

Callers 12

getLocationPropertiesMethod · 0.95
getParentTexturePathMethod · 0.95
initializeMethod · 0.95
getSpriteLocationMethod · 0.95
loadCustomTexturesMethod · 0.95
createFragShaderMethod · 0.95
parseValuesMethod · 0.95
getValueVec4Method · 0.95
splitDescriptionMethod · 0.95
removePrefixSuffixMethod · 0.95
fixResourcePathMethod · 0.95

Calls 2

endsWithMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected