DiffCommonSuffix determines the common suffix length of two strings.
(text1, text2 string)
| 429 | |
| 430 | // DiffCommonSuffix determines the common suffix length of two strings. |
| 431 | func (dmp *DiffMatchPatch) DiffCommonSuffix(text1, text2 string) int { |
| 432 | // Unused in this code, but retained for interface compatibility. |
| 433 | return commonSuffixLength([]rune(text1), []rune(text2)) |
| 434 | } |
| 435 | |
| 436 | // commonPrefixLength returns the length of the common prefix of two rune slices. |
| 437 | func commonPrefixLength(text1, text2 []rune) int { |