If I understood correctly, this Java finds when the uppercase version is longer than the original
for (char chr = 0; chr < Character.MAX_VALUE; chr++) {
String str = String.valueOf(chr);
String upper = str.toUpperCase();
if (upper.length() > 1) {
System.out.println(String.format("%s => %s (%d)", str,
Arrays.toString(upper.toCharArray()), upper.length()));
}
}
Which brings out things like your original example
ß => [S, S] (2)
ʼn => [ʼ, N] (2)
ǰ => [J, ̌] (2)
ΐ => [Ι, ̈, ́] (3)
If I change this to toLowerCase (), there will be only one result
İ => [i, ̇] (2)
source
share