CharacterDataUndefined.java.template revision 0
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/*
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * This code is free software; you can redistribute it and/or modify it
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * under the terms of the GNU General Public License version 2 only, as
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * published by the Free Software Foundation. Sun designates this
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * particular file as subject to the "Classpath" exception as provided
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * by Sun in the LICENSE file that accompanied this code.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * This code is distributed in the hope that it will be useful, but WITHOUT
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * version 2 for more details (a copy is included in the LICENSE file that
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * accompanied this code).
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You should have received a copy of the GNU General Public License version
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * 2 along with this work; if not, write to the Free Software Foundation,
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * CA 95054 USA or visit www.sun.com if you need additional information or
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * have any questions.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkipackage java.lang;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/** The CharacterData class encapsulates the large tables found in
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki Java.lang.Character. */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiclass CharacterDataUndefined extends CharacterData {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int getProperties(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return 0;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int getType(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return Character.UNASSIGNED;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isJavaIdentifierStart(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isJavaIdentifierPart(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isUnicodeIdentifierStart(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isUnicodeIdentifierPart(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isIdentifierIgnorable(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int toLowerCase(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return ch;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int toUpperCase(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return ch;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int toTitleCase(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return ch;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int digit(int ch, int radix) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return -1;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki int getNumericValue(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return -1;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isWhitespace(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki byte getDirectionality(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return Character.DIRECTIONALITY_UNDEFINED;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki boolean isMirrored(int ch) {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki return false;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki }
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki static final CharacterData instance = new CharacterDataUndefined();
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki private CharacterDataUndefined() {};
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki}
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki