Package com.github.difflib.text
Class StringUtils
- java.lang.Object
-
- com.github.difflib.text.StringUtils
-
final class StringUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringhtmlEntites(java.lang.String str)Replaces all opening and closing tags with<or>.static java.lang.Stringnormalize(java.lang.String str)static java.lang.StringwrapText(java.lang.String line, int columnWidth)Wrap the text with the given column widthstatic java.util.List<java.lang.String>wrapText(java.util.List<java.lang.String> list, int columnWidth)
-
-
-
Method Detail
-
htmlEntites
public static java.lang.String htmlEntites(java.lang.String str)
Replaces all opening and closing tags with<or>.- Parameters:
str-- Returns:
- str with some HTML meta characters escaped.
-
normalize
public static java.lang.String normalize(java.lang.String str)
-
wrapText
public static java.util.List<java.lang.String> wrapText(java.util.List<java.lang.String> list, int columnWidth)
-
wrapText
public static java.lang.String wrapText(java.lang.String line, int columnWidth)Wrap the text with the given column width- Parameters:
line- the textcolumnWidth- the given column- Returns:
- the wrapped text
-
-