Example #1
0
 public DiffEngine()
 {
     _source    = null;
     _dest      = null;
     _matchList = null;
     _stateList = null;
     _level     = DiffEngineLevel.FastImperfect;
 }
Example #2
0
 public DiffEngine()
 {
     _source = null;
     _dest = null;
     _matchList = null;
     _stateList = null;
     _level = DiffEngineLevel.FastImperfect;
 }
Example #3
0
        public double ProcessDiff(IDiffList source, IDiffList destination)
        {
            var dt = DateTime.Now;

            _source    = source;
            _dest      = destination;
            _matchList = new List <DiffResultSpan>();

            var dcount = _dest.Count();
            var scount = _source.Count();


            if ((dcount > 0) && (scount > 0))
            {
                _stateList = new DiffStateList(dcount);
                ProcessRange(0, dcount - 1, 0, scount - 1);
            }

            var ts = DateTime.Now - dt;

            return(ts.TotalSeconds);
        }
Example #4
0
        public double ProcessDiff(IDiffList source, IDiffList destination)
        {
            var dt = DateTime.Now;
            _source = source;
            _dest = destination;
            _matchList = new List<DiffResultSpan>();

            var dcount = _dest.Count();
            var scount = _source.Count();

            if ((dcount > 0)&&(scount > 0))
            {
                _stateList = new DiffStateList(dcount);
                ProcessRange(0,dcount - 1,0, scount - 1);
            }

            var ts = DateTime.Now - dt;
            return ts.TotalSeconds;
        }