java.lang.Object
com.github.relativobr.supreme.libs.guizhanlib.utils.StringUtil

public final class StringUtil extends Object
Java-8 port of (the subset of) GuizhanLib's StringUtil that Supreme actually used - vendored for the same reason as ChatUtil/Localization. Only dehumanize(String) is ported; upstream's humanize(String) is unused by Supreme and dropped.
  • Method Details

    • dehumanize

      @Nonnull public static String dehumanize(@Nonnull String str)
      Converts a string into upper-case-with-underscores form, matching upstream GuizhanLib's behaviour (spaces and hyphens become underscores, then upper-cased).