Class Text

java.lang.Object
dev.twilite.game.common.Text

public class Text extends Object
Text normalization helpers for game strings.
  • Constructor Details

    • Text

      public Text()
  • Method Details

    • blank

      public static boolean blank(String value)
      Returns true when the value is null, empty, or only whitespace.
    • removeTags

      public static String removeTags(String str)
      Removes game markup tags such as color tags.
    • standardise

      public static String standardise(String str)
      Removes tags, replaces non-breaking spaces, trims, and lowercases text for comparisons.