Beispiel #1
0
        private int[] hash(HTMLchunk[] chunks)
        {
            //return value
            int[] hash = new int[chunks.Length];

            //hash the chunks
            Menees.DiffUtils.StringHasher hasher = new Menees.DiffUtils.StringHasher(Menees.DiffUtils.HashType.CRC32, true, true, 0);
            for (int i = 0; i < chunks.Length; i++)
            {
                hash[i] = hasher.GetHashCode(chunks[i].oHTML);
            }

            return(hash);
        }
Beispiel #2
0
        private int[] hash(HTMLchunk[] chunks)
        {
            //return value
            int[] hash = new int[chunks.Length];

            //hash the chunks
            Menees.DiffUtils.StringHasher hasher = new Menees.DiffUtils.StringHasher(Menees.DiffUtils.HashType.CRC32, true, true, 0);
            for (int i = 0; i < chunks.Length; i++)
                hash[i] = hasher.GetHashCode(chunks[i].oHTML);

            return hash;
        }
Beispiel #3
0
 public TextDiff(HashType eHashType, bool bIgnoreCase, bool bIgnoreWhiteSpace, int iLeadingCharactersToIgnore)
 {
     m_Hasher = new StringHasher(eHashType, bIgnoreCase, bIgnoreWhiteSpace, iLeadingCharactersToIgnore);
 }