int prefixLength = diffCommonPrefix(longtext.substring(i), shorttext.substring(j)); int suffixLength = diffCommonSuffix(longtext.substring(0, i), shorttext.substring(0, j)); if (best_common.length() < suffixLength + prefixLength) {
commonOffset = diffCommonSuffix(equality1, edit); if (commonOffset != 0) { commonString = edit.substring(edit.length() - commonOffset);
commonlength = diffCommonSuffix(text1, text2); String commonsuffix = text1.substring(text1.length() - commonlength); text1 = text1.substring(0, text1.length() - commonlength);
commonlength = diffCommonSuffix(text_insert, text_delete); if (commonlength != 0) { thisDiff = pointer.next();