Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public TextDiff(HashType eHashType, bool bIgnoreCase, bool bIgnoreWhiteSpace, int iLeadingCharactersToIgnore)
 {
     m_Hasher = new StringHasher(eHashType, bIgnoreCase, bIgnoreWhiteSpace, iLeadingCharactersToIgnore);
 }