示例#1
0
 /// <summary>
 /// The only constructor
 /// </summary>
 /// <param name="a">the text A which should be compared</param>
 /// <param name="b">the text B which should be compared</param>
 public MyersDiff(Sequence a, Sequence b)
 {
     this.a = a;
     this.b = b;
     middle = new MiddleEdit(a, b);
     calculateEdits();
 }
 /// <summary>
 /// The only constructor
 /// </summary>
 /// <param name="a">the text A which should be compared</param>
 /// <param name="b">the text B which should be compared</param>
 public MyersDiffAlgorithm(ISequence a, ISequence b)
 {
     this.a = a;
     this.b = b;
     middle = new MiddleEdit(a, b);
     CalculateEdits();
 }
示例#3
0
 public ForwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#4
0
 public BackwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#5
0
 protected EditPaths(MiddleEdit middleEdit)
 {
     _middleEdit = middleEdit;
 }
示例#6
0
 /**
  * The only constructor
  *
  * @param a   the text A which should be compared
  * @param b   the text B which should be compared
  */
 public MyersDiff(Sequence a, Sequence b)
 {
     this.a = a;
     this.b = b;
     middle = new MiddleEdit(a, b);
     calculateEdits();
 }
示例#7
0
 /// <summary>
 /// The only constructor
 /// </summary>
 /// <param name="a">the text A which should be compared</param>
 /// <param name="b">the text B which should be compared</param>
 public MyersDiffAlgorithm(ISequence a, ISequence b)
 {
     this.a = a;
     this.b = b;
     middle = new MiddleEdit(a, b);
     CalculateEdits();
 }
示例#8
0
 public BackwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#9
0
 public ForwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#10
0
                protected int minK, maxK; // TODO: better explanation

                protected EditPaths(MiddleEdit middleEdit)
                {
                    _middleEdit = middleEdit;
                }
示例#11
0
 internal ForwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#12
0
 internal BackwardEditPaths(MiddleEdit middleEdit)
     : base(middleEdit)
 {
 }
示例#13
0
 internal BackwardEditPaths(MiddleEdit _enclosing) : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#14
0
 internal EditPaths(MiddleEdit _enclosing)
 {
     this._enclosing = _enclosing;
 }