mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8263091: Remove CharacterData.isOtherUppercase/-Lowercase
Reviewed-by: rriggs, naoto, iris
This commit is contained in:
parent
13625bebd0
commit
a0c3f24218
8 changed files with 27 additions and 97 deletions
|
@ -83,16 +83,6 @@ class CharacterData01 extends CharacterData {
|
|||
return (props & $$maskType);
|
||||
}
|
||||
|
||||
boolean isOtherLowercase(int ch) {
|
||||
int props = getPropertiesEx(ch);
|
||||
return (props & $$maskOtherLowercase) != 0;
|
||||
}
|
||||
|
||||
boolean isOtherUppercase(int ch) {
|
||||
int props = getPropertiesEx(ch);
|
||||
return (props & $$maskOtherUppercase) != 0;
|
||||
}
|
||||
|
||||
boolean isOtherAlphabetic(int ch) {
|
||||
int props = getPropertiesEx(ch);
|
||||
return (props & $$maskOtherAlphabetic) != 0;
|
||||
|
@ -503,13 +493,13 @@ class CharacterData01 extends CharacterData {
|
|||
}
|
||||
|
||||
boolean isLowerCase(int ch) {
|
||||
int props = getProperties(ch);
|
||||
return (props & $$maskType) == Character.LOWERCASE_LETTER;
|
||||
return (getProperties(ch) & $$maskType) == Character.LOWERCASE_LETTER
|
||||
|| (getPropertiesEx(ch) & $$maskOtherLowercase) != 0;
|
||||
}
|
||||
|
||||
boolean isUpperCase(int ch) {
|
||||
int props = getProperties(ch);
|
||||
return (props & $$maskType) == Character.UPPERCASE_LETTER;
|
||||
return (getProperties(ch) & $$maskType) == Character.UPPERCASE_LETTER
|
||||
|| (getPropertiesEx(ch) & $$maskOtherUppercase) != 0;
|
||||
}
|
||||
|
||||
boolean isWhitespace(int ch) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue