|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeters.util.StringDiffHelper
public final class StringDiffHelper
tool that provides functionality usually required for diff views, such as removing unchanged parts and highlighting differences
Constructor Summary | |
---|---|
StringDiffHelper()
|
Method Summary | |
---|---|
static java.lang.String[] |
removeEqualSentences(java.lang.String textVersion1,
java.lang.String textVersion2,
int characterPadding)
similar to #removeEqualParts(String, String, int) ,
but removes full sentences only (text parts ending with '.') |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringDiffHelper()
Method Detail |
---|
public static java.lang.String[] removeEqualSentences(java.lang.String textVersion1, java.lang.String textVersion2, int characterPadding)
#removeEqualParts(String, String, int)
,
but removes full sentences only (text parts ending with '.')
characterPadding
- number of unchanged characters that will remain
part of the result before and after the block of
changed sentences; >= 0 //TODO: not yet used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |