public class GwtTextDiff extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GwtTextDiff.Diff |
static class |
GwtTextDiff.Patch |
Modifier and Type | Field and Description |
---|---|
static int |
DIFF_DELETE |
static int |
DIFF_EQUAL |
static int |
DIFF_INSERT |
Modifier and Type | Method and Description |
---|---|
int |
adjustPosition(int pos) |
String |
applyTo(String value) |
static GwtTextDiff |
diff(String v1,
String v2) |
static GwtTextDiff |
fromString(String s) |
String |
getDiffString() |
static DiffMatchPatchJSNI |
getDMP() |
List<GwtTextDiff.Patch> |
getPatches() |
boolean |
isIdentity() |
static int |
positionInNewText(String text1,
int cursorPos,
String text2) |
public static final int DIFF_DELETE
public static final int DIFF_INSERT
public static final int DIFF_EQUAL
public static GwtTextDiff diff(String v1, String v2)
public boolean isIdentity()
public String getDiffString()
public static DiffMatchPatchJSNI getDMP()
public static GwtTextDiff fromString(String s)
public int adjustPosition(int pos)
public List<GwtTextDiff.Patch> getPatches()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.