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 private
StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
htmlEntites(java.lang.String str)
Replaces all opening an closing tags with<
or>
.static java.lang.String
normalize(java.lang.String str)
static java.lang.String
wrapText(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 an closing tags with<
or>
.- Parameters:
str
-- Returns:
-
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
-
-