当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Align and pad two similar text files for text comparison

问题描述:

I've to compare and highlight differences between two similar text files. I'm using QT 4.8 on VC2010 and C++ as programming language. After researching, I've found google diff-match-patch library which is available in QT platform.

I've been trying to align both the text files so that similar lines appear on the same line. Padding needs to be added by adding newline wherever appropriate on either left or right text.

Please suggest the best way based on diff match patch library and QT.

分享给朋友:
您可能感兴趣的文章:
随机阅读: