< prev index next >

make/data/characterdata/CharacterData00.java.template

Print this page


   1 /*
   2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  88         int props = getPropertiesEx(ch);
  89         return (props & $$maskOtherLowercase) != 0;
  90     }
  91 
  92     boolean isOtherUppercase(int ch) {
  93         int props = getPropertiesEx(ch);
  94         return (props & $$maskOtherUppercase) != 0;
  95     }
  96 
  97     boolean isOtherAlphabetic(int ch) {
  98         int props = getPropertiesEx(ch);
  99         return (props & $$maskOtherAlphabetic) != 0;
 100     }
 101 
 102     boolean isIdeographic(int ch) {
 103         int props = getPropertiesEx(ch);
 104         return (props & $$maskIdeographic) != 0;
 105     }
 106 
 107     boolean isJavaIdentifierStart(int ch) {





 108         int props = getProperties(ch);
 109         return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
 110     }
 111 
 112     boolean isJavaIdentifierPart(int ch) {





 113         int props = getProperties(ch);
 114         return ((props & $$nonzeroJavaPart) != 0);
 115     }
 116 
 117     boolean isUnicodeIdentifierStart(int ch) {
 118         int props = getProperties(ch);
 119         return ((props & $$maskIdentifierInfo) == $$valueUnicodeStart);
 120     }
 121 
 122     boolean isUnicodeIdentifierPart(int ch) {
 123         int props = getProperties(ch);
 124         return ((props & $$maskUnicodePart) != 0);
 125     }
 126 
 127     boolean isIdentifierIgnorable(int ch) {
 128         int props = getProperties(ch);
 129         return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
 130     }
 131 
 132     int toLowerCase(int ch) {


   1 /*
   2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  88         int props = getPropertiesEx(ch);
  89         return (props & $$maskOtherLowercase) != 0;
  90     }
  91 
  92     boolean isOtherUppercase(int ch) {
  93         int props = getPropertiesEx(ch);
  94         return (props & $$maskOtherUppercase) != 0;
  95     }
  96 
  97     boolean isOtherAlphabetic(int ch) {
  98         int props = getPropertiesEx(ch);
  99         return (props & $$maskOtherAlphabetic) != 0;
 100     }
 101 
 102     boolean isIdeographic(int ch) {
 103         int props = getPropertiesEx(ch);
 104         return (props & $$maskIdeographic) != 0;
 105     }
 106 
 107     boolean isJavaIdentifierStart(int ch) {
 108         // isJavaIdentifierStart strictly conforms to code points assigned
 109         // in Unicode 6.2. Since code points {32FF} and {20BB..20BF} are not
 110         // from Unicode 6.2, return false.
 111         if(ch == 0x32FF || (ch>= 0x20BB && ch<= 0x20BF))
 112             return false;
 113         int props = getProperties(ch);
 114         return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
 115     }
 116 
 117     boolean isJavaIdentifierPart(int ch) {
 118         // isJavaIdentifierPart strictly conforms to code points assigned
 119         // in Unicode 6.2. Since code points {32FF} and {20BB..20BF} are not
 120         // from Unicode 6.2, return false.
 121         if(ch == 0x32FF || (ch>= 0x20BB && ch<= 0x20BF))
 122             return false;
 123         int props = getProperties(ch);
 124         return ((props & $$nonzeroJavaPart) != 0);
 125     }
 126 
 127     boolean isUnicodeIdentifierStart(int ch) {
 128         int props = getProperties(ch);
 129         return ((props & $$maskIdentifierInfo) == $$valueUnicodeStart);
 130     }
 131 
 132     boolean isUnicodeIdentifierPart(int ch) {
 133         int props = getProperties(ch);
 134         return ((props & $$maskUnicodePart) != 0);
 135     }
 136 
 137     boolean isIdentifierIgnorable(int ch) {
 138         int props = getProperties(ch);
 139         return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
 140     }
 141 
 142     int toLowerCase(int ch) {


< prev index next >