Цитата из
java.lang.String:
if (ignoreCase) {
// If characters don't match but case may be ignored,
// try converting both characters to uppercase.
// If the results match, then the comparison scan should
// continue.
char u1 = Character.toUpperCase(c1);
char u2 = Character.toUpperCase(c2);
if (u1 == u2) {
continue;
}
// Unfortunately, conversion to uppercase does not work properly
// for the Georgian alphabet, which has strange rules about case
// conversion. So we need to make one last check before
// exiting.
if (Character.toLowerCase(u1) == Character.toLowerCase(u2)) {
continue;
}
}
UPDATE1: Сегодня пятница
UPDATE2: В этом фрагменте нет открытой проблемы, которую автор поста предлагает обсудить
UPDATE3: "Blame Georgia!" -- это аллюзия на "Blame Canada!" из South Park / Bigger, Longer & Uncut, ЕВПОЧЯ.
![[info]](http://l-stat.livejournal.com/img/community.gif)
![[info]](http://l-stat.livejournal.com/img/userinfo.gif)
2008-08-29 09:09 (UTC)