public class Diff extends Object
A patch string is actually a command to a stemmer telling it how to reduce a word to its root. For example, to reduce the word teacher to its root teach the patch string Db would be generated. This command tells the stemmer to delete the last 2 characters from the word teacher to reach the stem (the patch commands are applied starting from the last character in order to save
|Constructor and Description|
Constructor for the Diff object.
Constructor for the Diff object
|Modifier and Type||Method and Description|
Apply the given patch string diff to the given string dest.
Construct a patch string that transforms a to b.
public Diff(int ins, int del, int rep, int noop)
ins- Description of the Parameter
del- Description of the Parameter
rep- Description of the Parameter
noop- Description of the Parameter
public static void apply(StringBuilder dest, CharSequence diff)
dest- Destination string
diff- Patch string
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.