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

Method remove

src/main/java/net/optifine/util/StrUtils.java:635–669  ·  view source on GitHub ↗
(String[] strs, int start, int end)

Source from the content-addressed store, hash-verified

633 }
634
635 public static String[] remove(String[] strs, int start, int end)
636 {
637 if (strs == null)
638 {
639 return strs;
640 }
641 else if (end > 0 && start < strs.length)
642 {
643 if (start >= end)
644 {
645 return strs;
646 }
647 else
648 {
649 List<String> list = new ArrayList(strs.length);
650
651 for (int i = 0; i < strs.length; ++i)
652 {
653 String s = strs[i];
654
655 if (i < start || i >= end)
656 {
657 list.add(s);
658 }
659 }
660
661 String[] astring = (String[])list.toArray(new String[list.size()]);
662 return astring;
663 }
664 }
665 else
666 {
667 return strs;
668 }
669 }
670
671 public static String removeSuffix(String str, String[] suffixes)
672 {

Callers 15

updateChunkLightMethod · 0.45
entityRemovedMethod · 0.45
mergeOperatorsMethod · 0.45
getGroupMethod · 0.45
getNextRequestMethod · 0.45
onResponseReceivedMethod · 0.45
terminateRequestsMethod · 0.45
removeConnectionMethod · 0.45
bufferDataMethod · 0.45
compactRangesMethod · 0.45
removeObjectFromArrayMethod · 0.45

Calls 3

addMethod · 0.45
toArrayMethod · 0.45
sizeMethod · 0.45

Tested by 1

mainMethod · 0.36