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 23 * questions. 24 */ 25 26 package java.lang; 27 28 abstract class CharacterData { 29 abstract int getProperties(int ch); 30 abstract int getType(int ch); 31 abstract boolean isWhitespace(int ch); 32 abstract boolean isMirrored(int ch); 33 abstract boolean isJavaIdentifierStart(int ch); 34 abstract boolean isJavaIdentifierPart(int ch); 35 abstract boolean isUnicodeIdentifierStart(int ch); 36 abstract boolean isUnicodeIdentifierPart(int ch); 37 abstract boolean isIdentifierIgnorable(int ch); 38 abstract int toLowerCase(int ch); 39 abstract int toUpperCase(int ch); 40 abstract int toTitleCase(int ch); 41 abstract int digit(int ch, int radix); 42 abstract int getNumericValue(int ch); 43 abstract byte getDirectionality(int ch); 44 45 //need to implement for JSR204 46 int toUpperCaseEx(int ch) { 47 return toUpperCase(ch); 48 } 49 50 char[] toUpperCaseCharArray(int ch) { | 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 23 * questions. 24 */ 25 26 package java.lang; 27 28 abstract class CharacterData { 29 abstract int getProperties(int ch); 30 abstract int getType(int ch); 31 abstract boolean isDigit(int ch); 32 abstract boolean isLowerCase(int ch); 33 abstract boolean isUpperCase(int ch); 34 abstract boolean isWhitespace(int ch); 35 abstract boolean isMirrored(int ch); 36 abstract boolean isJavaIdentifierStart(int ch); 37 abstract boolean isJavaIdentifierPart(int ch); 38 abstract boolean isUnicodeIdentifierStart(int ch); 39 abstract boolean isUnicodeIdentifierPart(int ch); 40 abstract boolean isIdentifierIgnorable(int ch); 41 abstract int toLowerCase(int ch); 42 abstract int toUpperCase(int ch); 43 abstract int toTitleCase(int ch); 44 abstract int digit(int ch, int radix); 45 abstract int getNumericValue(int ch); 46 abstract byte getDirectionality(int ch); 47 48 //need to implement for JSR204 49 int toUpperCaseEx(int ch) { 50 return toUpperCase(ch); 51 } 52 53 char[] toUpperCaseCharArray(int ch) { |