/guava/guava/src/com/google/common/base/Strings.java
return a.toString( ) .toString( ) ;
return a.subSequence ( 0, p ) .toString ( ) ;
while (p < maxPrefixLength && a.charAt(p) == b.charAt(p)) { p++; } if (validSurrogatePairAt(a, p - 1) || validSurrogatePairAt(b, p - 1)) { p--; } <extra_id_0> } public static String commonSuffix(CharSequence a, CharSequence b) { checkNotNull(a); checkNotNull(b); int maxSuffixLength = Math.min(a.length(), b.length()); int s = 0;