Beispiel #1
0
        //Constructor
        public CompareEngine()
        {
            //Left Side to Compare
            sourceList = null;
            //Right Side to Compare
            destList = null;

            matchList = null;

            compareStateList = null;
        }
Beispiel #2
0
        //Start Diff betwween two files parsed into 2 objects
        public void StartDiff(CompareText source, CompareText dest)
        {
            if (source.Count() <= 0 && dest.Count() <= 0)
            {
                return;
            }

            //Save to Local vars for later use
            sourceList = source;
            destList   = dest;

            matchList = new ArrayList();

            compareStateList = new CompareStateList(destList.Count());
            RecursiveComparer(0, destList.Count() - 1, 0, sourceList.Count() - 1);
        }