Merge pull request #3968 from mbethke/fix-TooManyCapitalLetters
fix testTooManyCapitalLetters wrt unicameral scripts
This commit is contained in:
commit
7ea3ac399a
1 changed files with 3 additions and 3 deletions
|
@ -408,10 +408,10 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
|
|||
for(int i = 0; i < name.length(); i++) {
|
||||
char c = name.charAt(i);
|
||||
if(Character.isLetter(c) || Character.getType(c) == Character.LETTER_NUMBER) {
|
||||
if(Character.toUpperCase(c) != c && Character.toLowerCase(c) == c) {
|
||||
lower ++;
|
||||
} else {
|
||||
if(Character.isUpperCase(c)) {
|
||||
capital ++;
|
||||
} else {
|
||||
lower ++;
|
||||
}
|
||||
} else {
|
||||
nonalpha ++;
|
||||
|
|
Loading…
Reference in a new issue