DiffMain finds the differences between two texts. If an invalid UTF-8 sequence is encountered, it will be replaced by the Unicode replacement character.
(text1, text2 string, checklines bool)
| 82 | // DiffMain finds the differences between two texts. |
| 83 | // If an invalid UTF-8 sequence is encountered, it will be replaced by the Unicode replacement character. |
| 84 | func (dmp *DiffMatchPatch) DiffMain(text1, text2 string, checklines bool) []Diff { |
| 85 | return dmp.DiffMainRunes([]rune(text1), []rune(text2), checklines) |
| 86 | } |
| 87 | |
| 88 | // DiffMainRunes finds the differences between two rune sequences. |
| 89 | // If an invalid UTF-8 sequence is encountered, it will be replaced by the Unicode replacement character. |