MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / substringFrom

Method substringFrom

Utils/src/eu/the5zig/util/Utils.java:525–530  ·  view source on GitHub ↗

Substrings a String from the position of one of its content-strings. @param input The input String that should be substringed. @param from The content from which the String should be substringed at. @return The substringed String.

(String input, String from)

Source from the content-addressed store, hash-verified

523 * @return The substringed String.
524 */
525 public static String substringFrom(String input, String from) {
526 if (!input.contains(from))
527 return input;
528 int substring = input.indexOf(from);
529 return input.substring(substring);
530 }
531
532 public static String bytesToReadable(long bytes) {
533 final int unit = 1024;

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected