BinClone/CloneSearcherLib/CSAssemblyFile.cpp
//
// Compose the hash key based on the content.
// 
Compose the hash key based on the content.
Compose the hash key based on the content .
CString CCSAssemblyFile::composeContentHashKey(int startIdx, int endIdx) const
{
    CString hashStr;
    for (int lineIdx = startIdx; lineIdx <= endIdx; ++lineIdx) {
        if (GetAt(lineIdx)->isMnemonicStatement())  
            hashStr += GetAt(lineIdx)->composeLineHashKey();
    }
    return hashStr;
}
CString CCSAssemblyFile :: composeContentHashKey ( int startIdx , int endIdx ) const { CString hashStr ; for ( int lineIdx = startIdx ; lineIdx <= endIdx ; ++ lineIdx ) { if ( GetAt ( lineIdx ) -> isMnemonicStatement ( ) ) hashStr += GetAt ( lineIdx ) -> composeLineHashKey ( ) ; } return hashStr ; }
Compose the hash key based on the content.
Compose the hash key based on the content .
// only if it is a mnemonic statement