Class StringUtils

java.lang.Object
com.github.difflib.text.StringUtils

final class StringUtils extends Object
  • Constructor Details

    • StringUtils

      private StringUtils()
  • Method Details

    • htmlEntites

      public static String htmlEntites(String str)
      Replaces all opening and closing tags with < or >.
      Parameters:
      str -
      Returns:
      str with some HTML meta characters escaped.
    • normalize

      public static String normalize(String str)
    • wrapText

      public static List<String> wrapText(List<String> list, int columnWidth)
    • wrapText

      public static String wrapText(String line, int columnWidth)
      Wrap the text with the given column width
      Parameters:
      line - the text
      columnWidth - the given column
      Returns:
      the wrapped text