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