DiffCommonPrefix determines the common prefix length of two strings.
(text1, text2 string)
| 419 | |
| 420 | // DiffCommonPrefix determines the common prefix length of two strings. |
| 421 | func (dmp *DiffMatchPatch) DiffCommonPrefix(text1, text2 string) int { |
| 422 | // Unused in this code, but retained for interface compatibility. |
| 423 | return commonPrefixLength([]rune(text1), []rune(text2)) |
| 424 | } |
| 425 | |
| 426 | // DiffCommonSuffix determines the common suffix length of two strings. |
| 427 | func (dmp *DiffMatchPatch) DiffCommonSuffix(text1, text2 string) int { |