Package com.github.difflib.text
Class StringUtils
java.lang.Object
com.github.difflib.text.StringUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringhtmlEntites(String str) Replaces all opening and closing tags with<or>.static Stringstatic StringWrap the text with the given column width
-
Constructor Details
-
StringUtils
private StringUtils()
-
-
Method Details
-
htmlEntites
Replaces all opening and closing tags with<or>.- Parameters:
str-- Returns:
- str with some HTML meta characters escaped.
-
normalize
-
wrapText
-
wrapText
Wrap the text with the given column width- Parameters:
line- the textcolumnWidth- the given column- Returns:
- the wrapped text
-