Package com.github.difflib.text
Class StringUtils
java.lang.Object
com.github.difflib.text.StringUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
htmlEntites
(String str) Replaces all opening and closing tags with<
or>
.static String
static String
Wrap 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
-