FileDocCategorySizeDatePackage
CharacterDataPrivateUse.javaAPI DocJava SE 5 API2566Fri Aug 26 16:47:26 BST 2005java.lang

CharacterDataPrivateUse.java

/* @(#)CharacterDataPrivateUse.java.template	1.2 03/07/26
 *
 * Copyright 1994-2002 Sun Microsystems, Inc. All Rights Reserved.
 *
 * This software is the proprietary information of Sun Microsystems, Inc.
 * Use is subject to license terms.
 *
 */

package java.lang;

/** The CharacterData class encapsulates the large tables found in
    Java.lang.Character. */

class CharacterDataPrivateUse {

    static int getProperties(int ch) {
        return 0;
    }

    static int getType(int ch) {
        int offset = ch & 0xFFFF;
        if (offset == 0xFFFE || offset == 0xFFFF) {
            return Character.UNASSIGNED;
        } else {
            return Character.PRIVATE_USE;
        }
    }

    static boolean isLowerCase(int ch) {
		return false;
    }

    static boolean isUpperCase(int ch) {
		return false;
    }

    static boolean isTitleCase(int ch) {
		return false;
    }

    static boolean isDigit(int ch) {
		return false;
    }

    static boolean isDefined(int ch) {
        int offset = ch & 0xFFFF;
        if (offset == 0xFFFE || offset == 0xFFFF) {
            return false;
        } else {
            return true;
        }
    }

    static boolean isLetter(int ch) {
		return false;
    }

    static boolean isLetterOrDigit(int ch) {
		return false;
    }

    static boolean isSpaceChar(int ch) {
		return false;
    }


    static boolean isJavaIdentifierStart(int ch) {
		return false;
    }

    static boolean isJavaIdentifierPart(int ch) {
		return false;
    }

    static boolean isUnicodeIdentifierStart(int ch) {
		return false;
    }

    static boolean isUnicodeIdentifierPart(int ch) {
		return false;
    }

    static boolean isIdentifierIgnorable(int ch) {
		return false;
    }

    static int toLowerCase(int ch) {
		return ch;
    }

    static int toUpperCase(int ch) {
		return ch;
    }

    static int toTitleCase(int ch) {
		return ch;
    }

    static int digit(int ch, int radix) {
		return -1;
    }

    static int getNumericValue(int ch) {
		return -1;
    }

    static boolean isWhitespace(int ch) {
		return false;
    }

    static byte getDirectionality(int ch) {
        int offset = ch & 0xFFFF;
        if (offset == 0xFFFE || offset == 0xFFFF) {
            return Character.DIRECTIONALITY_UNDEFINED;
        } else {
            return Character.DIRECTIONALITY_LEFT_TO_RIGHT;
        }
    }

    static boolean isMirrored(int ch) {
		return false;
    }

	// may need to implement for JSR 204
    // static int toUpperCaseEx(int ch);
    // static char[] toUpperCaseCharArray(int ch);


}