This library is mainly a slightly modified copy from kompare's libdiff2. Maybe both should be merged to one reusable library some time.