jdk/make/tools/GenerateCharacter/CharacterData02.java.template
changeset 9535 d930011fd275
parent 5506 202f599c92aa
child 14342 8435a30053c1
equal deleted inserted replaced
9534:080badb816ac 9535:d930011fd275
    64 
    64 
    65         The encoding of character properties is subject to change at any time.
    65         The encoding of character properties is subject to change at any time.
    66      */
    66      */
    67 
    67 
    68     int getProperties(int ch) {
    68     int getProperties(int ch) {
    69 		char offset = (char)ch;
    69 	char offset = (char)ch;
    70         int props = $$Lookup(offset);
    70         int props = $$Lookup(offset);
    71         return props;
    71         return props;
       
    72     }
       
    73 
       
    74     int getPropertiesEx(int ch) {
       
    75         char offset = (char)ch;
       
    76         int props = $$LookupEx(offset);
       
    77         return props;
       
    78     }
       
    79 
       
    80     boolean isOtherLowercase(int ch) {
       
    81         int props = getPropertiesEx(ch);
       
    82         return (props & $$maskOtherLowercase) != 0;
       
    83     }
       
    84 
       
    85     boolean isOtherUppercase(int ch) {
       
    86         int props = getPropertiesEx(ch);
       
    87         return (props & $$maskOtherUppercase) != 0;
       
    88     }
       
    89 
       
    90     boolean isOtherAlphabetic(int ch) {
       
    91         int props = getPropertiesEx(ch);
       
    92         return (props & $$maskOtherAlphabetic) != 0;
       
    93     }
       
    94 
       
    95     boolean isIdeographic(int ch) {
       
    96         int props = getPropertiesEx(ch);
       
    97         return (props & $$maskIdeographic) != 0;
    72     }
    98     }
    73 
    99 
    74     int getType(int ch) {
   100     int getType(int ch) {
    75         int props = getProperties(ch);
   101         int props = getProperties(ch);
    76         return (props & $$maskType);
   102         return (props & $$maskType);