0N/A/*
2362N/A * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage java.lang;
0N/A
0N/Aabstract class CharacterData {
0N/A abstract int getProperties(int ch);
0N/A abstract int getType(int ch);
0N/A abstract boolean isWhitespace(int ch);
0N/A abstract boolean isMirrored(int ch);
0N/A abstract boolean isJavaIdentifierStart(int ch);
0N/A abstract boolean isJavaIdentifierPart(int ch);
0N/A abstract boolean isUnicodeIdentifierStart(int ch);
0N/A abstract boolean isUnicodeIdentifierPart(int ch);
0N/A abstract boolean isIdentifierIgnorable(int ch);
0N/A abstract int toLowerCase(int ch);
0N/A abstract int toUpperCase(int ch);
0N/A abstract int toTitleCase(int ch);
0N/A abstract int digit(int ch, int radix);
0N/A abstract int getNumericValue(int ch);
0N/A abstract byte getDirectionality(int ch);
0N/A
0N/A //need to implement for JSR204
0N/A int toUpperCaseEx(int ch) {
0N/A return toUpperCase(ch);
0N/A }
4138N/A
0N/A char[] toUpperCaseCharArray(int ch) {
0N/A return null;
0N/A }
0N/A
4138N/A boolean isOtherLowercase(int ch) {
4138N/A return false;
4138N/A }
4138N/A
4138N/A boolean isOtherUppercase(int ch) {
4138N/A return false;
4138N/A }
4138N/A
4138N/A boolean isOtherAlphabetic(int ch) {
4138N/A return false;
4138N/A }
4138N/A
4138N/A boolean isIdeographic(int ch) {
4138N/A return false;
4138N/A }
4138N/A
0N/A // Character <= 0xff (basic latin) is handled by internal fast-path
0N/A // to avoid initializing large tables.
0N/A // Note: performance of this "fast-path" code may be sub-optimal
0N/A // in negative cases for some accessors due to complicated ranges.
0N/A // Should revisit after optimization of table initialization.
0N/A
0N/A static final CharacterData of(int ch) {
0N/A if (ch >>> 8 == 0) { // fast-path
0N/A return CharacterDataLatin1.instance;
0N/A } else {
0N/A switch(ch >>> 16) { //plane 00-16
0N/A case(0):
0N/A return CharacterData00.instance;
0N/A case(1):
0N/A return CharacterData01.instance;
0N/A case(2):
0N/A return CharacterData02.instance;
0N/A case(14):
0N/A return CharacterData0E.instance;
0N/A case(15): // Private Use
0N/A case(16): // Private Use
0N/A return CharacterDataPrivateUse.instance;
0N/A default:
0N/A return CharacterDataUndefined.instance;
0N/A }
0N/A }
0N/A }
0N/A}