Top Constructors Methods
com.github.difflib.text

pack-priv final Class StringUtils

extends Object
Class Inheritance
Imports
java.util.List

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

str with some HTML meta characters escaped.
htmlEntites
(String str)

Replaces all opening and closing tags with < or >.

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

public static String

Returns:

the wrapped text
wrapText
(String
the text
line
,
int
the given column
columnWidth
)

Wrap the text with the given column width

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StringUtilsback to summary
private StringUtils()

Method Detail

htmlEntitesback to summary
public static String htmlEntites(String str)

Replaces all opening and closing tags with < or >.

Returns:String

str with some HTML meta characters escaped.

normalizeback to summary
public static String normalize(String str)
wrapTextback to summary
public static List<String> wrapText(List<String> list, int columnWidth)
wrapTextback to summary
public static String wrapText(String line, int columnWidth)

Wrap the text with the given column width

Parameters
line:String

the text

columnWidth:int

the given column

Returns:String

the wrapped text