jdk/src/share/classes/java/lang/Character.java
author peytoia
Wed, 17 Nov 2010 01:02:20 +0900
changeset 7247 20bd166a1ad6
parent 6498 cc2bc2a2194a
child 7505 9e49cbe70fb2
child 7803 56bc97d69d93
permissions -rw-r--r--
6959267: Support Unicode 6.0.0 Reviewed-by: okutsu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
     2
 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3943
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3943
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3943
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3943
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3943
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.lang;
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
    27
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
    28
import java.util.Arrays;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Map;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.HashMap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.Locale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * The <code>Character</code> class wraps a value of the primitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * type <code>char</code> in an object. An object of type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * <code>Character</code> contains a single field whose type is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <code>char</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * In addition, this class provides several methods for determining
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * a character's category (lowercase letter, digit, etc.) and for converting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * characters from uppercase to lowercase and vice versa.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * <p>
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
    43
 * Character information is based on the Unicode Standard, version 6.0.0.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * The methods and data of class <code>Character</code> are defined by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * the information in the <i>UnicodeData</i> file that is part of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * Unicode Character Database maintained by the Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * Consortium. This file specifies various properties including name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * and general category for every defined Unicode code point or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * character range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * The file and its description are available from the Unicode Consortium at:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <li><a href="http://www.unicode.org">http://www.unicode.org</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * <h4><a name="unicode">Unicode Character Representations</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * <p>The <code>char</code> data type (and therefore the value that a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <code>Character</code> object encapsulates) are based on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * original Unicode specification, which defined characters as
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * fixed-width 16-bit entities. The Unicode standard has since been
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * changed to allow for characters whose representation requires more
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * than 16 bits.  The range of legal <em>code point</em>s is now
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * U+0000 to U+10FFFF, known as <em>Unicode scalar value</em>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * (Refer to the <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * href="http://www.unicode.org/reports/tr27/#notation"><i>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * definition</i></a> of the U+<i>n</i> notation in the Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * standard.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 *
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    71
 * <p><a name="BMP">The set of characters from U+0000 to U+FFFF is
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    72
 * sometimes referred to as the <em>Basic Multilingual Plane (BMP)</em>.
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    73
 * <a name="supplementary">Characters</a> whose code points are greater
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * than U+FFFF are called <em>supplementary character</em>s.  The Java
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    75
 * platform uses the UTF-16 representation in <code>char</code> arrays and
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    76
 * in the <code>String</code> and <code>StringBuffer</code> classes. In
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    77
 * this representation, supplementary characters are represented as a pair
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    78
 * of <code>char</code> values, the first from the <em>high-surrogates</em>
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    79
 * range, (&#92;uD800-&#92;uDBFF), the second from the
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
    80
 * <em>low-surrogates</em> range (&#92;uDC00-&#92;uDFFF).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * <p>A <code>char</code> value, therefore, represents Basic
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 * Multilingual Plane (BMP) code points, including the surrogate
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 * code points, or code units of the UTF-16 encoding. An
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * <code>int</code> value represents all Unicode code points,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * including supplementary code points. The lower (least significant)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * 21 bits of <code>int</code> are used to represent Unicode code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * points and the upper (most significant) 11 bits must be zero.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * Unless otherwise specified, the behavior with respect to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * supplementary characters and surrogate <code>char</code> values is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * as follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * <li>The methods that only accept a <code>char</code> value cannot support
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * supplementary characters. They treat <code>char</code> values from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 * surrogate ranges as undefined characters. For example,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 * <code>Character.isLetter('&#92;uD840')</code> returns <code>false</code>, even though
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 * this specific value if followed by any low-surrogate value in a string
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 * would represent a letter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 * <li>The methods that accept an <code>int</code> value support all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 * Unicode characters, including supplementary characters. For
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 * example, <code>Character.isLetter(0x2F81A)</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 * <code>true</code> because the code point value represents a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 * (a CJK ideograph).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 * <p>In the Java SE API documentation, <em>Unicode code point</em> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 * used for character values in the range between U+0000 and U+10FFFF,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 * and <em>Unicode code unit</em> is used for 16-bit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * <code>char</code> values that are code units of the <em>UTF-16</em>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 * encoding. For more information on Unicode terminology, refer to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 * <a href="http://www.unicode.org/glossary/">Unicode Glossary</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * @author  Lee Boynton
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 * @author  Guy Steele
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * @author  Akira Tanaka
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
   118
 * @author  Martin Buchholz
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
   119
 * @author  Ulf Zibis
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 * @since   1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
public final
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   123
class Character implements java.io.Serializable, Comparable<Character> {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * The minimum radix available for conversion to and from strings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * The constant value of this field is the smallest value permitted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * for the radix argument in radix-conversion methods such as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * <code>digit</code> method, the <code>forDigit</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * method, and the <code>toString</code> method of class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * <code>Integer</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   132
     * @see     Character#digit(char, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   133
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   134
     * @see     Integer#toString(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   135
     * @see     Integer#valueOf(String)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    public static final int MIN_RADIX = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * The maximum radix available for conversion to and from strings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * The constant value of this field is the largest value permitted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * for the radix argument in radix-conversion methods such as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * <code>digit</code> method, the <code>forDigit</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * method, and the <code>toString</code> method of class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * <code>Integer</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   147
     * @see     Character#digit(char, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   148
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   149
     * @see     Integer#toString(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   150
     * @see     Integer#valueOf(String)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public static final int MAX_RADIX = 36;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * The constant value of this field is the smallest value of type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <code>char</code>, <code>'&#92;u0000'</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     */
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   160
    public static final char MIN_VALUE = '\u0000';
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * The constant value of this field is the largest value of type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * <code>char</code>, <code>'&#92;uFFFF'</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     */
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   168
    public static final char MAX_VALUE = '\uFFFF';
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * The <code>Class</code> instance representing the primitive type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * <code>char</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     */
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   176
    @SuppressWarnings("unchecked")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    public static final Class<Character> TYPE = Class.getPrimitiveClass("char");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   179
    /*
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   180
     * Normative general types
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   181
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   182
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   183
    /*
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   184
     * General character types
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   185
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   186
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   187
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   188
     * General category "Cn" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   189
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   190
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   191
    public static final byte UNASSIGNED = 0;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   192
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   193
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   194
     * General category "Lu" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   195
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   196
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   197
    public static final byte UPPERCASE_LETTER = 1;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   198
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   199
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   200
     * General category "Ll" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   201
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   202
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   203
    public static final byte LOWERCASE_LETTER = 2;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   204
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   205
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   206
     * General category "Lt" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   207
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   208
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   209
    public static final byte TITLECASE_LETTER = 3;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   210
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   211
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   212
     * General category "Lm" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   213
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   214
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   215
    public static final byte MODIFIER_LETTER = 4;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   216
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   217
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   218
     * General category "Lo" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   219
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   220
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   221
    public static final byte OTHER_LETTER = 5;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   222
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   223
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   224
     * General category "Mn" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   225
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   226
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   227
    public static final byte NON_SPACING_MARK = 6;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   228
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   229
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   230
     * General category "Me" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   231
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   232
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   233
    public static final byte ENCLOSING_MARK = 7;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   234
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   235
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   236
     * General category "Mc" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   237
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   238
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   239
    public static final byte COMBINING_SPACING_MARK = 8;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   240
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   241
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   242
     * General category "Nd" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   243
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   244
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   245
    public static final byte DECIMAL_DIGIT_NUMBER        = 9;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   246
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   247
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   248
     * General category "Nl" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   249
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   250
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   251
    public static final byte LETTER_NUMBER = 10;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   252
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   253
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   254
     * General category "No" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   255
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   256
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   257
    public static final byte OTHER_NUMBER = 11;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   258
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   259
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   260
     * General category "Zs" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   261
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   262
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   263
    public static final byte SPACE_SEPARATOR = 12;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   264
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   265
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   266
     * General category "Zl" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   267
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   268
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   269
    public static final byte LINE_SEPARATOR = 13;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   270
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   271
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   272
     * General category "Zp" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   273
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   274
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   275
    public static final byte PARAGRAPH_SEPARATOR = 14;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   276
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   277
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   278
     * General category "Cc" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   279
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   280
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   281
    public static final byte CONTROL = 15;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   282
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   283
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   284
     * General category "Cf" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   285
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   286
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   287
    public static final byte FORMAT = 16;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   288
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   289
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   290
     * General category "Co" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   291
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   292
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   293
    public static final byte PRIVATE_USE = 18;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   294
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   295
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   296
     * General category "Cs" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   297
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   298
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   299
    public static final byte SURROGATE = 19;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   300
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   301
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   302
     * General category "Pd" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   303
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   304
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   305
    public static final byte DASH_PUNCTUATION = 20;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   306
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   307
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   308
     * General category "Ps" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   309
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   310
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   311
    public static final byte START_PUNCTUATION = 21;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   312
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   313
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   314
     * General category "Pe" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   315
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   316
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   317
    public static final byte END_PUNCTUATION = 22;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   318
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   319
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   320
     * General category "Pc" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   321
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   322
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   323
    public static final byte CONNECTOR_PUNCTUATION = 23;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   324
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   325
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   326
     * General category "Po" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   327
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   328
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   329
    public static final byte OTHER_PUNCTUATION = 24;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   330
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   331
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   332
     * General category "Sm" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   333
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   334
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   335
    public static final byte MATH_SYMBOL = 25;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   336
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   337
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   338
     * General category "Sc" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   339
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   340
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   341
    public static final byte CURRENCY_SYMBOL = 26;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   342
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   343
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   344
     * General category "Sk" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   345
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   346
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   347
    public static final byte MODIFIER_SYMBOL = 27;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   348
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   349
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   350
     * General category "So" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   351
     * @since   1.1
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   352
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   353
    public static final byte OTHER_SYMBOL = 28;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   354
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   355
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   356
     * General category "Pi" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   357
     * @since   1.4
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   358
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   359
    public static final byte INITIAL_QUOTE_PUNCTUATION = 29;
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   360
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   361
    /**
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   362
     * General category "Pf" in the Unicode specification.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   363
     * @since   1.4
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   364
     */
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   365
    public static final byte FINAL_QUOTE_PUNCTUATION = 30;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * Error flag. Use int (code point) to avoid confusion with U+FFFF.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     */
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   370
    static final int ERROR = 0xFFFFFFFF;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * Undefined bidirectional character type. Undefined <code>char</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * values have undefined directionality in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     */
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   378
    public static final byte DIRECTIONALITY_UNDEFINED = -1;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * Strong bidirectional character type "L" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * Strong bidirectional character type "R" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
    * Strong bidirectional character type "AL" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * Weak bidirectional character type "EN" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     * Weak bidirectional character type "ES" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
    public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * Weak bidirectional character type "ET" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
    public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     * Weak bidirectional character type "AN" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    public static final byte DIRECTIONALITY_ARABIC_NUMBER = 6;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * Weak bidirectional character type "CS" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = 7;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * Weak bidirectional character type "NSM" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
    public static final byte DIRECTIONALITY_NONSPACING_MARK = 8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     * Weak bidirectional character type "BN" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
    public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = 9;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * Neutral bidirectional character type "B" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
    public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = 10;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
     * Neutral bidirectional character type "S" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = 11;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * Neutral bidirectional character type "WS" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
    public static final byte DIRECTIONALITY_WHITESPACE = 12;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     * Neutral bidirectional character type "ON" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    public static final byte DIRECTIONALITY_OTHER_NEUTRALS = 13;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     * Strong bidirectional character type "LRE" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = 14;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     * Strong bidirectional character type "LRO" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
    public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = 15;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     * Strong bidirectional character type "RLE" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = 16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     * Strong bidirectional character type "RLO" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = 17;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * Weak bidirectional character type "PDF" in the Unicode specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
    public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = 18;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   495
     * The minimum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   496
     * <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   497
     * Unicode high-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   498
     * in the UTF-16 encoding, constant <code>'&#92;uD800'</code>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   499
     * A high-surrogate is also known as a <i>leading-surrogate</i>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
    public static final char MIN_HIGH_SURROGATE = '\uD800';
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   506
     * The maximum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   507
     * <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   508
     * Unicode high-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   509
     * in the UTF-16 encoding, constant <code>'&#92;uDBFF'</code>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   510
     * A high-surrogate is also known as a <i>leading-surrogate</i>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
    public static final char MAX_HIGH_SURROGATE = '\uDBFF';
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   517
     * The minimum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   518
     * <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   519
     * Unicode low-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   520
     * in the UTF-16 encoding, constant <code>'&#92;uDC00'</code>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   521
     * A low-surrogate is also known as a <i>trailing-surrogate</i>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
    public static final char MIN_LOW_SURROGATE  = '\uDC00';
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   528
     * The maximum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   529
     * <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   530
     * Unicode low-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   531
     * in the UTF-16 encoding, constant <code>'&#92;uDFFF'</code>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   532
     * A low-surrogate is also known as a <i>trailing-surrogate</i>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
    public static final char MAX_LOW_SURROGATE  = '\uDFFF';
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   539
     * The minimum value of a Unicode surrogate code unit in the
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   540
     * UTF-16 encoding, constant <code>'&#92;uD800'</code>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
    public static final char MIN_SURROGATE = MIN_HIGH_SURROGATE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   547
     * The maximum value of a Unicode surrogate code unit in the
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   548
     * UTF-16 encoding, constant <code>'&#92;uDFFF'</code>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
    public static final char MAX_SURROGATE = MAX_LOW_SURROGATE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   555
     * The minimum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   556
     * <a href="http://www.unicode.org/glossary/#supplementary_code_point">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   557
     * Unicode supplementary code point</a>, constant {@code U+10000}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
    public static final int MIN_SUPPLEMENTARY_CODE_POINT = 0x010000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   564
     * The minimum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   565
     * <a href="http://www.unicode.org/glossary/#code_point">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   566
     * Unicode code point</a>, constant {@code U+0000}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
    public static final int MIN_CODE_POINT = 0x000000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   573
     * The maximum value of a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   574
     * <a href="http://www.unicode.org/glossary/#code_point">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   575
     * Unicode code point</a>, constant {@code U+10FFFF}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     */
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
   579
    public static final int MAX_CODE_POINT = 0X10FFFF;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * Instances of this class represent particular subsets of the Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
     * character set.  The only family of subsets defined in the
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   585
     * <code>Character</code> class is {@link Character.UnicodeBlock}.
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   586
     * Other portions of the Java API may define other subsets for their
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   587
     * own purposes.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
    public static class Subset  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
        private String name;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
         * Constructs a new <code>Subset</code> instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
         * @param  name  The name of this subset
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   599
         * @exception NullPointerException if name is <code>null</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
        protected Subset(String name) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
            if (name == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
                throw new NullPointerException("name");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
            this.name = name;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
         * Compares two <code>Subset</code> objects for equality.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
         * This method returns <code>true</code> if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
         * <code>this</code> and the argument refer to the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
         * object; since this method is <code>final</code>, this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
         * guarantee holds for all subclasses.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
        public final boolean equals(Object obj) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
            return (this == obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
         * Returns the standard hash code as defined by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
         * <code>{@link Object#hashCode}</code> method.  This method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
         * is <code>final</code> in order to ensure that the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
         * <code>equals</code> and <code>hashCode</code> methods will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
         * be consistent in all subclasses.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
        public final int hashCode() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
            return super.hashCode();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
         * Returns the name of this subset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
        public final String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
            return name;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   638
    // See http://www.unicode.org/Public/UNIDATA/Blocks.txt
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   639
    // for the latest specification of Unicode Blocks.
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   640
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
     * A family of character subsets representing the character blocks in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * Unicode specification. Character blocks generally define characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     * used for a specific script or purpose. A character is contained by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     * at most one Unicode block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
    public static final class UnicodeBlock extends Subset {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   651
        private static Map<String, UnicodeBlock> map
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
   652
            = new HashMap<String, UnicodeBlock>(256);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
        /**
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   655
         * Creates a UnicodeBlock with the given identifier name.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
         * This name must be the same as the block identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
        private UnicodeBlock(String idName) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
            super(idName);
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   660
            map.put(idName, this);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
        /**
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   664
         * Creates a UnicodeBlock with the given identifier name and
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
         * alias name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
        private UnicodeBlock(String idName, String alias) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
            this(idName);
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   669
            map.put(alias, this);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
        /**
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   673
         * Creates a UnicodeBlock with the given identifier name and
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
         * alias names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   676
        private UnicodeBlock(String idName, String... aliases) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
            this(idName);
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   678
            for (String alias : aliases)
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   679
                map.put(alias, this);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
         * Constant for the "Basic Latin" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
        public static final UnicodeBlock  BASIC_LATIN =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   687
            new UnicodeBlock("BASIC_LATIN",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   688
                             "BASIC LATIN",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   689
                             "BASICLATIN");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
         * Constant for the "Latin-1 Supplement" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
        public static final UnicodeBlock LATIN_1_SUPPLEMENT =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   696
            new UnicodeBlock("LATIN_1_SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   697
                             "LATIN-1 SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   698
                             "LATIN-1SUPPLEMENT");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
         * Constant for the "Latin Extended-A" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
        public static final UnicodeBlock LATIN_EXTENDED_A =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   705
            new UnicodeBlock("LATIN_EXTENDED_A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   706
                             "LATIN EXTENDED-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   707
                             "LATINEXTENDED-A");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
         * Constant for the "Latin Extended-B" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
        public static final UnicodeBlock LATIN_EXTENDED_B =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   714
            new UnicodeBlock("LATIN_EXTENDED_B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   715
                             "LATIN EXTENDED-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   716
                             "LATINEXTENDED-B");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
         * Constant for the "IPA Extensions" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
        public static final UnicodeBlock IPA_EXTENSIONS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   723
            new UnicodeBlock("IPA_EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   724
                             "IPA EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   725
                             "IPAEXTENSIONS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
         * Constant for the "Spacing Modifier Letters" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
        public static final UnicodeBlock SPACING_MODIFIER_LETTERS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   732
            new UnicodeBlock("SPACING_MODIFIER_LETTERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   733
                             "SPACING MODIFIER LETTERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   734
                             "SPACINGMODIFIERLETTERS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
         * Constant for the "Combining Diacritical Marks" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
        public static final UnicodeBlock COMBINING_DIACRITICAL_MARKS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   741
            new UnicodeBlock("COMBINING_DIACRITICAL_MARKS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   742
                             "COMBINING DIACRITICAL MARKS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   743
                             "COMBININGDIACRITICALMARKS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
         * Constant for the "Greek and Coptic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
         * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
         * This block was previously known as the "Greek" block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   752
        public static final UnicodeBlock GREEK =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   753
            new UnicodeBlock("GREEK",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   754
                             "GREEK AND COPTIC",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   755
                             "GREEKANDCOPTIC");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
         * Constant for the "Cyrillic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
        public static final UnicodeBlock CYRILLIC =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
            new UnicodeBlock("CYRILLIC");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
         * Constant for the "Armenian" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
        public static final UnicodeBlock ARMENIAN =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
            new UnicodeBlock("ARMENIAN");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
         * Constant for the "Hebrew" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
        public static final UnicodeBlock HEBREW =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
            new UnicodeBlock("HEBREW");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
         * Constant for the "Arabic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
        public static final UnicodeBlock ARABIC =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
            new UnicodeBlock("ARABIC");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
         * Constant for the "Devanagari" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
        public static final UnicodeBlock DEVANAGARI =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
            new UnicodeBlock("DEVANAGARI");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
         * Constant for the "Bengali" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
        public static final UnicodeBlock BENGALI =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
            new UnicodeBlock("BENGALI");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
         * Constant for the "Gurmukhi" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
        public static final UnicodeBlock GURMUKHI =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
            new UnicodeBlock("GURMUKHI");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
         * Constant for the "Gujarati" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
        public static final UnicodeBlock GUJARATI =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
            new UnicodeBlock("GUJARATI");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
         * Constant for the "Oriya" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
        public static final UnicodeBlock ORIYA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
            new UnicodeBlock("ORIYA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
         * Constant for the "Tamil" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
        public static final UnicodeBlock TAMIL =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
            new UnicodeBlock("TAMIL");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
         * Constant for the "Telugu" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
        public static final UnicodeBlock TELUGU =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
            new UnicodeBlock("TELUGU");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
         * Constant for the "Kannada" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
        public static final UnicodeBlock KANNADA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
            new UnicodeBlock("KANNADA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
         * Constant for the "Malayalam" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
        public static final UnicodeBlock MALAYALAM =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
            new UnicodeBlock("MALAYALAM");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
         * Constant for the "Thai" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
        public static final UnicodeBlock THAI =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
            new UnicodeBlock("THAI");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
         * Constant for the "Lao" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
        public static final UnicodeBlock LAO =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
            new UnicodeBlock("LAO");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
         * Constant for the "Tibetan" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
        public static final UnicodeBlock TIBETAN =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
            new UnicodeBlock("TIBETAN");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
         * Constant for the "Georgian" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
        public static final UnicodeBlock GEORGIAN =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
            new UnicodeBlock("GEORGIAN");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
         * Constant for the "Hangul Jamo" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
        public static final UnicodeBlock HANGUL_JAMO =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   881
            new UnicodeBlock("HANGUL_JAMO",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   882
                             "HANGUL JAMO",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   883
                             "HANGULJAMO");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
         * Constant for the "Latin Extended Additional" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
        public static final UnicodeBlock LATIN_EXTENDED_ADDITIONAL =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   890
            new UnicodeBlock("LATIN_EXTENDED_ADDITIONAL",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   891
                             "LATIN EXTENDED ADDITIONAL",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   892
                             "LATINEXTENDEDADDITIONAL");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
         * Constant for the "Greek Extended" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
        public static final UnicodeBlock GREEK_EXTENDED =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   899
            new UnicodeBlock("GREEK_EXTENDED",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   900
                             "GREEK EXTENDED",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   901
                             "GREEKEXTENDED");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
         * Constant for the "General Punctuation" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
        public static final UnicodeBlock GENERAL_PUNCTUATION =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   908
            new UnicodeBlock("GENERAL_PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   909
                             "GENERAL PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   910
                             "GENERALPUNCTUATION");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
   913
         * Constant for the "Superscripts and Subscripts" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
   914
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
        public static final UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   918
            new UnicodeBlock("SUPERSCRIPTS_AND_SUBSCRIPTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   919
                             "SUPERSCRIPTS AND SUBSCRIPTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   920
                             "SUPERSCRIPTSANDSUBSCRIPTS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
         * Constant for the "Currency Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
        public static final UnicodeBlock CURRENCY_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   927
            new UnicodeBlock("CURRENCY_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   928
                             "CURRENCY SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   929
                             "CURRENCYSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
   932
         * Constant for the "Combining Diacritical Marks for Symbols" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
   933
         * character block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
         * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
         * This block was previously known as "Combining Marks for Symbols".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
        public static final UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   939
            new UnicodeBlock("COMBINING_MARKS_FOR_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   940
                             "COMBINING DIACRITICAL MARKS FOR SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   941
                             "COMBININGDIACRITICALMARKSFORSYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   942
                             "COMBINING MARKS FOR SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   943
                             "COMBININGMARKSFORSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
         * Constant for the "Letterlike Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
        public static final UnicodeBlock LETTERLIKE_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   950
            new UnicodeBlock("LETTERLIKE_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   951
                             "LETTERLIKE SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   952
                             "LETTERLIKESYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
         * Constant for the "Number Forms" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
        public static final UnicodeBlock NUMBER_FORMS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   959
            new UnicodeBlock("NUMBER_FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   960
                             "NUMBER FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   961
                             "NUMBERFORMS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
         * Constant for the "Arrows" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
        public static final UnicodeBlock ARROWS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
            new UnicodeBlock("ARROWS");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
         * Constant for the "Mathematical Operators" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
        public static final UnicodeBlock MATHEMATICAL_OPERATORS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   975
            new UnicodeBlock("MATHEMATICAL_OPERATORS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   976
                             "MATHEMATICAL OPERATORS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   977
                             "MATHEMATICALOPERATORS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
         * Constant for the "Miscellaneous Technical" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
        public static final UnicodeBlock MISCELLANEOUS_TECHNICAL =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   984
            new UnicodeBlock("MISCELLANEOUS_TECHNICAL",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   985
                             "MISCELLANEOUS TECHNICAL",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   986
                             "MISCELLANEOUSTECHNICAL");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
         * Constant for the "Control Pictures" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
        public static final UnicodeBlock CONTROL_PICTURES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   993
            new UnicodeBlock("CONTROL_PICTURES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   994
                             "CONTROL PICTURES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
   995
                             "CONTROLPICTURES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
         * Constant for the "Optical Character Recognition" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
        public static final UnicodeBlock OPTICAL_CHARACTER_RECOGNITION =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1002
            new UnicodeBlock("OPTICAL_CHARACTER_RECOGNITION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1003
                             "OPTICAL CHARACTER RECOGNITION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1004
                             "OPTICALCHARACTERRECOGNITION");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
         * Constant for the "Enclosed Alphanumerics" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
        public static final UnicodeBlock ENCLOSED_ALPHANUMERICS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1011
            new UnicodeBlock("ENCLOSED_ALPHANUMERICS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1012
                             "ENCLOSED ALPHANUMERICS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1013
                             "ENCLOSEDALPHANUMERICS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
         * Constant for the "Box Drawing" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
        public static final UnicodeBlock BOX_DRAWING =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1020
            new UnicodeBlock("BOX_DRAWING",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1021
                             "BOX DRAWING",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1022
                             "BOXDRAWING");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
         * Constant for the "Block Elements" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
        public static final UnicodeBlock BLOCK_ELEMENTS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1029
            new UnicodeBlock("BLOCK_ELEMENTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1030
                             "BLOCK ELEMENTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1031
                             "BLOCKELEMENTS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
         * Constant for the "Geometric Shapes" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
        public static final UnicodeBlock GEOMETRIC_SHAPES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1038
            new UnicodeBlock("GEOMETRIC_SHAPES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1039
                             "GEOMETRIC SHAPES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1040
                             "GEOMETRICSHAPES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
         * Constant for the "Miscellaneous Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
        public static final UnicodeBlock MISCELLANEOUS_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1047
            new UnicodeBlock("MISCELLANEOUS_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1048
                             "MISCELLANEOUS SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1049
                             "MISCELLANEOUSSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
         * Constant for the "Dingbats" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
        public static final UnicodeBlock DINGBATS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
            new UnicodeBlock("DINGBATS");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
         * Constant for the "CJK Symbols and Punctuation" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
        public static final UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1063
            new UnicodeBlock("CJK_SYMBOLS_AND_PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1064
                             "CJK SYMBOLS AND PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1065
                             "CJKSYMBOLSANDPUNCTUATION");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
         * Constant for the "Hiragana" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
        public static final UnicodeBlock HIRAGANA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
            new UnicodeBlock("HIRAGANA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
         * Constant for the "Katakana" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
        public static final UnicodeBlock KATAKANA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
            new UnicodeBlock("KATAKANA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
         * Constant for the "Bopomofo" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
        public static final UnicodeBlock BOPOMOFO =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
            new UnicodeBlock("BOPOMOFO");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
         * Constant for the "Hangul Compatibility Jamo" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
        public static final UnicodeBlock HANGUL_COMPATIBILITY_JAMO =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1093
            new UnicodeBlock("HANGUL_COMPATIBILITY_JAMO",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1094
                             "HANGUL COMPATIBILITY JAMO",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1095
                             "HANGULCOMPATIBILITYJAMO");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
         * Constant for the "Kanbun" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
        public static final UnicodeBlock KANBUN =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
            new UnicodeBlock("KANBUN");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
         * Constant for the "Enclosed CJK Letters and Months" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
        public static final UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1109
            new UnicodeBlock("ENCLOSED_CJK_LETTERS_AND_MONTHS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1110
                             "ENCLOSED CJK LETTERS AND MONTHS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1111
                             "ENCLOSEDCJKLETTERSANDMONTHS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
         * Constant for the "CJK Compatibility" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
        public static final UnicodeBlock CJK_COMPATIBILITY =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1118
            new UnicodeBlock("CJK_COMPATIBILITY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1119
                             "CJK COMPATIBILITY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1120
                             "CJKCOMPATIBILITY");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
         * Constant for the "CJK Unified Ideographs" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
        public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1127
            new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1128
                             "CJK UNIFIED IDEOGRAPHS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1129
                             "CJKUNIFIEDIDEOGRAPHS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
         * Constant for the "Hangul Syllables" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
        public static final UnicodeBlock HANGUL_SYLLABLES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1136
            new UnicodeBlock("HANGUL_SYLLABLES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1137
                             "HANGUL SYLLABLES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1138
                             "HANGULSYLLABLES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
         * Constant for the "Private Use Area" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
        public static final UnicodeBlock PRIVATE_USE_AREA =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1145
            new UnicodeBlock("PRIVATE_USE_AREA",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1146
                             "PRIVATE USE AREA",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1147
                             "PRIVATEUSEAREA");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1150
         * Constant for the "CJK Compatibility Ideographs" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1151
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
        public static final UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
            new UnicodeBlock("CJK_COMPATIBILITY_IDEOGRAPHS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1156
                             "CJK COMPATIBILITY IDEOGRAPHS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1157
                             "CJKCOMPATIBILITYIDEOGRAPHS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
         * Constant for the "Alphabetic Presentation Forms" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
        public static final UnicodeBlock ALPHABETIC_PRESENTATION_FORMS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1164
            new UnicodeBlock("ALPHABETIC_PRESENTATION_FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1165
                             "ALPHABETIC PRESENTATION FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1166
                             "ALPHABETICPRESENTATIONFORMS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1169
         * Constant for the "Arabic Presentation Forms-A" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1170
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
        public static final UnicodeBlock ARABIC_PRESENTATION_FORMS_A =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1174
            new UnicodeBlock("ARABIC_PRESENTATION_FORMS_A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1175
                             "ARABIC PRESENTATION FORMS-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1176
                             "ARABICPRESENTATIONFORMS-A");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
         * Constant for the "Combining Half Marks" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
        public static final UnicodeBlock COMBINING_HALF_MARKS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1183
            new UnicodeBlock("COMBINING_HALF_MARKS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1184
                             "COMBINING HALF MARKS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1185
                             "COMBININGHALFMARKS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
         * Constant for the "CJK Compatibility Forms" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
        public static final UnicodeBlock CJK_COMPATIBILITY_FORMS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1192
            new UnicodeBlock("CJK_COMPATIBILITY_FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1193
                             "CJK COMPATIBILITY FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1194
                             "CJKCOMPATIBILITYFORMS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
         * Constant for the "Small Form Variants" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
        public static final UnicodeBlock SMALL_FORM_VARIANTS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1201
            new UnicodeBlock("SMALL_FORM_VARIANTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1202
                             "SMALL FORM VARIANTS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1203
                             "SMALLFORMVARIANTS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
         * Constant for the "Arabic Presentation Forms-B" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
        public static final UnicodeBlock ARABIC_PRESENTATION_FORMS_B =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1210
            new UnicodeBlock("ARABIC_PRESENTATION_FORMS_B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1211
                             "ARABIC PRESENTATION FORMS-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1212
                             "ARABICPRESENTATIONFORMS-B");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1215
         * Constant for the "Halfwidth and Fullwidth Forms" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1216
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
        public static final UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
            new UnicodeBlock("HALFWIDTH_AND_FULLWIDTH_FORMS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1221
                             "HALFWIDTH AND FULLWIDTH FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1222
                             "HALFWIDTHANDFULLWIDTHFORMS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
         * Constant for the "Specials" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
         * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
        public static final UnicodeBlock SPECIALS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
            new UnicodeBlock("SPECIALS");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
         * @deprecated As of J2SE 5, use {@link #HIGH_SURROGATES},
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
         *             {@link #HIGH_PRIVATE_USE_SURROGATES}, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
         *             {@link #LOW_SURROGATES}. These new constants match
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
         *             the block definitions of the Unicode Standard.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
         *             The {@link #of(char)} and {@link #of(int)} methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
         *             return the new constants, not SURROGATES_AREA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
        @Deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
        public static final UnicodeBlock SURROGATES_AREA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
            new UnicodeBlock("SURROGATES_AREA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
         * Constant for the "Syriac" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
        public static final UnicodeBlock SYRIAC =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
            new UnicodeBlock("SYRIAC");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
         * Constant for the "Thaana" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
        public static final UnicodeBlock THAANA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
            new UnicodeBlock("THAANA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
         * Constant for the "Sinhala" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
        public static final UnicodeBlock SINHALA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
            new UnicodeBlock("SINHALA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
         * Constant for the "Myanmar" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
        public static final UnicodeBlock MYANMAR =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
            new UnicodeBlock("MYANMAR");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
         * Constant for the "Ethiopic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
        public static final UnicodeBlock ETHIOPIC =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
            new UnicodeBlock("ETHIOPIC");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
         * Constant for the "Cherokee" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
        public static final UnicodeBlock CHEROKEE =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
            new UnicodeBlock("CHEROKEE");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
         * Constant for the "Unified Canadian Aboriginal Syllabics" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
        public static final UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
            new UnicodeBlock("UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1291
                             "UNIFIED CANADIAN ABORIGINAL SYLLABICS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1292
                             "UNIFIEDCANADIANABORIGINALSYLLABICS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
         * Constant for the "Ogham" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
        public static final UnicodeBlock OGHAM =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1299
            new UnicodeBlock("OGHAM");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
         * Constant for the "Runic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
        public static final UnicodeBlock RUNIC =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1306
            new UnicodeBlock("RUNIC");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
         * Constant for the "Khmer" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
        public static final UnicodeBlock KHMER =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1313
            new UnicodeBlock("KHMER");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
         * Constant for the "Mongolian" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
        public static final UnicodeBlock MONGOLIAN =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1320
            new UnicodeBlock("MONGOLIAN");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
         * Constant for the "Braille Patterns" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
        public static final UnicodeBlock BRAILLE_PATTERNS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1327
            new UnicodeBlock("BRAILLE_PATTERNS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1328
                             "BRAILLE PATTERNS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1329
                             "BRAILLEPATTERNS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
         * Constant for the "CJK Radicals Supplement" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
        public static final UnicodeBlock CJK_RADICALS_SUPPLEMENT =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1336
            new UnicodeBlock("CJK_RADICALS_SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1337
                             "CJK RADICALS SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1338
                             "CJKRADICALSSUPPLEMENT");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
         * Constant for the "Kangxi Radicals" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
        public static final UnicodeBlock KANGXI_RADICALS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1345
            new UnicodeBlock("KANGXI_RADICALS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1346
                             "KANGXI RADICALS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1347
                             "KANGXIRADICALS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
         * Constant for the "Ideographic Description Characters" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
        public static final UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1354
            new UnicodeBlock("IDEOGRAPHIC_DESCRIPTION_CHARACTERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1355
                             "IDEOGRAPHIC DESCRIPTION CHARACTERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1356
                             "IDEOGRAPHICDESCRIPTIONCHARACTERS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
         * Constant for the "Bopomofo Extended" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
        public static final UnicodeBlock BOPOMOFO_EXTENDED =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1363
            new UnicodeBlock("BOPOMOFO_EXTENDED",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1364
                             "BOPOMOFO EXTENDED",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1365
                             "BOPOMOFOEXTENDED");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
         * Constant for the "CJK Unified Ideographs Extension A" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
        public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1372
            new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1373
                             "CJK UNIFIED IDEOGRAPHS EXTENSION A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1374
                             "CJKUNIFIEDIDEOGRAPHSEXTENSIONA");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
         * Constant for the "Yi Syllables" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
        public static final UnicodeBlock YI_SYLLABLES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1381
            new UnicodeBlock("YI_SYLLABLES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1382
                             "YI SYLLABLES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1383
                             "YISYLLABLES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
         * Constant for the "Yi Radicals" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
         * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
        public static final UnicodeBlock YI_RADICALS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1390
            new UnicodeBlock("YI_RADICALS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1391
                             "YI RADICALS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1392
                             "YIRADICALS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
         * Constant for the "Cyrillic Supplementary" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
        public static final UnicodeBlock CYRILLIC_SUPPLEMENTARY =
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1399
            new UnicodeBlock("CYRILLIC_SUPPLEMENTARY",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1400
                             "CYRILLIC SUPPLEMENTARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1401
                             "CYRILLICSUPPLEMENTARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1402
                             "CYRILLIC SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1403
                             "CYRILLICSUPPLEMENT");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
         * Constant for the "Tagalog" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
        public static final UnicodeBlock TAGALOG =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
            new UnicodeBlock("TAGALOG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
         * Constant for the "Hanunoo" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
        public static final UnicodeBlock HANUNOO =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
            new UnicodeBlock("HANUNOO");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
         * Constant for the "Buhid" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
        public static final UnicodeBlock BUHID =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
            new UnicodeBlock("BUHID");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
         * Constant for the "Tagbanwa" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
        public static final UnicodeBlock TAGBANWA =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
            new UnicodeBlock("TAGBANWA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
         * Constant for the "Limbu" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
        public static final UnicodeBlock LIMBU =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
            new UnicodeBlock("LIMBU");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
         * Constant for the "Tai Le" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
        public static final UnicodeBlock TAI_LE =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1445
            new UnicodeBlock("TAI_LE",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1446
                             "TAI LE",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1447
                             "TAILE");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
         * Constant for the "Khmer Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
        public static final UnicodeBlock KHMER_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1454
            new UnicodeBlock("KHMER_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1455
                             "KHMER SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1456
                             "KHMERSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
         * Constant for the "Phonetic Extensions" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
        public static final UnicodeBlock PHONETIC_EXTENSIONS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1463
            new UnicodeBlock("PHONETIC_EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1464
                             "PHONETIC EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1465
                             "PHONETICEXTENSIONS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
         * Constant for the "Miscellaneous Mathematical Symbols-A" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
        public static final UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
            new UnicodeBlock("MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1473
                             "MISCELLANEOUS MATHEMATICAL SYMBOLS-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1474
                             "MISCELLANEOUSMATHEMATICALSYMBOLS-A");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
         * Constant for the "Supplemental Arrows-A" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
        public static final UnicodeBlock SUPPLEMENTAL_ARROWS_A =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1481
            new UnicodeBlock("SUPPLEMENTAL_ARROWS_A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1482
                             "SUPPLEMENTAL ARROWS-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1483
                             "SUPPLEMENTALARROWS-A");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
         * Constant for the "Supplemental Arrows-B" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
        public static final UnicodeBlock SUPPLEMENTAL_ARROWS_B =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1490
            new UnicodeBlock("SUPPLEMENTAL_ARROWS_B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1491
                             "SUPPLEMENTAL ARROWS-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1492
                             "SUPPLEMENTALARROWS-B");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1495
         * Constant for the "Miscellaneous Mathematical Symbols-B" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1496
         * character block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1499
        public static final UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1500
            new UnicodeBlock("MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1501
                             "MISCELLANEOUS MATHEMATICAL SYMBOLS-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1502
                             "MISCELLANEOUSMATHEMATICALSYMBOLS-B");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1505
         * Constant for the "Supplemental Mathematical Operators" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1506
         * character block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
        public static final UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
            new UnicodeBlock("SUPPLEMENTAL_MATHEMATICAL_OPERATORS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1511
                             "SUPPLEMENTAL MATHEMATICAL OPERATORS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1512
                             "SUPPLEMENTALMATHEMATICALOPERATORS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1515
         * Constant for the "Miscellaneous Symbols and Arrows" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1516
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
        public static final UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1520
            new UnicodeBlock("MISCELLANEOUS_SYMBOLS_AND_ARROWS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1521
                             "MISCELLANEOUS SYMBOLS AND ARROWS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1522
                             "MISCELLANEOUSSYMBOLSANDARROWS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1525
         * Constant for the "Katakana Phonetic Extensions" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1526
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
        public static final UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1530
            new UnicodeBlock("KATAKANA_PHONETIC_EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1531
                             "KATAKANA PHONETIC EXTENSIONS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1532
                             "KATAKANAPHONETICEXTENSIONS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
         * Constant for the "Yijing Hexagram Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
        public static final UnicodeBlock YIJING_HEXAGRAM_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1539
            new UnicodeBlock("YIJING_HEXAGRAM_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1540
                             "YIJING HEXAGRAM SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1541
                             "YIJINGHEXAGRAMSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
         * Constant for the "Variation Selectors" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
        public static final UnicodeBlock VARIATION_SELECTORS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1548
            new UnicodeBlock("VARIATION_SELECTORS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1549
                             "VARIATION SELECTORS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1550
                             "VARIATIONSELECTORS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
         * Constant for the "Linear B Syllabary" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
        public static final UnicodeBlock LINEAR_B_SYLLABARY =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1557
            new UnicodeBlock("LINEAR_B_SYLLABARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1558
                             "LINEAR B SYLLABARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1559
                             "LINEARBSYLLABARY");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
         * Constant for the "Linear B Ideograms" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
        public static final UnicodeBlock LINEAR_B_IDEOGRAMS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1566
            new UnicodeBlock("LINEAR_B_IDEOGRAMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1567
                             "LINEAR B IDEOGRAMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1568
                             "LINEARBIDEOGRAMS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
         * Constant for the "Aegean Numbers" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
        public static final UnicodeBlock AEGEAN_NUMBERS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1575
            new UnicodeBlock("AEGEAN_NUMBERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1576
                             "AEGEAN NUMBERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1577
                             "AEGEANNUMBERS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
         * Constant for the "Old Italic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
        public static final UnicodeBlock OLD_ITALIC =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1584
            new UnicodeBlock("OLD_ITALIC",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1585
                             "OLD ITALIC",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1586
                             "OLDITALIC");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
         * Constant for the "Gothic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1592
        public static final UnicodeBlock GOTHIC =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1593
            new UnicodeBlock("GOTHIC");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
         * Constant for the "Ugaritic" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1599
        public static final UnicodeBlock UGARITIC =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1600
            new UnicodeBlock("UGARITIC");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
         * Constant for the "Deseret" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1606
        public static final UnicodeBlock DESERET =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1607
            new UnicodeBlock("DESERET");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
         * Constant for the "Shavian" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1613
        public static final UnicodeBlock SHAVIAN =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1614
            new UnicodeBlock("SHAVIAN");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
         * Constant for the "Osmanya" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1620
        public static final UnicodeBlock OSMANYA =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1621
            new UnicodeBlock("OSMANYA");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
         * Constant for the "Cypriot Syllabary" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
        public static final UnicodeBlock CYPRIOT_SYLLABARY =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1628
            new UnicodeBlock("CYPRIOT_SYLLABARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1629
                             "CYPRIOT SYLLABARY",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1630
                             "CYPRIOTSYLLABARY");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
         * Constant for the "Byzantine Musical Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
        public static final UnicodeBlock BYZANTINE_MUSICAL_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1637
            new UnicodeBlock("BYZANTINE_MUSICAL_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1638
                             "BYZANTINE MUSICAL SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1639
                             "BYZANTINEMUSICALSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
         * Constant for the "Musical Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
        public static final UnicodeBlock MUSICAL_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1646
            new UnicodeBlock("MUSICAL_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1647
                             "MUSICAL SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1648
                             "MUSICALSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
         * Constant for the "Tai Xuan Jing Symbols" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
        public static final UnicodeBlock TAI_XUAN_JING_SYMBOLS =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1655
            new UnicodeBlock("TAI_XUAN_JING_SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1656
                             "TAI XUAN JING SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1657
                             "TAIXUANJINGSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1660
         * Constant for the "Mathematical Alphanumeric Symbols" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1661
         * character block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
        public static final UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
            new UnicodeBlock("MATHEMATICAL_ALPHANUMERIC_SYMBOLS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1666
                             "MATHEMATICAL ALPHANUMERIC SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1667
                             "MATHEMATICALALPHANUMERICSYMBOLS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1670
         * Constant for the "CJK Unified Ideographs Extension B" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1671
         * character block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
        public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
            new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1676
                             "CJK UNIFIED IDEOGRAPHS EXTENSION B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1677
                             "CJKUNIFIEDIDEOGRAPHSEXTENSIONB");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
         * Constant for the "CJK Compatibility Ideographs Supplement" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
        public static final UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
            new UnicodeBlock("CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1685
                             "CJK COMPATIBILITY IDEOGRAPHS SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1686
                             "CJKCOMPATIBILITYIDEOGRAPHSSUPPLEMENT");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
         * Constant for the "Tags" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1692
        public static final UnicodeBlock TAGS =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1693
            new UnicodeBlock("TAGS");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1696
         * Constant for the "Variation Selectors Supplement" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1697
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
        public static final UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1701
            new UnicodeBlock("VARIATION_SELECTORS_SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1702
                             "VARIATION SELECTORS SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1703
                             "VARIATIONSELECTORSSUPPLEMENT");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1706
         * Constant for the "Supplementary Private Use Area-A" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1707
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
        public static final UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
            new UnicodeBlock("SUPPLEMENTARY_PRIVATE_USE_AREA_A",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1712
                             "SUPPLEMENTARY PRIVATE USE AREA-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1713
                             "SUPPLEMENTARYPRIVATEUSEAREA-A");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1716
         * Constant for the "Supplementary Private Use Area-B" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1717
         * block.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
        public static final UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
            new UnicodeBlock("SUPPLEMENTARY_PRIVATE_USE_AREA_B",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1722
                             "SUPPLEMENTARY PRIVATE USE AREA-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1723
                             "SUPPLEMENTARYPRIVATEUSEAREA-B");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
         * Constant for the "High Surrogates" Unicode character block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
         * This block represents codepoint values in the high surrogate
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1728
         * range: U+D800 through U+DB7F
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
        public static final UnicodeBlock HIGH_SURROGATES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1733
            new UnicodeBlock("HIGH_SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1734
                             "HIGH SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1735
                             "HIGHSURROGATES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1738
         * Constant for the "High Private Use Surrogates" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1739
         * block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1740
         * This block represents codepoint values in the private use high
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1741
         * surrogate range: U+DB80 through U+DBFF
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
        public static final UnicodeBlock HIGH_PRIVATE_USE_SURROGATES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1746
            new UnicodeBlock("HIGH_PRIVATE_USE_SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1747
                             "HIGH PRIVATE USE SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1748
                             "HIGHPRIVATEUSESURROGATES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
         * Constant for the "Low Surrogates" Unicode character block.
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1752
         * This block represents codepoint values in the low surrogate
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1753
         * range: U+DC00 through U+DFFF
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
        public static final UnicodeBlock LOW_SURROGATES =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1758
            new UnicodeBlock("LOW_SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1759
                             "LOW SURROGATES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1760
                             "LOWSURROGATES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1762
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1763
         * Constant for the "Arabic Supplement" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1764
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1765
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1766
        public static final UnicodeBlock ARABIC_SUPPLEMENT =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1767
            new UnicodeBlock("ARABIC_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1768
                             "ARABIC SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1769
                             "ARABICSUPPLEMENT");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1770
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1771
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1772
         * Constant for the "NKo" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1773
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1774
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1775
        public static final UnicodeBlock NKO =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1776
            new UnicodeBlock("NKO");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1777
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1778
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1779
         * Constant for the "Samaritan" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1780
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1781
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1782
        public static final UnicodeBlock SAMARITAN =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1783
            new UnicodeBlock("SAMARITAN");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1784
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1785
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1786
         * Constant for the "Mandaic" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1787
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1788
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1789
        public static final UnicodeBlock MANDAIC =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1790
            new UnicodeBlock("MANDAIC");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1791
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1792
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1793
         * Constant for the "Ethiopic Supplement" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1794
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1795
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1796
        public static final UnicodeBlock ETHIOPIC_SUPPLEMENT =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1797
            new UnicodeBlock("ETHIOPIC_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1798
                             "ETHIOPIC SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1799
                             "ETHIOPICSUPPLEMENT");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1800
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1801
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1802
         * Constant for the "Unified Canadian Aboriginal Syllabics Extended"
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1803
         * Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1804
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1805
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1806
        public static final UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1807
            new UnicodeBlock("UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1808
                             "UNIFIED CANADIAN ABORIGINAL SYLLABICS EXTENDED",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1809
                             "UNIFIEDCANADIANABORIGINALSYLLABICSEXTENDED");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1810
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1811
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1812
         * Constant for the "New Tai Lue" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1813
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1814
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1815
        public static final UnicodeBlock NEW_TAI_LUE =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1816
            new UnicodeBlock("NEW_TAI_LUE",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1817
                             "NEW TAI LUE",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1818
                             "NEWTAILUE");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1819
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1820
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1821
         * Constant for the "Buginese" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1822
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1823
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1824
        public static final UnicodeBlock BUGINESE =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1825
            new UnicodeBlock("BUGINESE");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1826
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1827
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1828
         * Constant for the "Tai Tham" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1829
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1830
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1831
        public static final UnicodeBlock TAI_THAM =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1832
            new UnicodeBlock("TAI_THAM",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1833
                             "TAI THAM",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1834
                             "TAITHAM");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1835
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1836
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1837
         * Constant for the "Balinese" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1838
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1839
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1840
        public static final UnicodeBlock BALINESE =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1841
            new UnicodeBlock("BALINESE");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1842
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1843
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1844
         * Constant for the "Sundanese" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1845
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1846
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1847
        public static final UnicodeBlock SUNDANESE =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1848
            new UnicodeBlock("SUNDANESE");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1849
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1850
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1851
         * Constant for the "Batak" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1852
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1853
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1854
        public static final UnicodeBlock BATAK =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1855
            new UnicodeBlock("BATAK");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1856
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1857
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1858
         * Constant for the "Lepcha" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1859
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1860
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1861
        public static final UnicodeBlock LEPCHA =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1862
            new UnicodeBlock("LEPCHA");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1863
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1864
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1865
         * Constant for the "Ol Chiki" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1866
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1867
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1868
        public static final UnicodeBlock OL_CHIKI =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1869
            new UnicodeBlock("OL_CHIKI",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1870
                             "OL CHIKI",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1871
                             "OLCHIKI");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1872
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1873
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1874
         * Constant for the "Vedic Extensions" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1875
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1876
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1877
        public static final UnicodeBlock VEDIC_EXTENSIONS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1878
            new UnicodeBlock("VEDIC_EXTENSIONS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1879
                             "VEDIC EXTENSIONS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1880
                             "VEDICEXTENSIONS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1881
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1882
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1883
         * Constant for the "Phonetic Extensions Supplement" Unicode character
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1884
         * block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1885
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1886
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1887
        public static final UnicodeBlock PHONETIC_EXTENSIONS_SUPPLEMENT =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1888
            new UnicodeBlock("PHONETIC_EXTENSIONS_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1889
                             "PHONETIC EXTENSIONS SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1890
                             "PHONETICEXTENSIONSSUPPLEMENT");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1891
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1892
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1893
         * Constant for the "Combining Diacritical Marks Supplement" Unicode
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1894
         * character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1895
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1896
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1897
        public static final UnicodeBlock COMBINING_DIACRITICAL_MARKS_SUPPLEMENT =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1898
            new UnicodeBlock("COMBINING_DIACRITICAL_MARKS_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1899
                             "COMBINING DIACRITICAL MARKS SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1900
                             "COMBININGDIACRITICALMARKSSUPPLEMENT");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1901
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1902
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1903
         * Constant for the "Glagolitic" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1904
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1905
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1906
        public static final UnicodeBlock GLAGOLITIC =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1907
            new UnicodeBlock("GLAGOLITIC");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1908
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1909
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1910
         * Constant for the "Latin Extended-C" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1911
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1912
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1913
        public static final UnicodeBlock LATIN_EXTENDED_C =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1914
            new UnicodeBlock("LATIN_EXTENDED_C",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1915
                             "LATIN EXTENDED-C",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1916
                             "LATINEXTENDED-C");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1917
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1918
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1919
         * Constant for the "Coptic" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1920
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1921
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1922
        public static final UnicodeBlock COPTIC =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1923
            new UnicodeBlock("COPTIC");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1924
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1925
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1926
         * Constant for the "Georgian Supplement" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1927
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1928
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1929
        public static final UnicodeBlock GEORGIAN_SUPPLEMENT =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1930
            new UnicodeBlock("GEORGIAN_SUPPLEMENT",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1931
                             "GEORGIAN SUPPLEMENT",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1932
                             "GEORGIANSUPPLEMENT");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1933
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1934
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1935
         * Constant for the "Tifinagh" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1936
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1937
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1938
        public static final UnicodeBlock TIFINAGH =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1939
            new UnicodeBlock("TIFINAGH");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1940
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1941
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1942
         * Constant for the "Ethiopic Extended" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1943
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1944
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1945
        public static final UnicodeBlock ETHIOPIC_EXTENDED =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1946
            new UnicodeBlock("ETHIOPIC_EXTENDED",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1947
                             "ETHIOPIC EXTENDED",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1948
                             "ETHIOPICEXTENDED");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1949
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1950
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1951
         * Constant for the "Cyrillic Extended-A" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1952
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1953
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1954
        public static final UnicodeBlock CYRILLIC_EXTENDED_A =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1955
            new UnicodeBlock("CYRILLIC_EXTENDED_A",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1956
                             "CYRILLIC EXTENDED-A",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1957
                             "CYRILLICEXTENDED-A");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1958
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1959
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1960
         * Constant for the "Supplemental Punctuation" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1961
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1962
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1963
        public static final UnicodeBlock SUPPLEMENTAL_PUNCTUATION =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1964
            new UnicodeBlock("SUPPLEMENTAL_PUNCTUATION",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1965
                             "SUPPLEMENTAL PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1966
                             "SUPPLEMENTALPUNCTUATION");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1967
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1968
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1969
         * Constant for the "CJK Strokes" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1970
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1971
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1972
        public static final UnicodeBlock CJK_STROKES =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1973
            new UnicodeBlock("CJK_STROKES",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1974
                             "CJK STROKES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1975
                             "CJKSTROKES");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1976
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1977
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1978
         * Constant for the "Lisu" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1979
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1980
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1981
        public static final UnicodeBlock LISU =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1982
            new UnicodeBlock("LISU");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1983
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  1984
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1985
         * Constant for the "Vai" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1986
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1987
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1988
        public static final UnicodeBlock VAI =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1989
            new UnicodeBlock("VAI");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1990
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1991
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1992
         * Constant for the "Cyrillic Extended-B" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1993
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1994
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1995
        public static final UnicodeBlock CYRILLIC_EXTENDED_B =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1996
            new UnicodeBlock("CYRILLIC_EXTENDED_B",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1997
                             "CYRILLIC EXTENDED-B",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  1998
                             "CYRILLICEXTENDED-B");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  1999
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2000
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2001
         * Constant for the "Bamum" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2002
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2003
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2004
        public static final UnicodeBlock BAMUM =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2005
            new UnicodeBlock("BAMUM");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2006
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2007
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2008
         * Constant for the "Modifier Tone Letters" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2009
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2010
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2011
        public static final UnicodeBlock MODIFIER_TONE_LETTERS =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2012
            new UnicodeBlock("MODIFIER_TONE_LETTERS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2013
                             "MODIFIER TONE LETTERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2014
                             "MODIFIERTONELETTERS");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2015
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2016
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2017
         * Constant for the "Latin Extended-D" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2018
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2019
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2020
        public static final UnicodeBlock LATIN_EXTENDED_D =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2021
            new UnicodeBlock("LATIN_EXTENDED_D",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2022
                             "LATIN EXTENDED-D",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2023
                             "LATINEXTENDED-D");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2024
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2025
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2026
         * Constant for the "Syloti Nagri" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2027
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2028
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2029
        public static final UnicodeBlock SYLOTI_NAGRI =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2030
            new UnicodeBlock("SYLOTI_NAGRI",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2031
                             "SYLOTI NAGRI",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2032
                             "SYLOTINAGRI");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2033
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2034
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2035
         * Constant for the "Common Indic Number Forms" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2036
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2037
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2038
        public static final UnicodeBlock COMMON_INDIC_NUMBER_FORMS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2039
            new UnicodeBlock("COMMON_INDIC_NUMBER_FORMS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2040
                             "COMMON INDIC NUMBER FORMS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2041
                             "COMMONINDICNUMBERFORMS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2042
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2043
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2044
         * Constant for the "Phags-pa" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2045
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2046
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2047
        public static final UnicodeBlock PHAGS_PA =
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2048
            new UnicodeBlock("PHAGS_PA",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2049
                             "PHAGS-PA");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2050
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2051
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2052
         * Constant for the "Saurashtra" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2053
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2054
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2055
        public static final UnicodeBlock SAURASHTRA =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2056
            new UnicodeBlock("SAURASHTRA");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2057
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2058
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2059
         * Constant for the "Devanagari Extended" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2060
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2061
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2062
        public static final UnicodeBlock DEVANAGARI_EXTENDED =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2063
            new UnicodeBlock("DEVANAGARI_EXTENDED",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2064
                             "DEVANAGARI EXTENDED",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2065
                             "DEVANAGARIEXTENDED");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2066
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2067
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2068
         * Constant for the "Kayah Li" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2069
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2070
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2071
        public static final UnicodeBlock KAYAH_LI =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2072
            new UnicodeBlock("KAYAH_LI",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2073
                             "KAYAH LI",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2074
                             "KAYAHLI");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2075
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2076
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2077
         * Constant for the "Rejang" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2078
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2079
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2080
        public static final UnicodeBlock REJANG =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2081
            new UnicodeBlock("REJANG");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2082
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2083
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2084
         * Constant for the "Hangul Jamo Extended-A" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2085
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2086
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2087
        public static final UnicodeBlock HANGUL_JAMO_EXTENDED_A =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2088
            new UnicodeBlock("HANGUL_JAMO_EXTENDED_A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2089
                             "HANGUL JAMO EXTENDED-A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2090
                             "HANGULJAMOEXTENDED-A");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2091
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2092
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2093
         * Constant for the "Javanese" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2094
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2095
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2096
        public static final UnicodeBlock JAVANESE =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2097
            new UnicodeBlock("JAVANESE");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2098
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2099
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2100
         * Constant for the "Cham" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2101
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2102
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2103
        public static final UnicodeBlock CHAM =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2104
            new UnicodeBlock("CHAM");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2105
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2106
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2107
         * Constant for the "Myanmar Extended-A" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2108
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2109
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2110
        public static final UnicodeBlock MYANMAR_EXTENDED_A =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2111
            new UnicodeBlock("MYANMAR_EXTENDED_A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2112
                             "MYANMAR EXTENDED-A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2113
                             "MYANMAREXTENDED-A");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2114
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2115
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2116
         * Constant for the "Tai Viet" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2117
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2118
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2119
        public static final UnicodeBlock TAI_VIET =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2120
            new UnicodeBlock("TAI_VIET",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2121
                             "TAI VIET",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2122
                             "TAIVIET");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2123
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2124
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2125
         * Constant for the "Ethiopic Extended-A" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2126
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2127
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2128
        public static final UnicodeBlock ETHIOPIC_EXTENDED_A =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2129
            new UnicodeBlock("ETHIOPIC_EXTENDED_A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2130
                             "ETHIOPIC EXTENDED-A",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2131
                             "ETHIOPICEXTENDED-A");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2132
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2133
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2134
         * Constant for the "Meetei Mayek" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2135
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2136
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2137
        public static final UnicodeBlock MEETEI_MAYEK =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2138
            new UnicodeBlock("MEETEI_MAYEK",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2139
                             "MEETEI MAYEK",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2140
                             "MEETEIMAYEK");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2141
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2142
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2143
         * Constant for the "Hangul Jamo Extended-B" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2144
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2145
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2146
        public static final UnicodeBlock HANGUL_JAMO_EXTENDED_B =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2147
            new UnicodeBlock("HANGUL_JAMO_EXTENDED_B",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2148
                             "HANGUL JAMO EXTENDED-B",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2149
                             "HANGULJAMOEXTENDED-B");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2150
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2151
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2152
         * Constant for the "Vertical Forms" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2153
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2154
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2155
        public static final UnicodeBlock VERTICAL_FORMS =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2156
            new UnicodeBlock("VERTICAL_FORMS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2157
                             "VERTICAL FORMS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2158
                             "VERTICALFORMS");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2159
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2160
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2161
         * Constant for the "Ancient Greek Numbers" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2162
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2163
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2164
        public static final UnicodeBlock ANCIENT_GREEK_NUMBERS =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2165
            new UnicodeBlock("ANCIENT_GREEK_NUMBERS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2166
                             "ANCIENT GREEK NUMBERS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2167
                             "ANCIENTGREEKNUMBERS");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2168
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2169
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2170
         * Constant for the "Ancient Symbols" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2171
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2172
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2173
        public static final UnicodeBlock ANCIENT_SYMBOLS =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2174
            new UnicodeBlock("ANCIENT_SYMBOLS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2175
                             "ANCIENT SYMBOLS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2176
                             "ANCIENTSYMBOLS");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2177
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2178
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2179
         * Constant for the "Phaistos Disc" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2180
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2181
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2182
        public static final UnicodeBlock PHAISTOS_DISC =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2183
            new UnicodeBlock("PHAISTOS_DISC",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2184
                             "PHAISTOS DISC",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2185
                             "PHAISTOSDISC");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2186
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2187
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2188
         * Constant for the "Lycian" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2189
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2190
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2191
        public static final UnicodeBlock LYCIAN =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2192
            new UnicodeBlock("LYCIAN");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2193
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2194
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2195
         * Constant for the "Carian" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2196
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2197
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2198
        public static final UnicodeBlock CARIAN =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2199
            new UnicodeBlock("CARIAN");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2200
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2201
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2202
         * Constant for the "Old Persian" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2203
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2204
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2205
        public static final UnicodeBlock OLD_PERSIAN =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2206
            new UnicodeBlock("OLD_PERSIAN",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2207
                             "OLD PERSIAN",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2208
                             "OLDPERSIAN");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2209
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2210
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2211
         * Constant for the "Imperial Aramaic" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2212
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2213
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2214
        public static final UnicodeBlock IMPERIAL_ARAMAIC =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2215
            new UnicodeBlock("IMPERIAL_ARAMAIC",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2216
                             "IMPERIAL ARAMAIC",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2217
                             "IMPERIALARAMAIC");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2218
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2219
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2220
         * Constant for the "Phoenician" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2221
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2222
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2223
        public static final UnicodeBlock PHOENICIAN =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2224
            new UnicodeBlock("PHOENICIAN");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2225
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2226
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2227
         * Constant for the "Lydian" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2228
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2229
         */
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2230
        public static final UnicodeBlock LYDIAN =
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2231
            new UnicodeBlock("LYDIAN");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2232
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2233
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2234
         * Constant for the "Kharoshthi" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2235
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2236
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2237
        public static final UnicodeBlock KHAROSHTHI =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2238
            new UnicodeBlock("KHAROSHTHI");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2239
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2240
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2241
         * Constant for the "Old South Arabian" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2242
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2243
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2244
        public static final UnicodeBlock OLD_SOUTH_ARABIAN =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2245
            new UnicodeBlock("OLD_SOUTH_ARABIAN",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2246
                             "OLD SOUTH ARABIAN",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2247
                             "OLDSOUTHARABIAN");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2248
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2249
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2250
         * Constant for the "Avestan" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2251
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2252
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2253
        public static final UnicodeBlock AVESTAN =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2254
            new UnicodeBlock("AVESTAN");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2255
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2256
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2257
         * Constant for the "Inscriptional Parthian" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2258
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2259
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2260
        public static final UnicodeBlock INSCRIPTIONAL_PARTHIAN =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2261
            new UnicodeBlock("INSCRIPTIONAL_PARTHIAN",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2262
                             "INSCRIPTIONAL PARTHIAN",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2263
                             "INSCRIPTIONALPARTHIAN");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2264
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2265
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2266
         * Constant for the "Inscriptional Pahlavi" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2267
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2268
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2269
        public static final UnicodeBlock INSCRIPTIONAL_PAHLAVI =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2270
            new UnicodeBlock("INSCRIPTIONAL_PAHLAVI",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2271
                             "INSCRIPTIONAL PAHLAVI",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2272
                             "INSCRIPTIONALPAHLAVI");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2273
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2274
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2275
         * Constant for the "Old Turkic" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2276
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2277
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2278
        public static final UnicodeBlock OLD_TURKIC =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2279
            new UnicodeBlock("OLD_TURKIC",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2280
                             "OLD TURKIC",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2281
                             "OLDTURKIC");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2282
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2283
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2284
         * Constant for the "Rumi Numeral Symbols" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2285
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2286
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2287
        public static final UnicodeBlock RUMI_NUMERAL_SYMBOLS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2288
            new UnicodeBlock("RUMI_NUMERAL_SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2289
                             "RUMI NUMERAL SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2290
                             "RUMINUMERALSYMBOLS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2291
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2292
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2293
         * Constant for the "Brahmi" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2294
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2295
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2296
        public static final UnicodeBlock BRAHMI =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2297
            new UnicodeBlock("BRAHMI");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2298
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2299
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2300
         * Constant for the "Kaithi" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2301
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2302
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2303
        public static final UnicodeBlock KAITHI =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2304
            new UnicodeBlock("KAITHI");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2305
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2306
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2307
         * Constant for the "Cuneiform" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2308
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2309
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2310
        public static final UnicodeBlock CUNEIFORM =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2311
            new UnicodeBlock("CUNEIFORM");
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2312
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2313
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2314
         * Constant for the "Cuneiform Numbers and Punctuation" Unicode
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2315
         * character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2316
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2317
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2318
        public static final UnicodeBlock CUNEIFORM_NUMBERS_AND_PUNCTUATION =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2319
            new UnicodeBlock("CUNEIFORM_NUMBERS_AND_PUNCTUATION",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2320
                             "CUNEIFORM NUMBERS AND PUNCTUATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2321
                             "CUNEIFORMNUMBERSANDPUNCTUATION");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2322
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2323
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2324
         * Constant for the "Egyptian Hieroglyphs" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2325
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2326
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2327
        public static final UnicodeBlock EGYPTIAN_HIEROGLYPHS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2328
            new UnicodeBlock("EGYPTIAN_HIEROGLYPHS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2329
                             "EGYPTIAN HIEROGLYPHS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2330
                             "EGYPTIANHIEROGLYPHS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2331
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2332
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2333
         * Constant for the "Bamum Supplement" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2334
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2335
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2336
        public static final UnicodeBlock BAMUM_SUPPLEMENT =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2337
            new UnicodeBlock("BAMUM_SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2338
                             "BAMUM SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2339
                             "BAMUMSUPPLEMENT");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2340
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2341
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2342
         * Constant for the "Kana Supplement" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2343
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2344
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2345
        public static final UnicodeBlock KANA_SUPPLEMENT =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2346
            new UnicodeBlock("KANA_SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2347
                             "KANA SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2348
                             "KANASUPPLEMENT");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2349
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2350
        /**
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2351
         * Constant for the "Ancient Greek Musical Notation" Unicode character
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2352
         * block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2353
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2354
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2355
        public static final UnicodeBlock ANCIENT_GREEK_MUSICAL_NOTATION =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2356
            new UnicodeBlock("ANCIENT_GREEK_MUSICAL_NOTATION",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2357
                             "ANCIENT GREEK MUSICAL NOTATION",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2358
                             "ANCIENTGREEKMUSICALNOTATION");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2359
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2360
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2361
         * Constant for the "Counting Rod Numerals" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2362
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2363
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2364
        public static final UnicodeBlock COUNTING_ROD_NUMERALS =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2365
            new UnicodeBlock("COUNTING_ROD_NUMERALS",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2366
                             "COUNTING ROD NUMERALS",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2367
                             "COUNTINGRODNUMERALS");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2368
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2369
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2370
         * Constant for the "Mahjong Tiles" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2371
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2372
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2373
        public static final UnicodeBlock MAHJONG_TILES =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2374
            new UnicodeBlock("MAHJONG_TILES",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2375
                             "MAHJONG TILES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2376
                             "MAHJONGTILES");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2377
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2378
        /**
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2379
         * Constant for the "Domino Tiles" Unicode character block.
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2380
         * @since 1.7
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2381
         */
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2382
        public static final UnicodeBlock DOMINO_TILES =
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2383
            new UnicodeBlock("DOMINO_TILES",
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2384
                             "DOMINO TILES",
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2385
                             "DOMINOTILES");
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2386
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2387
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2388
         * Constant for the "Playing Cards" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2389
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2390
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2391
        public static final UnicodeBlock PLAYING_CARDS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2392
            new UnicodeBlock("PLAYING_CARDS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2393
                             "PLAYING CARDS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2394
                             "PLAYINGCARDS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2395
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2396
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2397
         * Constant for the "Enclosed Alphanumeric Supplement" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2398
         * block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2399
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2400
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2401
        public static final UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2402
            new UnicodeBlock("ENCLOSED_ALPHANUMERIC_SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2403
                             "ENCLOSED ALPHANUMERIC SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2404
                             "ENCLOSEDALPHANUMERICSUPPLEMENT");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2405
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2406
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2407
         * Constant for the "Enclosed Ideographic Supplement" Unicode character
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2408
         * block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2409
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2410
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2411
        public static final UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2412
            new UnicodeBlock("ENCLOSED_IDEOGRAPHIC_SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2413
                             "ENCLOSED IDEOGRAPHIC SUPPLEMENT",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2414
                             "ENCLOSEDIDEOGRAPHICSUPPLEMENT");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2415
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2416
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2417
         * Constant for the "Miscellaneous Symbols And Pictographs" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2418
         * character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2419
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2420
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2421
        public static final UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2422
            new UnicodeBlock("MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2423
                             "MISCELLANEOUS SYMBOLS AND PICTOGRAPHS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2424
                             "MISCELLANEOUSSYMBOLSANDPICTOGRAPHS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2425
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2426
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2427
         * Constant for the "Emoticons" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2428
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2429
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2430
        public static final UnicodeBlock EMOTICONS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2431
            new UnicodeBlock("EMOTICONS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2432
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2433
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2434
         * Constant for the "Transport And Map Symbols" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2435
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2436
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2437
        public static final UnicodeBlock TRANSPORT_AND_MAP_SYMBOLS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2438
            new UnicodeBlock("TRANSPORT_AND_MAP_SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2439
                             "TRANSPORT AND MAP SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2440
                             "TRANSPORTANDMAPSYMBOLS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2441
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2442
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2443
         * Constant for the "Alchemical Symbols" Unicode character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2444
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2445
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2446
        public static final UnicodeBlock ALCHEMICAL_SYMBOLS =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2447
            new UnicodeBlock("ALCHEMICAL_SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2448
                             "ALCHEMICAL SYMBOLS",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2449
                             "ALCHEMICALSYMBOLS");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2450
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2451
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2452
         * Constant for the "CJK Unified Ideographs Extension C" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2453
         * character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2454
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2455
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2456
        public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2457
            new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2458
                             "CJK UNIFIED IDEOGRAPHS EXTENSION C",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2459
                             "CJKUNIFIEDIDEOGRAPHSEXTENSIONC");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2460
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2461
        /**
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2462
         * Constant for the "CJK Unified Ideographs Extension D" Unicode
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2463
         * character block.
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2464
         * @since 1.7
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2465
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2466
        public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D =
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2467
            new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2468
                             "CJK UNIFIED IDEOGRAPHS EXTENSION D",
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2469
                             "CJKUNIFIEDIDEOGRAPHSEXTENSIOND");
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2470
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2471
        private static final int blockStarts[] = {
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2472
            0x0000,   // 0000..007F; Basic Latin
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2473
            0x0080,   // 0080..00FF; Latin-1 Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2474
            0x0100,   // 0100..017F; Latin Extended-A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2475
            0x0180,   // 0180..024F; Latin Extended-B
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2476
            0x0250,   // 0250..02AF; IPA Extensions
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2477
            0x02B0,   // 02B0..02FF; Spacing Modifier Letters
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2478
            0x0300,   // 0300..036F; Combining Diacritical Marks
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2479
            0x0370,   // 0370..03FF; Greek and Coptic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2480
            0x0400,   // 0400..04FF; Cyrillic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2481
            0x0500,   // 0500..052F; Cyrillic Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2482
            0x0530,   // 0530..058F; Armenian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2483
            0x0590,   // 0590..05FF; Hebrew
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2484
            0x0600,   // 0600..06FF; Arabic
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2485
            0x0700,   // 0700..074F; Syriac
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2486
            0x0750,   // 0750..077F; Arabic Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2487
            0x0780,   // 0780..07BF; Thaana
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2488
            0x07C0,   // 07C0..07FF; NKo
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2489
            0x0800,   // 0800..083F; Samaritan
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2490
            0x0840,   // 0840..085F; Mandaic
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2491
            0x0860,   //             unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2492
            0x0900,   // 0900..097F; Devanagari
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2493
            0x0980,   // 0980..09FF; Bengali
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2494
            0x0A00,   // 0A00..0A7F; Gurmukhi
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2495
            0x0A80,   // 0A80..0AFF; Gujarati
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2496
            0x0B00,   // 0B00..0B7F; Oriya
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2497
            0x0B80,   // 0B80..0BFF; Tamil
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2498
            0x0C00,   // 0C00..0C7F; Telugu
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2499
            0x0C80,   // 0C80..0CFF; Kannada
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2500
            0x0D00,   // 0D00..0D7F; Malayalam
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2501
            0x0D80,   // 0D80..0DFF; Sinhala
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2502
            0x0E00,   // 0E00..0E7F; Thai
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2503
            0x0E80,   // 0E80..0EFF; Lao
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2504
            0x0F00,   // 0F00..0FFF; Tibetan
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2505
            0x1000,   // 1000..109F; Myanmar
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2506
            0x10A0,   // 10A0..10FF; Georgian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2507
            0x1100,   // 1100..11FF; Hangul Jamo
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2508
            0x1200,   // 1200..137F; Ethiopic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2509
            0x1380,   // 1380..139F; Ethiopic Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2510
            0x13A0,   // 13A0..13FF; Cherokee
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2511
            0x1400,   // 1400..167F; Unified Canadian Aboriginal Syllabics
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2512
            0x1680,   // 1680..169F; Ogham
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2513
            0x16A0,   // 16A0..16FF; Runic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2514
            0x1700,   // 1700..171F; Tagalog
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2515
            0x1720,   // 1720..173F; Hanunoo
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2516
            0x1740,   // 1740..175F; Buhid
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2517
            0x1760,   // 1760..177F; Tagbanwa
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2518
            0x1780,   // 1780..17FF; Khmer
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2519
            0x1800,   // 1800..18AF; Mongolian
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2520
            0x18B0,   // 18B0..18FF; Unified Canadian Aboriginal Syllabics Extended
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2521
            0x1900,   // 1900..194F; Limbu
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2522
            0x1950,   // 1950..197F; Tai Le
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2523
            0x1980,   // 1980..19DF; New Tai Lue
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2524
            0x19E0,   // 19E0..19FF; Khmer Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2525
            0x1A00,   // 1A00..1A1F; Buginese
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2526
            0x1A20,   // 1A20..1AAF; Tai Tham
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2527
            0x1AB0,   //             unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2528
            0x1B00,   // 1B00..1B7F; Balinese
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2529
            0x1B80,   // 1B80..1BBF; Sundanese
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2530
            0x1BC0,   // 1BC0..1BFF; Batak
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2531
            0x1C00,   // 1C00..1C4F; Lepcha
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2532
            0x1C50,   // 1C50..1C7F; Ol Chiki
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2533
            0x1C80,   //             unassigned
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2534
            0x1CD0,   // 1CD0..1CFF; Vedic Extensions
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2535
            0x1D00,   // 1D00..1D7F; Phonetic Extensions
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2536
            0x1D80,   // 1D80..1DBF; Phonetic Extensions Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2537
            0x1DC0,   // 1DC0..1DFF; Combining Diacritical Marks Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2538
            0x1E00,   // 1E00..1EFF; Latin Extended Additional
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2539
            0x1F00,   // 1F00..1FFF; Greek Extended
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2540
            0x2000,   // 2000..206F; General Punctuation
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2541
            0x2070,   // 2070..209F; Superscripts and Subscripts
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2542
            0x20A0,   // 20A0..20CF; Currency Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2543
            0x20D0,   // 20D0..20FF; Combining Diacritical Marks for Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2544
            0x2100,   // 2100..214F; Letterlike Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2545
            0x2150,   // 2150..218F; Number Forms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2546
            0x2190,   // 2190..21FF; Arrows
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2547
            0x2200,   // 2200..22FF; Mathematical Operators
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2548
            0x2300,   // 2300..23FF; Miscellaneous Technical
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2549
            0x2400,   // 2400..243F; Control Pictures
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2550
            0x2440,   // 2440..245F; Optical Character Recognition
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2551
            0x2460,   // 2460..24FF; Enclosed Alphanumerics
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2552
            0x2500,   // 2500..257F; Box Drawing
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2553
            0x2580,   // 2580..259F; Block Elements
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2554
            0x25A0,   // 25A0..25FF; Geometric Shapes
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2555
            0x2600,   // 2600..26FF; Miscellaneous Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2556
            0x2700,   // 2700..27BF; Dingbats
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2557
            0x27C0,   // 27C0..27EF; Miscellaneous Mathematical Symbols-A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2558
            0x27F0,   // 27F0..27FF; Supplemental Arrows-A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2559
            0x2800,   // 2800..28FF; Braille Patterns
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2560
            0x2900,   // 2900..297F; Supplemental Arrows-B
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2561
            0x2980,   // 2980..29FF; Miscellaneous Mathematical Symbols-B
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2562
            0x2A00,   // 2A00..2AFF; Supplemental Mathematical Operators
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2563
            0x2B00,   // 2B00..2BFF; Miscellaneous Symbols and Arrows
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2564
            0x2C00,   // 2C00..2C5F; Glagolitic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2565
            0x2C60,   // 2C60..2C7F; Latin Extended-C
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2566
            0x2C80,   // 2C80..2CFF; Coptic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2567
            0x2D00,   // 2D00..2D2F; Georgian Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2568
            0x2D30,   // 2D30..2D7F; Tifinagh
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2569
            0x2D80,   // 2D80..2DDF; Ethiopic Extended
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2570
            0x2DE0,   // 2DE0..2DFF; Cyrillic Extended-A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2571
            0x2E00,   // 2E00..2E7F; Supplemental Punctuation
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2572
            0x2E80,   // 2E80..2EFF; CJK Radicals Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2573
            0x2F00,   // 2F00..2FDF; Kangxi Radicals
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2574
            0x2FE0,   //             unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2575
            0x2FF0,   // 2FF0..2FFF; Ideographic Description Characters
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2576
            0x3000,   // 3000..303F; CJK Symbols and Punctuation
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2577
            0x3040,   // 3040..309F; Hiragana
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2578
            0x30A0,   // 30A0..30FF; Katakana
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2579
            0x3100,   // 3100..312F; Bopomofo
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2580
            0x3130,   // 3130..318F; Hangul Compatibility Jamo
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2581
            0x3190,   // 3190..319F; Kanbun
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2582
            0x31A0,   // 31A0..31BF; Bopomofo Extended
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2583
            0x31C0,   // 31C0..31EF; CJK Strokes
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2584
            0x31F0,   // 31F0..31FF; Katakana Phonetic Extensions
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2585
            0x3200,   // 3200..32FF; Enclosed CJK Letters and Months
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2586
            0x3300,   // 3300..33FF; CJK Compatibility
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2587
            0x3400,   // 3400..4DBF; CJK Unified Ideographs Extension A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2588
            0x4DC0,   // 4DC0..4DFF; Yijing Hexagram Symbols
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2589
            0x4E00,   // 4E00..9FFF; CJK Unified Ideographs
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2590
            0xA000,   // A000..A48F; Yi Syllables
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2591
            0xA490,   // A490..A4CF; Yi Radicals
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2592
            0xA4D0,   // A4D0..A4FF; Lisu
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2593
            0xA500,   // A500..A63F; Vai
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2594
            0xA640,   // A640..A69F; Cyrillic Extended-B
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2595
            0xA6A0,   // A6A0..A6FF; Bamum
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2596
            0xA700,   // A700..A71F; Modifier Tone Letters
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2597
            0xA720,   // A720..A7FF; Latin Extended-D
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2598
            0xA800,   // A800..A82F; Syloti Nagri
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2599
            0xA830,   // A830..A83F; Common Indic Number Forms
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2600
            0xA840,   // A840..A87F; Phags-pa
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2601
            0xA880,   // A880..A8DF; Saurashtra
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2602
            0xA8E0,   // A8E0..A8FF; Devanagari Extended
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2603
            0xA900,   // A900..A92F; Kayah Li
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2604
            0xA930,   // A930..A95F; Rejang
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2605
            0xA960,   // A960..A97F; Hangul Jamo Extended-A
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2606
            0xA980,   // A980..A9DF; Javanese
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2607
            0xA9E0,   //             unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2608
            0xAA00,   // AA00..AA5F; Cham
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2609
            0xAA60,   // AA60..AA7F; Myanmar Extended-A
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2610
            0xAA80,   // AA80..AADF; Tai Viet
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2611
            0xAAE0,   //             unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2612
            0xAB00,   // AB00..AB2F; Ethiopic Extended-A
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2613
            0xAB30,   //             unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2614
            0xABC0,   // ABC0..ABFF; Meetei Mayek
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2615
            0xAC00,   // AC00..D7AF; Hangul Syllables
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2616
            0xD7B0,   // D7B0..D7FF; Hangul Jamo Extended-B
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2617
            0xD800,   // D800..DB7F; High Surrogates
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2618
            0xDB80,   // DB80..DBFF; High Private Use Surrogates
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2619
            0xDC00,   // DC00..DFFF; Low Surrogates
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2620
            0xE000,   // E000..F8FF; Private Use Area
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2621
            0xF900,   // F900..FAFF; CJK Compatibility Ideographs
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2622
            0xFB00,   // FB00..FB4F; Alphabetic Presentation Forms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2623
            0xFB50,   // FB50..FDFF; Arabic Presentation Forms-A
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2624
            0xFE00,   // FE00..FE0F; Variation Selectors
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2625
            0xFE10,   // FE10..FE1F; Vertical Forms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2626
            0xFE20,   // FE20..FE2F; Combining Half Marks
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2627
            0xFE30,   // FE30..FE4F; CJK Compatibility Forms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2628
            0xFE50,   // FE50..FE6F; Small Form Variants
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2629
            0xFE70,   // FE70..FEFF; Arabic Presentation Forms-B
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2630
            0xFF00,   // FF00..FFEF; Halfwidth and Fullwidth Forms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2631
            0xFFF0,   // FFF0..FFFF; Specials
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2632
            0x10000,  // 10000..1007F; Linear B Syllabary
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2633
            0x10080,  // 10080..100FF; Linear B Ideograms
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2634
            0x10100,  // 10100..1013F; Aegean Numbers
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2635
            0x10140,  // 10140..1018F; Ancient Greek Numbers
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2636
            0x10190,  // 10190..101CF; Ancient Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2637
            0x101D0,  // 101D0..101FF; Phaistos Disc
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2638
            0x10200,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2639
            0x10280,  // 10280..1029F; Lycian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2640
            0x102A0,  // 102A0..102DF; Carian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2641
            0x102E0,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2642
            0x10300,  // 10300..1032F; Old Italic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2643
            0x10330,  // 10330..1034F; Gothic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2644
            0x10350,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2645
            0x10380,  // 10380..1039F; Ugaritic
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2646
            0x103A0,  // 103A0..103DF; Old Persian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2647
            0x103E0,  //               unassigned
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2648
            0x10400,  // 10400..1044F; Deseret
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2649
            0x10450,  // 10450..1047F; Shavian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2650
            0x10480,  // 10480..104AF; Osmanya
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2651
            0x104B0,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2652
            0x10800,  // 10800..1083F; Cypriot Syllabary
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2653
            0x10840,  // 10840..1085F; Imperial Aramaic
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2654
            0x10860,  //               unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2655
            0x10900,  // 10900..1091F; Phoenician
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2656
            0x10920,  // 10920..1093F; Lydian
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2657
            0x10940,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2658
            0x10A00,  // 10A00..10A5F; Kharoshthi
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2659
            0x10A60,  // 10A60..10A7F; Old South Arabian
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2660
            0x10A80,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2661
            0x10B00,  // 10B00..10B3F; Avestan
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2662
            0x10B40,  // 10B40..10B5F; Inscriptional Parthian
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2663
            0x10B60,  // 10B60..10B7F; Inscriptional Pahlavi
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2664
            0x10B80,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2665
            0x10C00,  // 10C00..10C4F; Old Turkic
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2666
            0x10C50,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2667
            0x10E60,  // 10E60..10E7F; Rumi Numeral Symbols
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2668
            0x10E80,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2669
            0x11000,  // 11000..1107F; Brahmi
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2670
            0x11080,  // 11080..110CF; Kaithi
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2671
            0x110D0,  //               unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2672
            0x12000,  // 12000..123FF; Cuneiform
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2673
            0x12400,  // 12400..1247F; Cuneiform Numbers and Punctuation
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2674
            0x12480,  //               unassigned
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2675
            0x13000,  // 13000..1342F; Egyptian Hieroglyphs
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2676
            0x13430,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2677
            0x16800,  // 16800..16A3F; Bamum Supplement
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2678
            0x16A40,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2679
            0x1B000,  // 1B000..1B0FF; Kana Supplement
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2680
            0x1B100,  //               unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2681
            0x1D000,  // 1D000..1D0FF; Byzantine Musical Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2682
            0x1D100,  // 1D100..1D1FF; Musical Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2683
            0x1D200,  // 1D200..1D24F; Ancient Greek Musical Notation
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2684
            0x1D250,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2685
            0x1D300,  // 1D300..1D35F; Tai Xuan Jing Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2686
            0x1D360,  // 1D360..1D37F; Counting Rod Numerals
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2687
            0x1D380,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2688
            0x1D400,  // 1D400..1D7FF; Mathematical Alphanumeric Symbols
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2689
            0x1D800,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2690
            0x1F000,  // 1F000..1F02F; Mahjong Tiles
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2691
            0x1F030,  // 1F030..1F09F; Domino Tiles
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2692
            0x1F0A0,  // 1F0A0..1F0FF; Playing Cards
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2693
            0x1F100,  // 1F100..1F1FF; Enclosed Alphanumeric Supplement
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2694
            0x1F200,  // 1F200..1F2FF; Enclosed Ideographic Supplement
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2695
            0x1F300,  // 1F300..1F5FF; Miscellaneous Symbols And Pictographs
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2696
            0x1F600,  // 1F600..1F64F; Emoticons
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2697
            0x1F650,  //               unassigned
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2698
            0x1F680,  // 1F680..1F6FF; Transport And Map Symbols
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2699
            0x1F700,  // 1F700..1F77F; Alchemical Symbols
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2700
            0x1F780,  //               unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2701
            0x20000,  // 20000..2A6DF; CJK Unified Ideographs Extension B
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2702
            0x2A6E0,  //               unassigned
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2703
            0x2A700,  // 2A700..2B73F; CJK Unified Ideographs Extension C
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2704
            0x2B740,  // 2B740..2B81F; CJK Unified Ideographs Extension D
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2705
            0x2B820,  //               unassigned
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2706
            0x2F800,  // 2F800..2FA1F; CJK Compatibility Ideographs Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2707
            0x2FA20,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2708
            0xE0000,  // E0000..E007F; Tags
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2709
            0xE0080,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2710
            0xE0100,  // E0100..E01EF; Variation Selectors Supplement
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2711
            0xE01F0,  //               unassigned
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2712
            0xF0000,  // F0000..FFFFF; Supplementary Private Use Area-A
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2713
            0x100000  // 100000..10FFFF; Supplementary Private Use Area-B
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2714
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2715
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2716
        private static final UnicodeBlock[] blocks = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2717
            BASIC_LATIN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2718
            LATIN_1_SUPPLEMENT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2719
            LATIN_EXTENDED_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2720
            LATIN_EXTENDED_B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2721
            IPA_EXTENSIONS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2722
            SPACING_MODIFIER_LETTERS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2723
            COMBINING_DIACRITICAL_MARKS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2724
            GREEK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2725
            CYRILLIC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2726
            CYRILLIC_SUPPLEMENTARY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2727
            ARMENIAN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2728
            HEBREW,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2729
            ARABIC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2730
            SYRIAC,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2731
            ARABIC_SUPPLEMENT,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2732
            THAANA,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2733
            NKO,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2734
            SAMARITAN,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2735
            MANDAIC,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2736
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2737
            DEVANAGARI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2738
            BENGALI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2739
            GURMUKHI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2740
            GUJARATI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2741
            ORIYA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2742
            TAMIL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2743
            TELUGU,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2744
            KANNADA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2745
            MALAYALAM,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2746
            SINHALA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2747
            THAI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2748
            LAO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2749
            TIBETAN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2750
            MYANMAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2751
            GEORGIAN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2752
            HANGUL_JAMO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2753
            ETHIOPIC,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2754
            ETHIOPIC_SUPPLEMENT,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2755
            CHEROKEE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2756
            UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2757
            OGHAM,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2758
            RUNIC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2759
            TAGALOG,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2760
            HANUNOO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2761
            BUHID,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2762
            TAGBANWA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2763
            KHMER,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2764
            MONGOLIAN,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2765
            UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2766
            LIMBU,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2767
            TAI_LE,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2768
            NEW_TAI_LUE,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2769
            KHMER_SYMBOLS,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2770
            BUGINESE,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2771
            TAI_THAM,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2772
            null,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2773
            BALINESE,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2774
            SUNDANESE,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2775
            BATAK,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2776
            LEPCHA,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2777
            OL_CHIKI,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2778
            null,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2779
            VEDIC_EXTENSIONS,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2780
            PHONETIC_EXTENSIONS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2781
            PHONETIC_EXTENSIONS_SUPPLEMENT,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2782
            COMBINING_DIACRITICAL_MARKS_SUPPLEMENT,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2783
            LATIN_EXTENDED_ADDITIONAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2784
            GREEK_EXTENDED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2785
            GENERAL_PUNCTUATION,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2786
            SUPERSCRIPTS_AND_SUBSCRIPTS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2787
            CURRENCY_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2788
            COMBINING_MARKS_FOR_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2789
            LETTERLIKE_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2790
            NUMBER_FORMS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2791
            ARROWS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2792
            MATHEMATICAL_OPERATORS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2793
            MISCELLANEOUS_TECHNICAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2794
            CONTROL_PICTURES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2795
            OPTICAL_CHARACTER_RECOGNITION,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2796
            ENCLOSED_ALPHANUMERICS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2797
            BOX_DRAWING,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2798
            BLOCK_ELEMENTS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2799
            GEOMETRIC_SHAPES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2800
            MISCELLANEOUS_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2801
            DINGBATS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2802
            MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2803
            SUPPLEMENTAL_ARROWS_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2804
            BRAILLE_PATTERNS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2805
            SUPPLEMENTAL_ARROWS_B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2806
            MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2807
            SUPPLEMENTAL_MATHEMATICAL_OPERATORS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2808
            MISCELLANEOUS_SYMBOLS_AND_ARROWS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2809
            GLAGOLITIC,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2810
            LATIN_EXTENDED_C,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2811
            COPTIC,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2812
            GEORGIAN_SUPPLEMENT,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2813
            TIFINAGH,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2814
            ETHIOPIC_EXTENDED,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2815
            CYRILLIC_EXTENDED_A,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2816
            SUPPLEMENTAL_PUNCTUATION,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2817
            CJK_RADICALS_SUPPLEMENT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2818
            KANGXI_RADICALS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2819
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2820
            IDEOGRAPHIC_DESCRIPTION_CHARACTERS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2821
            CJK_SYMBOLS_AND_PUNCTUATION,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2822
            HIRAGANA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2823
            KATAKANA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2824
            BOPOMOFO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2825
            HANGUL_COMPATIBILITY_JAMO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2826
            KANBUN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2827
            BOPOMOFO_EXTENDED,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2828
            CJK_STROKES,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2829
            KATAKANA_PHONETIC_EXTENSIONS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2830
            ENCLOSED_CJK_LETTERS_AND_MONTHS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2831
            CJK_COMPATIBILITY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2832
            CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2833
            YIJING_HEXAGRAM_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2834
            CJK_UNIFIED_IDEOGRAPHS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2835
            YI_SYLLABLES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2836
            YI_RADICALS,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2837
            LISU,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2838
            VAI,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2839
            CYRILLIC_EXTENDED_B,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2840
            BAMUM,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2841
            MODIFIER_TONE_LETTERS,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2842
            LATIN_EXTENDED_D,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2843
            SYLOTI_NAGRI,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2844
            COMMON_INDIC_NUMBER_FORMS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2845
            PHAGS_PA,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2846
            SAURASHTRA,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2847
            DEVANAGARI_EXTENDED,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2848
            KAYAH_LI,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2849
            REJANG,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2850
            HANGUL_JAMO_EXTENDED_A,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2851
            JAVANESE,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2852
            null,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2853
            CHAM,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2854
            MYANMAR_EXTENDED_A,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2855
            TAI_VIET,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2856
            null,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2857
            ETHIOPIC_EXTENDED_A,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2858
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2859
            MEETEI_MAYEK,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2860
            HANGUL_SYLLABLES,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2861
            HANGUL_JAMO_EXTENDED_B,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2862
            HIGH_SURROGATES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2863
            HIGH_PRIVATE_USE_SURROGATES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2864
            LOW_SURROGATES,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2865
            PRIVATE_USE_AREA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2866
            CJK_COMPATIBILITY_IDEOGRAPHS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2867
            ALPHABETIC_PRESENTATION_FORMS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2868
            ARABIC_PRESENTATION_FORMS_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2869
            VARIATION_SELECTORS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2870
            VERTICAL_FORMS,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2871
            COMBINING_HALF_MARKS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2872
            CJK_COMPATIBILITY_FORMS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2873
            SMALL_FORM_VARIANTS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2874
            ARABIC_PRESENTATION_FORMS_B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2875
            HALFWIDTH_AND_FULLWIDTH_FORMS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2876
            SPECIALS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2877
            LINEAR_B_SYLLABARY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2878
            LINEAR_B_IDEOGRAMS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2879
            AEGEAN_NUMBERS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2880
            ANCIENT_GREEK_NUMBERS,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2881
            ANCIENT_SYMBOLS,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2882
            PHAISTOS_DISC,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2883
            null,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2884
            LYCIAN,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2885
            CARIAN,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2886
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2887
            OLD_ITALIC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2888
            GOTHIC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2889
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2890
            UGARITIC,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2891
            OLD_PERSIAN,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2892
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2893
            DESERET,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2894
            SHAVIAN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2895
            OSMANYA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2896
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2897
            CYPRIOT_SYLLABARY,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2898
            IMPERIAL_ARAMAIC,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2899
            null,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2900
            PHOENICIAN,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2901
            LYDIAN,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2902
            null,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2903
            KHAROSHTHI,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2904
            OLD_SOUTH_ARABIAN,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2905
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2906
            AVESTAN,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2907
            INSCRIPTIONAL_PARTHIAN,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2908
            INSCRIPTIONAL_PAHLAVI,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2909
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2910
            OLD_TURKIC,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2911
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2912
            RUMI_NUMERAL_SYMBOLS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2913
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2914
            BRAHMI,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2915
            KAITHI,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2916
            null,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2917
            CUNEIFORM,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2918
            CUNEIFORM_NUMBERS_AND_PUNCTUATION,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2919
            null,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2920
            EGYPTIAN_HIEROGLYPHS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2921
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2922
            BAMUM_SUPPLEMENT,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2923
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2924
            KANA_SUPPLEMENT,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2925
            null,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2926
            BYZANTINE_MUSICAL_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2927
            MUSICAL_SYMBOLS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2928
            ANCIENT_GREEK_MUSICAL_NOTATION,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2929
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2930
            TAI_XUAN_JING_SYMBOLS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2931
            COUNTING_ROD_NUMERALS,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2932
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2933
            MATHEMATICAL_ALPHANUMERIC_SYMBOLS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2934
            null,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2935
            MAHJONG_TILES,
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2936
            DOMINO_TILES,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2937
            PLAYING_CARDS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2938
            ENCLOSED_ALPHANUMERIC_SUPPLEMENT,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2939
            ENCLOSED_IDEOGRAPHIC_SUPPLEMENT,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2940
            MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2941
            EMOTICONS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2942
            null,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2943
            TRANSPORT_AND_MAP_SYMBOLS,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2944
            ALCHEMICAL_SYMBOLS,
2497
903fd9d785ef 6404304: RFE: Unicode 5.1 support
peytoia
parents: 2
diff changeset
  2945
            null,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2946
            CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2947
            null,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2948
            CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2949
            CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  2950
            null,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2951
            CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2952
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2953
            TAGS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2954
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2955
            VARIATION_SELECTORS_SUPPLEMENT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2956
            null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2957
            SUPPLEMENTARY_PRIVATE_USE_AREA_A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2958
            SUPPLEMENTARY_PRIVATE_USE_AREA_B
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2959
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2960
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2961
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2962
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2963
         * Returns the object representing the Unicode block containing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2964
         * given character, or <code>null</code> if the character is not a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2965
         * member of a defined block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2966
         *
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2967
         * <p><b>Note:</b> This method cannot handle
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2968
         * <a href="Character.html#supplementary"> supplementary
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2969
         * characters</a>.  To support all Unicode characters, including
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2970
         * supplementary characters, use the {@link #of(int)} method.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2971
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2972
         * @param   c  The character in question
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2973
         * @return  The <code>UnicodeBlock</code> instance representing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2974
         *          Unicode block of which this character is a member, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2975
         *          <code>null</code> if the character is not a member of any
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2976
         *          Unicode block
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2977
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2978
        public static UnicodeBlock of(char c) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2979
            return of((int)c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2980
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2981
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2982
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2983
         * Returns the object representing the Unicode block
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2984
         * containing the given character (Unicode code point), or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2985
         * <code>null</code> if the character is not a member of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2986
         * defined block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2987
         *
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2988
         * @param   codePoint the character (Unicode code point) in question.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2989
         * @return  The <code>UnicodeBlock</code> instance representing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2990
         *          Unicode block of which this character is a member, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2991
         *          <code>null</code> if the character is not a member of any
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2992
         *          Unicode block
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2993
         * @exception IllegalArgumentException if the specified
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2994
         * <code>codePoint</code> is an invalid Unicode code point.
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2995
         * @see Character#isValidCodePoint(int)
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  2996
         * @since   1.5
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2997
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2998
        public static UnicodeBlock of(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2999
            if (!isValidCodePoint(codePoint)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3000
                throw new IllegalArgumentException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3001
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3002
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3003
            int top, bottom, current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3004
            bottom = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3005
            top = blockStarts.length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3006
            current = top/2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3007
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3008
            // invariant: top > current >= bottom && codePoint >= unicodeBlockStarts[bottom]
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3009
            while (top - bottom > 1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3010
                if (codePoint >= blockStarts[current]) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3011
                    bottom = current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3012
                } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3013
                    top = current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3014
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3015
                current = (top + bottom) / 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3016
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3017
            return blocks[current];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3018
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3019
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3020
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3021
         * Returns the UnicodeBlock with the given name. Block
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3022
         * names are determined by The Unicode Standard. The file
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3023
         * Blocks-&lt;version&gt;.txt defines blocks for a particular
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3024
         * version of the standard. The {@link Character} class specifies
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3025
         * the version of the standard that it supports.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3026
         * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3027
         * This method accepts block names in the following forms:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3028
         * <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3029
         * <li> Canonical block names as defined by the Unicode Standard.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3030
         * For example, the standard defines a "Basic Latin" block. Therefore, this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3031
         * method accepts "Basic Latin" as a valid block name. The documentation of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3032
         * each UnicodeBlock provides the canonical name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3033
         * <li>Canonical block names with all spaces removed. For example, "BasicLatin"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3034
         * is a valid block name for the "Basic Latin" block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3035
         * <li>The text representation of each constant UnicodeBlock identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3036
         * For example, this method will return the {@link #BASIC_LATIN} block if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3037
         * provided with the "BASIC_LATIN" name. This form replaces all spaces and
5989
05ad44c7b244 6963749: Minor improvements to Character.UnicodeBlock
martin
parents: 5986
diff changeset
  3038
         * hyphens in the canonical name with underscores.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3039
         * </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3040
         * Finally, character case is ignored for all of the valid block name forms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3041
         * For example, "BASIC_LATIN" and "basic_latin" are both valid block names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3042
         * The en_US locale's case mapping rules are used to provide case-insensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3043
         * string comparisons for block name validation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3044
         * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3045
         * If the Unicode Standard changes block names, both the previous and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3046
         * current names will be accepted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3047
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3048
         * @param blockName A <code>UnicodeBlock</code> name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3049
         * @return The <code>UnicodeBlock</code> instance identified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3050
         *         by <code>blockName</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3051
         * @throws IllegalArgumentException if <code>blockName</code> is an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3052
         *         invalid name
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3053
         * @throws NullPointerException if <code>blockName</code> is null
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3054
         * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3055
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3056
        public static final UnicodeBlock forName(String blockName) {
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  3057
            UnicodeBlock block = map.get(blockName.toUpperCase(Locale.US));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3058
            if (block == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3059
                throw new IllegalArgumentException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3060
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3061
            return block;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3062
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3063
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3064
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3065
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3066
    /**
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3067
     * A family of character subsets representing the character scripts
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3068
     * defined in the <a href="http://www.unicode.org/reports/tr24/">
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3069
     * <i>Unicode Standard Annex #24: Script Names</i></a>. Every Unicode
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3070
     * character is assigned to a single Unicode script, either a specific
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3071
     * script, such as {@link Character.UnicodeScript#LATIN Latin}, or
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3072
     * one of the following three special values,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3073
     * {@link Character.UnicodeScript#INHERITED Inherited},
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3074
     * {@link Character.UnicodeScript#COMMON Common} or
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3075
     * {@link Character.UnicodeScript#UNKNOWN Unknown}.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3076
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3077
     * @since 1.7
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3078
     */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3079
    public static enum UnicodeScript {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3080
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3081
         * Unicode script "Common".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3082
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3083
        COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3084
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3085
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3086
         * Unicode script "Latin".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3087
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3088
        LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3089
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3090
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3091
         * Unicode script "Greek".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3092
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3093
        GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3094
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3095
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3096
         * Unicode script "Cyrillic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3097
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3098
        CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3099
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3100
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3101
         * Unicode script "Armenian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3102
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3103
        ARMENIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3104
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3105
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3106
         * Unicode script "Hebrew".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3107
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3108
        HEBREW,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3109
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3110
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3111
         * Unicode script "Arabic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3112
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3113
        ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3114
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3115
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3116
         * Unicode script "Syriac".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3117
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3118
        SYRIAC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3119
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3120
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3121
         * Unicode script "Thaana".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3122
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3123
        THAANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3124
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3125
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3126
         * Unicode script "Devanagari".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3127
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3128
        DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3129
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3130
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3131
         * Unicode script "Bengali".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3132
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3133
        BENGALI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3134
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3135
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3136
         * Unicode script "Gurmukhi".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3137
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3138
        GURMUKHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3139
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3140
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3141
         * Unicode script "Gujarati".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3142
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3143
        GUJARATI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3144
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3145
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3146
         * Unicode script "Oriya".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3147
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3148
        ORIYA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3149
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3150
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3151
         * Unicode script "Tamil".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3152
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3153
        TAMIL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3154
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3155
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3156
         * Unicode script "Telugu".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3157
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3158
        TELUGU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3159
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3160
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3161
         * Unicode script "Kannada".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3162
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3163
        KANNADA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3164
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3165
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3166
         * Unicode script "Malayalam".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3167
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3168
        MALAYALAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3169
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3170
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3171
         * Unicode script "Sinhala".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3172
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3173
        SINHALA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3174
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3175
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3176
         * Unicode script "Thai".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3177
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3178
        THAI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3179
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3180
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3181
         * Unicode script "Lao".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3182
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3183
        LAO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3184
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3185
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3186
         * Unicode script "Tibetan".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3187
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3188
        TIBETAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3189
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3190
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3191
         * Unicode script "Myanmar".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3192
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3193
        MYANMAR,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3194
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3195
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3196
         * Unicode script "Georgian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3197
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3198
        GEORGIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3199
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3200
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3201
         * Unicode script "Hangul".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3202
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3203
        HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3204
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3205
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3206
         * Unicode script "Ethiopic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3207
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3208
        ETHIOPIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3209
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3210
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3211
         * Unicode script "Cherokee".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3212
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3213
        CHEROKEE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3214
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3215
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3216
         * Unicode script "Canadian_Aboriginal".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3217
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3218
        CANADIAN_ABORIGINAL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3219
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3220
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3221
         * Unicode script "Ogham".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3222
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3223
        OGHAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3224
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3225
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3226
         * Unicode script "Runic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3227
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3228
        RUNIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3229
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3230
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3231
         * Unicode script "Khmer".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3232
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3233
        KHMER,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3234
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3235
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3236
         * Unicode script "Mongolian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3237
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3238
        MONGOLIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3239
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3240
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3241
         * Unicode script "Hiragana".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3242
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3243
        HIRAGANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3244
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3245
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3246
         * Unicode script "Katakana".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3247
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3248
        KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3249
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3250
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3251
         * Unicode script "Bopomofo".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3252
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3253
        BOPOMOFO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3254
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3255
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3256
         * Unicode script "Han".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3257
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3258
        HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3259
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3260
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3261
         * Unicode script "Yi".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3262
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3263
        YI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3264
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3265
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3266
         * Unicode script "Old_Italic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3267
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3268
        OLD_ITALIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3269
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3270
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3271
         * Unicode script "Gothic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3272
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3273
        GOTHIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3274
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3275
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3276
         * Unicode script "Deseret".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3277
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3278
        DESERET,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3279
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3280
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3281
         * Unicode script "Inherited".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3282
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3283
        INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3284
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3285
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3286
         * Unicode script "Tagalog".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3287
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3288
        TAGALOG,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3289
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3290
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3291
         * Unicode script "Hanunoo".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3292
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3293
        HANUNOO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3294
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3295
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3296
         * Unicode script "Buhid".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3297
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3298
        BUHID,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3299
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3300
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3301
         * Unicode script "Tagbanwa".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3302
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3303
        TAGBANWA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3304
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3305
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3306
         * Unicode script "Limbu".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3307
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3308
        LIMBU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3309
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3310
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3311
         * Unicode script "Tai_Le".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3312
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3313
        TAI_LE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3314
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3315
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3316
         * Unicode script "Linear_B".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3317
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3318
        LINEAR_B,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3319
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3320
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3321
         * Unicode script "Ugaritic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3322
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3323
        UGARITIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3324
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3325
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3326
         * Unicode script "Shavian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3327
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3328
        SHAVIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3329
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3330
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3331
         * Unicode script "Osmanya".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3332
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3333
        OSMANYA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3334
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3335
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3336
         * Unicode script "Cypriot".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3337
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3338
        CYPRIOT,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3339
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3340
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3341
         * Unicode script "Braille".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3342
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3343
        BRAILLE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3344
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3345
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3346
         * Unicode script "Buginese".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3347
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3348
        BUGINESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3349
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3350
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3351
         * Unicode script "Coptic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3352
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3353
        COPTIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3354
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3355
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3356
         * Unicode script "New_Tai_Lue".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3357
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3358
        NEW_TAI_LUE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3359
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3360
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3361
         * Unicode script "Glagolitic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3362
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3363
        GLAGOLITIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3364
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3365
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3366
         * Unicode script "Tifinagh".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3367
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3368
        TIFINAGH,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3369
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3370
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3371
         * Unicode script "Syloti_Nagri".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3372
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3373
        SYLOTI_NAGRI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3374
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3375
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3376
         * Unicode script "Old_Persian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3377
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3378
        OLD_PERSIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3379
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3380
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3381
         * Unicode script "Kharoshthi".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3382
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3383
        KHAROSHTHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3384
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3385
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3386
         * Unicode script "Balinese".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3387
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3388
        BALINESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3389
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3390
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3391
         * Unicode script "Cuneiform".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3392
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3393
        CUNEIFORM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3394
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3395
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3396
         * Unicode script "Phoenician".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3397
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3398
        PHOENICIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3399
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3400
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3401
         * Unicode script "Phags_Pa".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3402
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3403
        PHAGS_PA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3404
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3405
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3406
         * Unicode script "Nko".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3407
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3408
        NKO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3409
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3410
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3411
         * Unicode script "Sundanese".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3412
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3413
        SUNDANESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3414
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3415
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3416
         * Unicode script "Batak".
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3417
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3418
        BATAK,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3419
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3420
        /**
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3421
         * Unicode script "Lepcha".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3422
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3423
        LEPCHA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3424
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3425
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3426
         * Unicode script "Ol_Chiki".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3427
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3428
        OL_CHIKI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3429
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3430
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3431
         * Unicode script "Vai".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3432
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3433
        VAI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3434
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3435
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3436
         * Unicode script "Saurashtra".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3437
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3438
        SAURASHTRA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3439
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3440
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3441
         * Unicode script "Kayah_Li".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3442
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3443
        KAYAH_LI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3444
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3445
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3446
         * Unicode script "Rejang".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3447
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3448
        REJANG,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3449
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3450
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3451
         * Unicode script "Lycian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3452
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3453
        LYCIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3454
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3455
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3456
         * Unicode script "Carian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3457
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3458
        CARIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3459
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3460
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3461
         * Unicode script "Lydian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3462
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3463
        LYDIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3464
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3465
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3466
         * Unicode script "Cham".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3467
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3468
        CHAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3469
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3470
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3471
         * Unicode script "Tai_Tham".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3472
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3473
        TAI_THAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3474
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3475
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3476
         * Unicode script "Tai_Viet".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3477
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3478
        TAI_VIET,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3479
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3480
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3481
         * Unicode script "Avestan".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3482
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3483
        AVESTAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3484
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3485
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3486
         * Unicode script "Egyptian_Hieroglyphs".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3487
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3488
        EGYPTIAN_HIEROGLYPHS,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3489
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3490
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3491
         * Unicode script "Samaritan".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3492
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3493
        SAMARITAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3494
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3495
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3496
         * Unicode script "Mandaic".
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3497
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3498
        MANDAIC,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3499
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3500
        /**
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3501
         * Unicode script "Lisu".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3502
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3503
        LISU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3504
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3505
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3506
         * Unicode script "Bamum".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3507
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3508
        BAMUM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3509
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3510
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3511
         * Unicode script "Javanese".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3512
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3513
        JAVANESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3514
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3515
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3516
         * Unicode script "Meetei_Mayek".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3517
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3518
        MEETEI_MAYEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3519
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3520
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3521
         * Unicode script "Imperial_Aramaic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3522
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3523
        IMPERIAL_ARAMAIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3524
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3525
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3526
         * Unicode script "Old_South_Arabian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3527
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3528
        OLD_SOUTH_ARABIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3529
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3530
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3531
         * Unicode script "Inscriptional_Parthian".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3532
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3533
        INSCRIPTIONAL_PARTHIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3534
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3535
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3536
         * Unicode script "Inscriptional_Pahlavi".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3537
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3538
        INSCRIPTIONAL_PAHLAVI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3539
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3540
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3541
         * Unicode script "Old_Turkic".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3542
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3543
        OLD_TURKIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3544
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3545
        /**
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3546
         * Unicode script "Brahmi".
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3547
         */
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3548
        BRAHMI,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3549
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3550
        /**
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3551
         * Unicode script "Kaithi".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3552
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3553
        KAITHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3554
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3555
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3556
         * Unicode script "Unknown".
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3557
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3558
        UNKNOWN;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3559
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3560
        private static final int[] scriptStarts = {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3561
            0x0000,   // 0000..0040; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3562
            0x0041,   // 0041..005A; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3563
            0x005B,   // 005B..0060; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3564
            0x0061,   // 0061..007A; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3565
            0x007B,   // 007B..00A9; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3566
            0x00AA,   // 00AA..00AA; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3567
            0x00AB,   // 00AB..00B9; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3568
            0x00BA,   // 00BA..00BA; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3569
            0x00BB,   // 00BB..00BF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3570
            0x00C0,   // 00C0..00D6; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3571
            0x00D7,   // 00D7..00D7; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3572
            0x00D8,   // 00D8..00F6; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3573
            0x00F7,   // 00F7..00F7; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3574
            0x00F8,   // 00F8..02B8; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3575
            0x02B9,   // 02B9..02DF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3576
            0x02E0,   // 02E0..02E4; LATIN
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3577
            0x02E5,   // 02E5..02E9; COMMON
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3578
            0x02EA,   // 02EA..02EB; BOPOMOFO
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3579
            0x02EC,   // 02EC..02FF; COMMON
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3580
            0x0300,   // 0300..036F; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3581
            0x0370,   // 0370..0373; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3582
            0x0374,   // 0374..0374; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3583
            0x0375,   // 0375..037D; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3584
            0x037E,   // 037E..0383; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3585
            0x0384,   // 0384..0384; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3586
            0x0385,   // 0385..0385; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3587
            0x0386,   // 0386..0386; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3588
            0x0387,   // 0387..0387; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3589
            0x0388,   // 0388..03E1; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3590
            0x03E2,   // 03E2..03EF; COPTIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3591
            0x03F0,   // 03F0..03FF; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3592
            0x0400,   // 0400..0484; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3593
            0x0485,   // 0485..0486; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3594
            0x0487,   // 0487..0530; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3595
            0x0531,   // 0531..0588; ARMENIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3596
            0x0589,   // 0589..0589; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3597
            0x058A,   // 058A..0590; ARMENIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3598
            0x0591,   // 0591..05FF; HEBREW
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3599
            0x0600,   // 0600..060B; ARABIC
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3600
            0x060C,   // 060C..060C; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3601
            0x060D,   // 060D..061A; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3602
            0x061B,   // 061B..061D; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3603
            0x061E,   // 061E..061E; ARABIC
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3604
            0x061F,   // 061F..061F; COMMON
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3605
            0x0620,   // 0620..063F; ARABIC
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3606
            0x0640,   // 0640..0640; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3607
            0x0641,   // 0641..064A; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3608
            0x064B,   // 064B..0655; INHERITED
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3609
            0x0656,   // 0656..065E; ARABIC
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3610
            0x065F,   // 065F..065F; INHERITED
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3611
            0x0660,   // 0660..0669; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3612
            0x066A,   // 066A..066F; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3613
            0x0670,   // 0670..0670; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3614
            0x0671,   // 0671..06DC; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3615
            0x06DD,   // 06DD..06DD; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3616
            0x06DE,   // 06DE..06FF; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3617
            0x0700,   // 0700..074F; SYRIAC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3618
            0x0750,   // 0750..077F; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3619
            0x0780,   // 0780..07BF; THAANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3620
            0x07C0,   // 07C0..07FF; NKO
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3621
            0x0800,   // 0800..083F; SAMARITAN
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3622
            0x0840,   // 0840..08FF; MANDAIC
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3623
            0x0900,   // 0900..0950; DEVANAGARI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3624
            0x0951,   // 0951..0952; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3625
            0x0953,   // 0953..0963; DEVANAGARI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3626
            0x0964,   // 0964..0965; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3627
            0x0966,   // 0966..096F; DEVANAGARI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3628
            0x0970,   // 0970..0970; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3629
            0x0971,   // 0971..0980; DEVANAGARI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3630
            0x0981,   // 0981..0A00; BENGALI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3631
            0x0A01,   // 0A01..0A80; GURMUKHI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3632
            0x0A81,   // 0A81..0B00; GUJARATI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3633
            0x0B01,   // 0B01..0B81; ORIYA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3634
            0x0B82,   // 0B82..0C00; TAMIL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3635
            0x0C01,   // 0C01..0C81; TELUGU
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3636
            0x0C82,   // 0C82..0CF0; KANNADA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3637
            0x0D02,   // 0D02..0D81; MALAYALAM
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3638
            0x0D82,   // 0D82..0E00; SINHALA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3639
            0x0E01,   // 0E01..0E3E; THAI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3640
            0x0E3F,   // 0E3F..0E3F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3641
            0x0E40,   // 0E40..0E80; THAI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3642
            0x0E81,   // 0E81..0EFF; LAO
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3643
            0x0F00,   // 0F00..0FD4; TIBETAN
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3644
            0x0FD5,   // 0FD5..0FD8; COMMON
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3645
            0x0FD9,   // 0FD9..0FFF; TIBETAN
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3646
            0x1000,   // 1000..109F; MYANMAR
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3647
            0x10A0,   // 10A0..10FA; GEORGIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3648
            0x10FB,   // 10FB..10FB; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3649
            0x10FC,   // 10FC..10FF; GEORGIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3650
            0x1100,   // 1100..11FF; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3651
            0x1200,   // 1200..139F; ETHIOPIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3652
            0x13A0,   // 13A0..13FF; CHEROKEE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3653
            0x1400,   // 1400..167F; CANADIAN_ABORIGINAL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3654
            0x1680,   // 1680..169F; OGHAM
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3655
            0x16A0,   // 16A0..16EA; RUNIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3656
            0x16EB,   // 16EB..16ED; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3657
            0x16EE,   // 16EE..16FF; RUNIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3658
            0x1700,   // 1700..171F; TAGALOG
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3659
            0x1720,   // 1720..1734; HANUNOO
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3660
            0x1735,   // 1735..173F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3661
            0x1740,   // 1740..175F; BUHID
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3662
            0x1760,   // 1760..177F; TAGBANWA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3663
            0x1780,   // 1780..17FF; KHMER
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3664
            0x1800,   // 1800..1801; MONGOLIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3665
            0x1802,   // 1802..1803; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3666
            0x1804,   // 1804..1804; MONGOLIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3667
            0x1805,   // 1805..1805; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3668
            0x1806,   // 1806..18AF; MONGOLIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3669
            0x18B0,   // 18B0..18FF; CANADIAN_ABORIGINAL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3670
            0x1900,   // 1900..194F; LIMBU
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3671
            0x1950,   // 1950..197F; TAI_LE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3672
            0x1980,   // 1980..19DF; NEW_TAI_LUE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3673
            0x19E0,   // 19E0..19FF; KHMER
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3674
            0x1A00,   // 1A00..1A1F; BUGINESE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3675
            0x1A20,   // 1A20..1AFF; TAI_THAM
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3676
            0x1B00,   // 1B00..1B7F; BALINESE
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3677
            0x1B80,   // 1B80..1BBF; SUNDANESE
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3678
            0x1BC0,   // 1BC0..1BFF; BATAK
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3679
            0x1C00,   // 1C00..1C4F; LEPCHA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3680
            0x1C50,   // 1C50..1CCF; OL_CHIKI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3681
            0x1CD0,   // 1CD0..1CD2; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3682
            0x1CD3,   // 1CD3..1CD3; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3683
            0x1CD4,   // 1CD4..1CE0; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3684
            0x1CE1,   // 1CE1..1CE1; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3685
            0x1CE2,   // 1CE2..1CE8; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3686
            0x1CE9,   // 1CE9..1CEC; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3687
            0x1CED,   // 1CED..1CED; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3688
            0x1CEE,   // 1CEE..1CFF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3689
            0x1D00,   // 1D00..1D25; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3690
            0x1D26,   // 1D26..1D2A; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3691
            0x1D2B,   // 1D2B..1D2B; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3692
            0x1D2C,   // 1D2C..1D5C; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3693
            0x1D5D,   // 1D5D..1D61; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3694
            0x1D62,   // 1D62..1D65; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3695
            0x1D66,   // 1D66..1D6A; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3696
            0x1D6B,   // 1D6B..1D77; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3697
            0x1D78,   // 1D78..1D78; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3698
            0x1D79,   // 1D79..1DBE; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3699
            0x1DBF,   // 1DBF..1DBF; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3700
            0x1DC0,   // 1DC0..1DFF; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3701
            0x1E00,   // 1E00..1EFF; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3702
            0x1F00,   // 1F00..1FFF; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3703
            0x2000,   // 2000..200B; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3704
            0x200C,   // 200C..200D; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3705
            0x200E,   // 200E..2070; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3706
            0x2071,   // 2071..2073; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3707
            0x2074,   // 2074..207E; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3708
            0x207F,   // 207F..207F; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3709
            0x2080,   // 2080..208F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3710
            0x2090,   // 2090..209F; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3711
            0x20A0,   // 20A0..20CF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3712
            0x20D0,   // 20D0..20FF; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3713
            0x2100,   // 2100..2125; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3714
            0x2126,   // 2126..2126; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3715
            0x2127,   // 2127..2129; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3716
            0x212A,   // 212A..212B; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3717
            0x212C,   // 212C..2131; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3718
            0x2132,   // 2132..2132; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3719
            0x2133,   // 2133..214D; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3720
            0x214E,   // 214E..214E; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3721
            0x214F,   // 214F..215F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3722
            0x2160,   // 2160..2188; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3723
            0x2189,   // 2189..27FF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3724
            0x2800,   // 2800..28FF; BRAILLE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3725
            0x2900,   // 2900..2BFF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3726
            0x2C00,   // 2C00..2C5F; GLAGOLITIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3727
            0x2C60,   // 2C60..2C7F; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3728
            0x2C80,   // 2C80..2CFF; COPTIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3729
            0x2D00,   // 2D00..2D2F; GEORGIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3730
            0x2D30,   // 2D30..2D7F; TIFINAGH
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3731
            0x2D80,   // 2D80..2DDF; ETHIOPIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3732
            0x2DE0,   // 2DE0..2DFF; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3733
            0x2E00,   // 2E00..2E7F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3734
            0x2E80,   // 2E80..2FEF; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3735
            0x2FF0,   // 2FF0..3004; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3736
            0x3005,   // 3005..3005; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3737
            0x3006,   // 3006..3006; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3738
            0x3007,   // 3007..3007; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3739
            0x3008,   // 3008..3020; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3740
            0x3021,   // 3021..3029; HAN
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3741
            0x302A,   // 302A..302D; INHERITED
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3742
            0x302E,   // 302E..302F; HANGUL
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3743
            0x3030,   // 3030..3037; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3744
            0x3038,   // 3038..303B; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3745
            0x303C,   // 303C..3040; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3746
            0x3041,   // 3041..3098; HIRAGANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3747
            0x3099,   // 3099..309A; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3748
            0x309B,   // 309B..309C; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3749
            0x309D,   // 309D..309F; HIRAGANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3750
            0x30A0,   // 30A0..30A0; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3751
            0x30A1,   // 30A1..30FA; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3752
            0x30FB,   // 30FB..30FC; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3753
            0x30FD,   // 30FD..3104; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3754
            0x3105,   // 3105..3130; BOPOMOFO
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3755
            0x3131,   // 3131..318F; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3756
            0x3190,   // 3190..319F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3757
            0x31A0,   // 31A0..31BF; BOPOMOFO
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3758
            0x31C0,   // 31C0..31EF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3759
            0x31F0,   // 31F0..31FF; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3760
            0x3200,   // 3200..321F; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3761
            0x3220,   // 3220..325F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3762
            0x3260,   // 3260..327E; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3763
            0x327F,   // 327F..32CF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3764
            0x32D0,   // 32D0..3357; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3765
            0x3358,   // 3358..33FF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3766
            0x3400,   // 3400..4DBF; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3767
            0x4DC0,   // 4DC0..4DFF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3768
            0x4E00,   // 4E00..9FFF; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3769
            0xA000,   // A000..A4CF; YI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3770
            0xA4D0,   // A4D0..A4FF; LISU
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3771
            0xA500,   // A500..A63F; VAI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3772
            0xA640,   // A640..A69F; CYRILLIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3773
            0xA6A0,   // A6A0..A6FF; BAMUM
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3774
            0xA700,   // A700..A721; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3775
            0xA722,   // A722..A787; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3776
            0xA788,   // A788..A78A; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3777
            0xA78B,   // A78B..A7FF; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3778
            0xA800,   // A800..A82F; SYLOTI_NAGRI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3779
            0xA830,   // A830..A83F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3780
            0xA840,   // A840..A87F; PHAGS_PA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3781
            0xA880,   // A880..A8DF; SAURASHTRA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3782
            0xA8E0,   // A8E0..A8FF; DEVANAGARI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3783
            0xA900,   // A900..A92F; KAYAH_LI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3784
            0xA930,   // A930..A95F; REJANG
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3785
            0xA960,   // A960..A97F; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3786
            0xA980,   // A980..A9FF; JAVANESE
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3787
            0xAA00,   // AA00..AA5F; CHAM
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3788
            0xAA60,   // AA60..AA7F; MYANMAR
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3789
            0xAA80,   // AA80..AB00; TAI_VIET
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3790
            0xAB01,   // AB01..ABBF; ETHIOPIC
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3791
            0xABC0,   // ABC0..ABFF; MEETEI_MAYEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3792
            0xAC00,   // AC00..D7FB; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3793
            0xD7FC,   // D7FC..F8FF; UNKNOWN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3794
            0xF900,   // F900..FAFF; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3795
            0xFB00,   // FB00..FB12; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3796
            0xFB13,   // FB13..FB1C; ARMENIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3797
            0xFB1D,   // FB1D..FB4F; HEBREW
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3798
            0xFB50,   // FB50..FD3D; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3799
            0xFD3E,   // FD3E..FD4F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3800
            0xFD50,   // FD50..FDFC; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3801
            0xFDFD,   // FDFD..FDFF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3802
            0xFE00,   // FE00..FE0F; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3803
            0xFE10,   // FE10..FE1F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3804
            0xFE20,   // FE20..FE2F; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3805
            0xFE30,   // FE30..FE6F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3806
            0xFE70,   // FE70..FEFE; ARABIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3807
            0xFEFF,   // FEFF..FF20; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3808
            0xFF21,   // FF21..FF3A; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3809
            0xFF3B,   // FF3B..FF40; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3810
            0xFF41,   // FF41..FF5A; LATIN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3811
            0xFF5B,   // FF5B..FF65; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3812
            0xFF66,   // FF66..FF6F; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3813
            0xFF70,   // FF70..FF70; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3814
            0xFF71,   // FF71..FF9D; KATAKANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3815
            0xFF9E,   // FF9E..FF9F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3816
            0xFFA0,   // FFA0..FFDF; HANGUL
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3817
            0xFFE0,   // FFE0..FFFF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3818
            0x10000,  // 10000..100FF; LINEAR_B
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3819
            0x10100,  // 10100..1013F; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3820
            0x10140,  // 10140..1018F; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3821
            0x10190,  // 10190..101FC; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3822
            0x101FD,  // 101FD..1027F; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3823
            0x10280,  // 10280..1029F; LYCIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3824
            0x102A0,  // 102A0..102FF; CARIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3825
            0x10300,  // 10300..1032F; OLD_ITALIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3826
            0x10330,  // 10330..1037F; GOTHIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3827
            0x10380,  // 10380..1039F; UGARITIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3828
            0x103A0,  // 103A0..103FF; OLD_PERSIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3829
            0x10400,  // 10400..1044F; DESERET
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3830
            0x10450,  // 10450..1047F; SHAVIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3831
            0x10480,  // 10480..107FF; OSMANYA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3832
            0x10800,  // 10800..1083F; CYPRIOT
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3833
            0x10840,  // 10840..108FF; IMPERIAL_ARAMAIC
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3834
            0x10900,  // 10900..1091F; PHOENICIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3835
            0x10920,  // 10920..109FF; LYDIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3836
            0x10A00,  // 10A00..10A5F; KHAROSHTHI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3837
            0x10A60,  // 10A60..10AFF; OLD_SOUTH_ARABIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3838
            0x10B00,  // 10B00..10B3F; AVESTAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3839
            0x10B40,  // 10B40..10B5F; INSCRIPTIONAL_PARTHIAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3840
            0x10B60,  // 10B60..10BFF; INSCRIPTIONAL_PAHLAVI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3841
            0x10C00,  // 10C00..10E5F; OLD_TURKIC
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3842
            0x10E60,  // 10E60..10FFF; ARABIC
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3843
            0x11000,  // 11000..1107F; BRAHMI
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3844
            0x11080,  // 11080..11FFF; KAITHI
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3845
            0x12000,  // 12000..12FFF; CUNEIFORM
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3846
            0x13000,  // 13000..167FF; EGYPTIAN_HIEROGLYPHS
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3847
            0x16800,  // 16800..16A38; BAMUM
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3848
            0x1B000,  // 1B000..1B000; KATAKANA
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3849
            0x1B001,  // 1B001..1CFFF; HIRAGANA
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3850
            0x1D000,  // 1D000..1D166; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3851
            0x1D167,  // 1D167..1D169; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3852
            0x1D16A,  // 1D16A..1D17A; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3853
            0x1D17B,  // 1D17B..1D182; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3854
            0x1D183,  // 1D183..1D184; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3855
            0x1D185,  // 1D185..1D18B; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3856
            0x1D18C,  // 1D18C..1D1A9; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3857
            0x1D1AA,  // 1D1AA..1D1AD; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3858
            0x1D1AE,  // 1D1AE..1D1FF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3859
            0x1D200,  // 1D200..1D2FF; GREEK
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3860
            0x1D300,  // 1D300..1F1FF; COMMON
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3861
            0x1F200,  // 1F200..1F200; HIRAGANA
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3862
            0x1F201,  // 1F210..1FFFF; COMMON
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3863
            0x20000,  // 20000..E0000; HAN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3864
            0xE0001,  // E0001..E00FF; COMMON
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3865
            0xE0100,  // E0100..E01EF; INHERITED
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3866
            0xE01F0   // E01F0..10FFFF; UNKNOWN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3867
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3868
        };
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3869
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3870
        private static final UnicodeScript[] scripts = {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3871
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3872
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3873
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3874
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3875
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3876
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3877
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3878
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3879
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3880
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3881
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3882
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3883
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3884
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3885
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3886
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3887
            COMMON,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3888
            BOPOMOFO,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3889
            COMMON,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3890
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3891
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3892
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3893
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3894
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3895
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3896
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3897
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3898
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3899
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3900
            COPTIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3901
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3902
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3903
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3904
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3905
            ARMENIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3906
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3907
            ARMENIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3908
            HEBREW,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3909
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3910
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3911
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3912
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3913
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3914
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3915
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3916
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3917
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3918
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3919
            ARABIC,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3920
            INHERITED,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3921
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3922
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3923
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3924
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3925
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3926
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3927
            SYRIAC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3928
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3929
            THAANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3930
            NKO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3931
            SAMARITAN,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3932
            MANDAIC,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3933
            DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3934
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3935
            DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3936
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3937
            DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3938
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3939
            DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3940
            BENGALI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3941
            GURMUKHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3942
            GUJARATI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3943
            ORIYA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3944
            TAMIL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3945
            TELUGU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3946
            KANNADA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3947
            MALAYALAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3948
            SINHALA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3949
            THAI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3950
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3951
            THAI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3952
            LAO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3953
            TIBETAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3954
            COMMON,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3955
            TIBETAN,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3956
            MYANMAR,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3957
            GEORGIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3958
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3959
            GEORGIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3960
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3961
            ETHIOPIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3962
            CHEROKEE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3963
            CANADIAN_ABORIGINAL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3964
            OGHAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3965
            RUNIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3966
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3967
            RUNIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3968
            TAGALOG,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3969
            HANUNOO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3970
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3971
            BUHID,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3972
            TAGBANWA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3973
            KHMER,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3974
            MONGOLIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3975
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3976
            MONGOLIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3977
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3978
            MONGOLIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3979
            CANADIAN_ABORIGINAL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3980
            LIMBU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3981
            TAI_LE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3982
            NEW_TAI_LUE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3983
            KHMER,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3984
            BUGINESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3985
            TAI_THAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3986
            BALINESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3987
            SUNDANESE,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  3988
            BATAK,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3989
            LEPCHA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3990
            OL_CHIKI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3991
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3992
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3993
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3994
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3995
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3996
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3997
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3998
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  3999
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4000
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4001
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4002
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4003
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4004
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4005
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4006
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4007
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4008
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4009
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4010
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4011
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4012
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4013
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4014
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4015
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4016
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4017
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4018
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4019
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4020
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4021
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4022
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4023
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4024
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4025
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4026
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4027
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4028
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4029
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4030
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4031
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4032
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4033
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4034
            BRAILLE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4035
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4036
            GLAGOLITIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4037
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4038
            COPTIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4039
            GEORGIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4040
            TIFINAGH,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4041
            ETHIOPIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4042
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4043
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4044
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4045
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4046
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4047
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4048
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4049
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4050
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4051
            INHERITED,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4052
            HANGUL,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4053
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4054
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4055
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4056
            HIRAGANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4057
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4058
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4059
            HIRAGANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4060
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4061
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4062
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4063
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4064
            BOPOMOFO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4065
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4066
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4067
            BOPOMOFO,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4068
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4069
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4070
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4071
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4072
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4073
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4074
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4075
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4076
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4077
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4078
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4079
            YI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4080
            LISU,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4081
            VAI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4082
            CYRILLIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4083
            BAMUM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4084
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4085
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4086
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4087
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4088
            SYLOTI_NAGRI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4089
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4090
            PHAGS_PA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4091
            SAURASHTRA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4092
            DEVANAGARI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4093
            KAYAH_LI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4094
            REJANG,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4095
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4096
            JAVANESE,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4097
            CHAM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4098
            MYANMAR,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4099
            TAI_VIET,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4100
            ETHIOPIC,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4101
            MEETEI_MAYEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4102
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4103
            UNKNOWN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4104
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4105
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4106
            ARMENIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4107
            HEBREW,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4108
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4109
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4110
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4111
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4112
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4113
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4114
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4115
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4116
            ARABIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4117
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4118
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4119
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4120
            LATIN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4121
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4122
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4123
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4124
            KATAKANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4125
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4126
            HANGUL,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4127
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4128
            LINEAR_B,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4129
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4130
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4131
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4132
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4133
            LYCIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4134
            CARIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4135
            OLD_ITALIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4136
            GOTHIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4137
            UGARITIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4138
            OLD_PERSIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4139
            DESERET,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4140
            SHAVIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4141
            OSMANYA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4142
            CYPRIOT,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4143
            IMPERIAL_ARAMAIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4144
            PHOENICIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4145
            LYDIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4146
            KHAROSHTHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4147
            OLD_SOUTH_ARABIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4148
            AVESTAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4149
            INSCRIPTIONAL_PARTHIAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4150
            INSCRIPTIONAL_PAHLAVI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4151
            OLD_TURKIC,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4152
            ARABIC,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4153
            BRAHMI,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4154
            KAITHI,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4155
            CUNEIFORM,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4156
            EGYPTIAN_HIEROGLYPHS,
7247
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4157
            BAMUM,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4158
            KATAKANA,
20bd166a1ad6 6959267: Support Unicode 6.0.0
peytoia
parents: 6498
diff changeset
  4159
            HIRAGANA,
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4160
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4161
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4162
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4163
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4164
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4165
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4166
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4167
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4168
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4169
            GREEK,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4170
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4171
            HIRAGANA,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4172
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4173
            HAN,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4174
            COMMON,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4175
            INHERITED,
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4176
            UNKNOWN
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4177
        };
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4178
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4179
        private static HashMap<String, Character.UnicodeScript> aliases;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4180
        static {
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4181
            aliases = new HashMap<String, UnicodeScript>(128);
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4182
            aliases.put("ARAB", ARABIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4183
            aliases.put("ARMI", IMPERIAL_ARAMAIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4184
            aliases.put("ARMN", ARMENIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4185
            aliases.put("AVST", AVESTAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4186
            aliases.put("BALI", BALINESE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4187
            aliases.put("BAMU", BAMUM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4188
            aliases.put("BENG", BENGALI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4189
            aliases.put("BOPO", BOPOMOFO);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4190
            aliases.put("BRAI", BRAILLE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4191
            aliases.put("BUGI", BUGINESE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4192
            aliases.put("BUHD", BUHID);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4193
            aliases.put("CANS", CANADIAN_ABORIGINAL);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4194
            aliases.put("CARI", CARIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4195
            aliases.put("CHAM", CHAM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4196
            aliases.put("CHER", CHEROKEE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4197
            aliases.put("COPT", COPTIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4198
            aliases.put("CPRT", CYPRIOT);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4199
            aliases.put("CYRL", CYRILLIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4200
            aliases.put("DEVA", DEVANAGARI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4201
            aliases.put("DSRT", DESERET);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4202
            aliases.put("EGYP", EGYPTIAN_HIEROGLYPHS);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4203
            aliases.put("ETHI", ETHIOPIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4204
            aliases.put("GEOR", GEORGIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4205
            aliases.put("GLAG", GLAGOLITIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4206
            aliases.put("GOTH", GOTHIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4207
            aliases.put("GREK", GREEK);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4208
            aliases.put("GUJR", GUJARATI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4209
            aliases.put("GURU", GURMUKHI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4210
            aliases.put("HANG", HANGUL);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4211
            aliases.put("HANI", HAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4212
            aliases.put("HANO", HANUNOO);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4213
            aliases.put("HEBR", HEBREW);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4214
            aliases.put("HIRA", HIRAGANA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4215
            // it appears we don't have the KATAKANA_OR_HIRAGANA
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4216
            //aliases.put("HRKT", KATAKANA_OR_HIRAGANA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4217
            aliases.put("ITAL", OLD_ITALIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4218
            aliases.put("JAVA", JAVANESE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4219
            aliases.put("KALI", KAYAH_LI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4220
            aliases.put("KANA", KATAKANA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4221
            aliases.put("KHAR", KHAROSHTHI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4222
            aliases.put("KHMR", KHMER);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4223
            aliases.put("KNDA", KANNADA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4224
            aliases.put("KTHI", KAITHI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4225
            aliases.put("LANA", TAI_THAM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4226
            aliases.put("LAOO", LAO);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4227
            aliases.put("LATN", LATIN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4228
            aliases.put("LEPC", LEPCHA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4229
            aliases.put("LIMB", LIMBU);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4230
            aliases.put("LINB", LINEAR_B);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4231
            aliases.put("LISU", LISU);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4232
            aliases.put("LYCI", LYCIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4233
            aliases.put("LYDI", LYDIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4234
            aliases.put("MLYM", MALAYALAM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4235
            aliases.put("MONG", MONGOLIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4236
            aliases.put("MTEI", MEETEI_MAYEK);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4237
            aliases.put("MYMR", MYANMAR);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4238
            aliases.put("NKOO", NKO);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4239
            aliases.put("OGAM", OGHAM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4240
            aliases.put("OLCK", OL_CHIKI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4241
            aliases.put("ORKH", OLD_TURKIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4242
            aliases.put("ORYA", ORIYA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4243
            aliases.put("OSMA", OSMANYA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4244
            aliases.put("PHAG", PHAGS_PA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4245
            aliases.put("PHLI", INSCRIPTIONAL_PAHLAVI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4246
            aliases.put("PHNX", PHOENICIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4247
            aliases.put("PRTI", INSCRIPTIONAL_PARTHIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4248
            aliases.put("RJNG", REJANG);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4249
            aliases.put("RUNR", RUNIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4250
            aliases.put("SAMR", SAMARITAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4251
            aliases.put("SARB", OLD_SOUTH_ARABIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4252
            aliases.put("SAUR", SAURASHTRA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4253
            aliases.put("SHAW", SHAVIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4254
            aliases.put("SINH", SINHALA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4255
            aliases.put("SUND", SUNDANESE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4256
            aliases.put("SYLO", SYLOTI_NAGRI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4257
            aliases.put("SYRC", SYRIAC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4258
            aliases.put("TAGB", TAGBANWA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4259
            aliases.put("TALE", TAI_LE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4260
            aliases.put("TALU", NEW_TAI_LUE);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4261
            aliases.put("TAML", TAMIL);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4262
            aliases.put("TAVT", TAI_VIET);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4263
            aliases.put("TELU", TELUGU);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4264
            aliases.put("TFNG", TIFINAGH);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4265
            aliases.put("TGLG", TAGALOG);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4266
            aliases.put("THAA", THAANA);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4267
            aliases.put("THAI", THAI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4268
            aliases.put("TIBT", TIBETAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4269
            aliases.put("UGAR", UGARITIC);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4270
            aliases.put("VAII", VAI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4271
            aliases.put("XPEO", OLD_PERSIAN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4272
            aliases.put("XSUX", CUNEIFORM);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4273
            aliases.put("YIII", YI);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4274
            aliases.put("ZINH", INHERITED);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4275
            aliases.put("ZYYY", COMMON);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4276
            aliases.put("ZZZZ", UNKNOWN);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4277
        }
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4278
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4279
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4280
         * Returns the enum constant representing the Unicode script of which
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4281
         * the given character (Unicode code point) is assigned to.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4282
         *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4283
         * @param   codePoint the character (Unicode code point) in question.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4284
         * @return  The <code>UnicodeScript</code> constant representing the
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4285
         *          Unicode script of which this character is assigned to.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4286
         *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4287
         * @exception IllegalArgumentException if the specified
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4288
         * <code>codePoint</code> is an invalid Unicode code point.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4289
         * @see Character#isValidCodePoint(int)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4290
         *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4291
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4292
        public static UnicodeScript of(int codePoint) {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4293
            if (!isValidCodePoint(codePoint))
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4294
                throw new IllegalArgumentException();
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4295
            int type = getType(codePoint);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4296
            // leave SURROGATE and PRIVATE_USE for table lookup
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4297
            if (type == UNASSIGNED)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4298
                return UNKNOWN;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4299
            int index = Arrays.binarySearch(scriptStarts, codePoint);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4300
            if (index < 0)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4301
                index = -index - 2;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4302
            return scripts[index];
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4303
        }
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4304
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4305
        /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4306
         * Returns the UnicodeScript constant with the given Unicode script
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4307
         * name or the script name alias. Script names and their aliases are
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4308
         * determined by The Unicode Standard. The files Scripts&lt;version&gt;.txt
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4309
         * and PropertyValueAliases&lt;version&gt;.txt define script names
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4310
         * and the script name aliases for a particular version of the
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4311
         * standard. The {@link Character} class specifies the version of
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4312
         * the standard that it supports.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4313
         * <p>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4314
         * Character case is ignored for all of the valid script names.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4315
         * The en_US locale's case mapping rules are used to provide
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4316
         * case-insensitive string comparisons for script name validation.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4317
         * <p>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4318
         *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4319
         * @param scriptName A <code>UnicodeScript</code> name.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4320
         * @return The <code>UnicodeScript</code> constant identified
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4321
         *         by <code>scriptName</code>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4322
         * @throws IllegalArgumentException if <code>scriptName</code> is an
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4323
         *         invalid name
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4324
         * @throws NullPointerException if <code>scriptName</code> is null
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4325
         */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4326
        public static final UnicodeScript forName(String scriptName) {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4327
            scriptName = scriptName.toUpperCase(Locale.ENGLISH);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4328
                                 //.replace(' ', '_'));
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4329
            UnicodeScript sc = aliases.get(scriptName);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4330
            if (sc != null)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4331
                return sc;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4332
            return valueOf(scriptName);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4333
        }
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4334
    }
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4335
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  4336
    /**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4337
     * The value of the <code>Character</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4338
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4339
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4340
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4341
    private final char value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4342
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4343
    /** use serialVersionUID from JDK 1.0.2 for interoperability */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4344
    private static final long serialVersionUID = 3786198910865385080L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4345
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4346
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4347
     * Constructs a newly allocated <code>Character</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4348
     * represents the specified <code>char</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4349
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4350
     * @param  value   the value to be represented by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4351
     *                  <code>Character</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4352
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4353
    public Character(char value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4354
        this.value = value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4355
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4356
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4357
    private static class CharacterCache {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4358
        private CharacterCache(){}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4359
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4360
        static final Character cache[] = new Character[127 + 1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4361
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4362
        static {
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4363
            for (int i = 0; i < cache.length; i++)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4364
                cache[i] = new Character((char)i);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4365
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4366
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4367
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4368
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4369
     * Returns a <tt>Character</tt> instance representing the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4370
     * <tt>char</tt> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4371
     * If a new <tt>Character</tt> instance is not required, this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4372
     * should generally be used in preference to the constructor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4373
     * {@link #Character(char)}, as this method is likely to yield
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4374
     * significantly better space and time performance by caching
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4375
     * frequently requested values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4376
     *
3719
b00a1e55ec44 6879368: Remove stray quote in Character javadoc
martin
parents: 3714
diff changeset
  4377
     * This method will always cache values in the range {@code
b00a1e55ec44 6879368: Remove stray quote in Character javadoc
martin
parents: 3714
diff changeset
  4378
     * '\u005Cu0000'} to {@code '\u005Cu007f'}, inclusive, and may
b00a1e55ec44 6879368: Remove stray quote in Character javadoc
martin
parents: 3714
diff changeset
  4379
     * cache other values outside of this range.
3224
3aa65803ae07 6628737: Specification of wrapper class valueOf static factories should require caching
darcy
parents: 2497
diff changeset
  4380
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4381
     * @param  c a char value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4382
     * @return a <tt>Character</tt> instance representing <tt>c</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4383
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4384
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4385
    public static Character valueOf(char c) {
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4386
        if (c <= 127) { // must cache
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4387
            return CharacterCache.cache[(int)c];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4388
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4389
        return new Character(c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4390
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4391
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4392
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4393
     * Returns the value of this <code>Character</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4394
     * @return  the primitive <code>char</code> value represented by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4395
     *          this object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4396
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4397
    public char charValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4398
        return value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4399
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4400
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4401
    /**
3942
685e04a98396 4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents: 3719
diff changeset
  4402
     * Returns a hash code for this {@code Character}; equal to the result
685e04a98396 4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents: 3719
diff changeset
  4403
     * of invoking {@code charValue()}.
685e04a98396 4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents: 3719
diff changeset
  4404
     *
685e04a98396 4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents: 3719
diff changeset
  4405
     * @return a hash code value for this {@code Character}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4406
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4407
    public int hashCode() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4408
        return (int)value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4409
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4410
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4411
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4412
     * Compares this object against the specified object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4413
     * The result is <code>true</code> if and only if the argument is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4414
     * <code>null</code> and is a <code>Character</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4415
     * represents the same <code>char</code> value as this object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4416
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4417
     * @param   obj   the object to compare with.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4418
     * @return  <code>true</code> if the objects are the same;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4419
     *          <code>false</code> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4420
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4421
    public boolean equals(Object obj) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4422
        if (obj instanceof Character) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4423
            return value == ((Character)obj).charValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4424
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4425
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4426
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4427
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4429
     * Returns a <code>String</code> object representing this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4430
     * <code>Character</code>'s value.  The result is a string of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4431
     * length 1 whose sole component is the primitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4432
     * <code>char</code> value represented by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4433
     * <code>Character</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4434
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4435
     * @return  a string representation of this object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4436
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4437
    public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4438
        char buf[] = {value};
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4439
        return String.valueOf(buf);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4440
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4441
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4442
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4443
     * Returns a <code>String</code> object representing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4444
     * specified <code>char</code>.  The result is a string of length
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4445
     * 1 consisting solely of the specified <code>char</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4446
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4447
     * @param c the <code>char</code> to be converted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4448
     * @return the string representation of the specified <code>char</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4449
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4450
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4451
    public static String toString(char c) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4452
        return String.valueOf(c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4453
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4454
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4455
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4456
     * Determines whether the specified code point is a valid
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4457
     * <a href="http://www.unicode.org/glossary/#code_point">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4458
     * Unicode code point value</a>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4459
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4460
     * @param  codePoint the Unicode code point to be tested
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4461
     * @return {@code true} if the specified code point value is between
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4462
     *         {@link #MIN_CODE_POINT} and
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4463
     *         {@link #MAX_CODE_POINT} inclusive;
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4464
     *         {@code false} otherwise.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4465
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4466
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4467
    public static boolean isValidCodePoint(int codePoint) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4468
        // Optimized form of:
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4469
        //     codePoint >= MIN_CODE_POINT && codePoint <= MAX_CODE_POINT
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4470
        int plane = codePoint >>> 16;
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4471
        return plane < ((MAX_CODE_POINT + 1) >>> 16);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4472
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4473
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4474
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4475
     * Determines whether the specified character (Unicode code point)
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4476
     * is in the <a href="#BMP">Basic Multilingual Plane (BMP)</a>.
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4477
     * Such code points can be represented using a single {@code char}.
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4478
     *
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4479
     * @param  codePoint the character (Unicode code point) to be tested
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4480
     * @return {@code true} if the specified code point is between
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4481
     *         {@link #MIN_VALUE} and {@link #MAX_VALUE} inclusive;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4482
     *         {@code false} otherwise.
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4483
     * @since  1.7
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4484
     */
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4485
    public static boolean isBmpCodePoint(int codePoint) {
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4486
        return codePoint >>> 16 == 0;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4487
        // Optimized form of:
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4488
        //     codePoint >= MIN_VALUE && codePoint <= MAX_VALUE
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4489
        // We consistently use logical shift (>>>) to facilitate
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4490
        // additional runtime optimizations.
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4491
    }
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4492
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4493
    /**
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4494
     * Determines whether the specified character (Unicode code point)
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4495
     * is in the <a href="#supplementary">supplementary character</a> range.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4496
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4497
     * @param  codePoint the character (Unicode code point) to be tested
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4498
     * @return {@code true} if the specified code point is between
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4499
     *         {@link #MIN_SUPPLEMENTARY_CODE_POINT} and
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4500
     *         {@link #MAX_CODE_POINT} inclusive;
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4501
     *         {@code false} otherwise.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4502
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4503
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4504
    public static boolean isSupplementaryCodePoint(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4505
        return codePoint >= MIN_SUPPLEMENTARY_CODE_POINT
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4506
            && codePoint <  MAX_CODE_POINT + 1;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4507
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4508
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4509
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4510
     * Determines if the given {@code char} value is a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4511
     * <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4512
     * Unicode high-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4513
     * (also known as <i>leading-surrogate code unit</i>).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4514
     *
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4515
     * <p>Such values do not represent characters by themselves,
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4516
     * but are used in the representation of
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4517
     * <a href="#supplementary">supplementary characters</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4518
     * in the UTF-16 encoding.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4519
     *
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4520
     * @param  ch the {@code char} value to be tested.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4521
     * @return {@code true} if the {@code char} value is between
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4522
     *         {@link #MIN_HIGH_SURROGATE} and
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4523
     *         {@link #MAX_HIGH_SURROGATE} inclusive;
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4524
     *         {@code false} otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4525
     * @see    Character#isLowSurrogate(char)
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4526
     * @see    Character.UnicodeBlock#of(int)
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4527
     * @since  1.5
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4528
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4529
    public static boolean isHighSurrogate(char ch) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4530
        // Help VM constant-fold; MAX_HIGH_SURROGATE + 1 == MIN_LOW_SURROGATE
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4531
        return ch >= MIN_HIGH_SURROGATE && ch < (MAX_HIGH_SURROGATE + 1);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4532
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4533
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4534
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4535
     * Determines if the given {@code char} value is a
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4536
     * <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4537
     * Unicode low-surrogate code unit</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4538
     * (also known as <i>trailing-surrogate code unit</i>).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4539
     *
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4540
     * <p>Such values do not represent characters by themselves,
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4541
     * but are used in the representation of
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4542
     * <a href="#supplementary">supplementary characters</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4543
     * in the UTF-16 encoding.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4544
     *
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4545
     * @param  ch the {@code char} value to be tested.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4546
     * @return {@code true} if the {@code char} value is between
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4547
     *         {@link #MIN_LOW_SURROGATE} and
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4548
     *         {@link #MAX_LOW_SURROGATE} inclusive;
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4549
     *         {@code false} otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4550
     * @see    Character#isHighSurrogate(char)
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4551
     * @since  1.5
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4552
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4553
    public static boolean isLowSurrogate(char ch) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4554
        return ch >= MIN_LOW_SURROGATE && ch < (MAX_LOW_SURROGATE + 1);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4555
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4556
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4557
    /**
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4558
     * Determines if the given {@code char} value is a Unicode
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4559
     * <i>surrogate code unit</i>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4560
     *
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4561
     * <p>Such values do not represent characters by themselves,
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4562
     * but are used in the representation of
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4563
     * <a href="#supplementary">supplementary characters</a>
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4564
     * in the UTF-16 encoding.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4565
     *
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4566
     * <p>A char value is a surrogate code unit if and only if it is either
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4567
     * a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4568
     * a {@linkplain #isHighSurrogate(char) high-surrogate code unit}.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4569
     *
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4570
     * @param  ch the {@code char} value to be tested.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4571
     * @return {@code true} if the {@code char} value is between
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4572
     *         {@link #MIN_SURROGATE} and
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4573
     *         {@link #MAX_SURROGATE} inclusive;
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4574
     *         {@code false} otherwise.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4575
     * @since  1.7
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4576
     */
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4577
    public static boolean isSurrogate(char ch) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4578
        return ch >= MIN_SURROGATE && ch < (MAX_SURROGATE + 1);
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4579
    }
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4580
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4581
    /**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4582
     * Determines whether the specified pair of <code>char</code>
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4583
     * values is a valid
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4584
     * <a href="http://www.unicode.org/glossary/#surrogate_pair">
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4585
     * Unicode surrogate pair</a>.
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4586
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  4587
     * <p>This method is equivalent to the expression:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4588
     * <blockquote><pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4589
     * isHighSurrogate(high) && isLowSurrogate(low)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4590
     * </pre></blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4591
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4592
     * @param  high the high-surrogate code value to be tested
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4593
     * @param  low the low-surrogate code value to be tested
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4594
     * @return <code>true</code> if the specified high and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4595
     * low-surrogate code values represent a valid surrogate pair;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4596
     * <code>false</code> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4597
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4598
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4599
    public static boolean isSurrogatePair(char high, char low) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4600
        return isHighSurrogate(high) && isLowSurrogate(low);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4601
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4602
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4603
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4604
     * Determines the number of <code>char</code> values needed to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4605
     * represent the specified character (Unicode code point). If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4606
     * specified character is equal to or greater than 0x10000, then
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4607
     * the method returns 2. Otherwise, the method returns 1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4608
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4609
     * <p>This method doesn't validate the specified character to be a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4610
     * valid Unicode code point. The caller must validate the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4611
     * character value using {@link #isValidCodePoint(int) isValidCodePoint}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4612
     * if necessary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4613
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4614
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4615
     * @return  2 if the character is a valid supplementary character; 1 otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4616
     * @see     Character#isSupplementaryCodePoint(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4617
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4618
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4619
    public static int charCount(int codePoint) {
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  4620
        return codePoint >= MIN_SUPPLEMENTARY_CODE_POINT ? 2 : 1;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4621
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4622
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4623
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4624
     * Converts the specified surrogate pair to its supplementary code
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4625
     * point value. This method does not validate the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4626
     * surrogate pair. The caller must validate it using {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4627
     * #isSurrogatePair(char, char) isSurrogatePair} if necessary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4628
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4629
     * @param  high the high-surrogate code unit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4630
     * @param  low the low-surrogate code unit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4631
     * @return the supplementary code point composed from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4632
     *         specified surrogate pair.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4633
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4634
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4635
    public static int toCodePoint(char high, char low) {
3323
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4636
        // Optimized form of:
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4637
        // return ((high - MIN_HIGH_SURROGATE) << 10)
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4638
        //         + (low - MIN_LOW_SURROGATE)
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4639
        //         + MIN_SUPPLEMENTARY_CODE_POINT;
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4640
        return ((high << 10) + low) + (MIN_SUPPLEMENTARY_CODE_POINT
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4641
                                       - (MIN_HIGH_SURROGATE << 10)
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4642
                                       - MIN_LOW_SURROGATE);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4643
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4644
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4645
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4646
     * Returns the code point at the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4647
     * <code>CharSequence</code>. If the <code>char</code> value at
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4648
     * the given index in the <code>CharSequence</code> is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4649
     * high-surrogate range, the following index is less than the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4650
     * length of the <code>CharSequence</code>, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4651
     * <code>char</code> value at the following index is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4652
     * low-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4653
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4654
     * the <code>char</code> value at the given index is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4655
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4656
     * @param seq a sequence of <code>char</code> values (Unicode code
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4657
     * units)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4658
     * @param index the index to the <code>char</code> values (Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4659
     * code units) in <code>seq</code> to be converted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4660
     * @return the Unicode code point at the given index
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4661
     * @exception NullPointerException if <code>seq</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4662
     * @exception IndexOutOfBoundsException if the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4663
     * <code>index</code> is negative or not less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4664
     * {@link CharSequence#length() seq.length()}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4665
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4666
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4667
    public static int codePointAt(CharSequence seq, int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4668
        char c1 = seq.charAt(index++);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4669
        if (isHighSurrogate(c1)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4670
            if (index < seq.length()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4671
                char c2 = seq.charAt(index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4672
                if (isLowSurrogate(c2)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4673
                    return toCodePoint(c1, c2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4674
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4675
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4676
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4677
        return c1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4678
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4679
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4680
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4681
     * Returns the code point at the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4682
     * <code>char</code> array. If the <code>char</code> value at
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4683
     * the given index in the <code>char</code> array is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4684
     * high-surrogate range, the following index is less than the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4685
     * length of the <code>char</code> array, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4686
     * <code>char</code> value at the following index is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4687
     * low-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4688
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4689
     * the <code>char</code> value at the given index is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4690
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4691
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4692
     * @param index the index to the <code>char</code> values (Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4693
     * code units) in the <code>char</code> array to be converted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4694
     * @return the Unicode code point at the given index
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4695
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4696
     * @exception IndexOutOfBoundsException if the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4697
     * <code>index</code> is negative or not less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4698
     * the length of the <code>char</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4699
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4700
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4701
    public static int codePointAt(char[] a, int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4702
        return codePointAtImpl(a, index, a.length);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4703
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4704
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4705
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4706
     * Returns the code point at the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4707
     * <code>char</code> array, where only array elements with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4708
     * <code>index</code> less than <code>limit</code> can be used. If
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4709
     * the <code>char</code> value at the given index in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4710
     * <code>char</code> array is in the high-surrogate range, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4711
     * following index is less than the <code>limit</code>, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4712
     * <code>char</code> value at the following index is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4713
     * low-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4714
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4715
     * the <code>char</code> value at the given index is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4716
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4717
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4718
     * @param index the index to the <code>char</code> values (Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4719
     * code units) in the <code>char</code> array to be converted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4720
     * @param limit the index after the last array element that can be used in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4721
     * <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4722
     * @return the Unicode code point at the given index
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4723
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4724
     * @exception IndexOutOfBoundsException if the <code>index</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4725
     * argument is negative or not less than the <code>limit</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4726
     * argument, or if the <code>limit</code> argument is negative or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4727
     * greater than the length of the <code>char</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4728
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4729
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4730
    public static int codePointAt(char[] a, int index, int limit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4731
        if (index >= limit || limit < 0 || limit > a.length) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4732
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4733
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4734
        return codePointAtImpl(a, index, limit);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4735
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4736
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4737
    // throws ArrayIndexOutofBoundsException if index out of bounds
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4738
    static int codePointAtImpl(char[] a, int index, int limit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4739
        char c1 = a[index++];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4740
        if (isHighSurrogate(c1)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4741
            if (index < limit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4742
                char c2 = a[index];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4743
                if (isLowSurrogate(c2)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4744
                    return toCodePoint(c1, c2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4745
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4746
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4747
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4748
        return c1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4749
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4750
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4751
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4752
     * Returns the code point preceding the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4753
     * <code>CharSequence</code>. If the <code>char</code> value at
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4754
     * <code>(index - 1)</code> in the <code>CharSequence</code> is in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4755
     * the low-surrogate range, <code>(index - 2)</code> is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4756
     * negative, and the <code>char</code> value at <code>(index -
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4757
     * 2)</code> in the <code>CharSequence</code> is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4758
     * high-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4759
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4760
     * the <code>char</code> value at <code>(index - 1)</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4761
     * returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4762
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4763
     * @param seq the <code>CharSequence</code> instance
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4764
     * @param index the index following the code point that should be returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4765
     * @return the Unicode code point value before the given index.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4766
     * @exception NullPointerException if <code>seq</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4767
     * @exception IndexOutOfBoundsException if the <code>index</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4768
     * argument is less than 1 or greater than {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4769
     * CharSequence#length() seq.length()}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4770
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4771
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4772
    public static int codePointBefore(CharSequence seq, int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4773
        char c2 = seq.charAt(--index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4774
        if (isLowSurrogate(c2)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4775
            if (index > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4776
                char c1 = seq.charAt(--index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4777
                if (isHighSurrogate(c1)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4778
                    return toCodePoint(c1, c2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4779
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4780
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4781
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4782
        return c2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4783
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4784
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4785
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4786
     * Returns the code point preceding the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4787
     * <code>char</code> array. If the <code>char</code> value at
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4788
     * <code>(index - 1)</code> in the <code>char</code> array is in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4789
     * the low-surrogate range, <code>(index - 2)</code> is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4790
     * negative, and the <code>char</code> value at <code>(index -
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4791
     * 2)</code> in the <code>char</code> array is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4792
     * high-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4793
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4794
     * the <code>char</code> value at <code>(index - 1)</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4795
     * returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4796
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4797
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4798
     * @param index the index following the code point that should be returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4799
     * @return the Unicode code point value before the given index.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4800
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4801
     * @exception IndexOutOfBoundsException if the <code>index</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4802
     * argument is less than 1 or greater than the length of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4803
     * <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4804
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4805
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4806
    public static int codePointBefore(char[] a, int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4807
        return codePointBeforeImpl(a, index, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4808
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4809
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4810
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4811
     * Returns the code point preceding the given index of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4812
     * <code>char</code> array, where only array elements with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4813
     * <code>index</code> greater than or equal to <code>start</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4814
     * can be used. If the <code>char</code> value at <code>(index -
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4815
     * 1)</code> in the <code>char</code> array is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4816
     * low-surrogate range, <code>(index - 2)</code> is not less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4817
     * <code>start</code>, and the <code>char</code> value at
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4818
     * <code>(index - 2)</code> in the <code>char</code> array is in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4819
     * the high-surrogate range, then the supplementary code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4820
     * corresponding to this surrogate pair is returned. Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4821
     * the <code>char</code> value at <code>(index - 1)</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4822
     * returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4823
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4824
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4825
     * @param index the index following the code point that should be returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4826
     * @param start the index of the first array element in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4827
     * <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4828
     * @return the Unicode code point value before the given index.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4829
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4830
     * @exception IndexOutOfBoundsException if the <code>index</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4831
     * argument is not greater than the <code>start</code> argument or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4832
     * is greater than the length of the <code>char</code> array, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4833
     * if the <code>start</code> argument is negative or not less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4834
     * the length of the <code>char</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4835
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4836
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4837
    public static int codePointBefore(char[] a, int index, int start) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4838
        if (index <= start || start < 0 || start >= a.length) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4839
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4840
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4841
        return codePointBeforeImpl(a, index, start);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4842
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4843
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  4844
    // throws ArrayIndexOutofBoundsException if index-1 out of bounds
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4845
    static int codePointBeforeImpl(char[] a, int index, int start) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4846
        char c2 = a[--index];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4847
        if (isLowSurrogate(c2)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4848
            if (index > start) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4849
                char c1 = a[--index];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4850
                if (isHighSurrogate(c1)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4851
                    return toCodePoint(c1, c2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4852
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4853
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4854
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4855
        return c2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4856
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4857
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4858
    /**
5991
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4859
     * Returns the leading surrogate (a
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4860
     * <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit">
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4861
     * high surrogate code unit</a>) of the
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4862
     * <a href="http://www.unicode.org/glossary/#surrogate_pair">
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4863
     * surrogate pair</a>
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4864
     * representing the specified supplementary character (Unicode
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4865
     * code point) in the UTF-16 encoding.  If the specified character
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4866
     * is not a
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4867
     * <a href="Character.html#supplementary">supplementary character</a>,
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4868
     * an unspecified {@code char} is returned.
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4869
     *
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4870
     * <p>If
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4871
     * {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)}
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4872
     * is {@code true}, then
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4873
     * {@link #isHighSurrogate isHighSurrogate}{@code (highSurrogate(x))} and
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4874
     * {@link #toCodePoint toCodePoint}{@code (highSurrogate(x), }{@link #lowSurrogate lowSurrogate}{@code (x)) == x}
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4875
     * are also always {@code true}.
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4876
     *
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4877
     * @param   codePoint a supplementary character (Unicode code point)
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4878
     * @return  the leading surrogate code unit used to represent the
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4879
     *          character in the UTF-16 encoding
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4880
     * @since   1.7
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4881
     */
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4882
    public static char highSurrogate(int codePoint) {
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4883
        return (char) ((codePoint >>> 10)
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4884
            + (MIN_HIGH_SURROGATE - (MIN_SUPPLEMENTARY_CODE_POINT >>> 10)));
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4885
    }
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4886
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4887
    /**
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4888
     * Returns the trailing surrogate (a
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4889
     * <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit">
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4890
     * low surrogate code unit</a>) of the
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4891
     * <a href="http://www.unicode.org/glossary/#surrogate_pair">
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4892
     * surrogate pair</a>
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4893
     * representing the specified supplementary character (Unicode
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4894
     * code point) in the UTF-16 encoding.  If the specified character
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4895
     * is not a
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4896
     * <a href="Character.html#supplementary">supplementary character</a>,
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4897
     * an unspecified {@code char} is returned.
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4898
     *
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4899
     * <p>If
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4900
     * {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)}
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4901
     * is {@code true}, then
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4902
     * {@link #isLowSurrogate isLowSurrogate}{@code (lowSurrogate(x))} and
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4903
     * {@link #toCodePoint toCodePoint}{@code (}{@link #highSurrogate highSurrogate}{@code (x), lowSurrogate(x)) == x}
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4904
     * are also always {@code true}.
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4905
     *
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4906
     * @param   codePoint a supplementary character (Unicode code point)
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4907
     * @return  the trailing surrogate code unit used to represent the
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4908
     *          character in the UTF-16 encoding
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4909
     * @since   1.7
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4910
     */
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4911
    public static char lowSurrogate(int codePoint) {
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4912
        return (char) ((codePoint & 0x3ff) + MIN_LOW_SURROGATE);
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4913
    }
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4914
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4915
    /**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4916
     * Converts the specified character (Unicode code point) to its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4917
     * UTF-16 representation. If the specified code point is a BMP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4918
     * (Basic Multilingual Plane or Plane 0) value, the same value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4919
     * stored in <code>dst[dstIndex]</code>, and 1 is returned. If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4920
     * specified code point is a supplementary character, its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4921
     * surrogate values are stored in <code>dst[dstIndex]</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4922
     * (high-surrogate) and <code>dst[dstIndex+1]</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4923
     * (low-surrogate), and 2 is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4924
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4925
     * @param  codePoint the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4926
     * @param  dst an array of <code>char</code> in which the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4927
     * <code>codePoint</code>'s UTF-16 value is stored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4928
     * @param dstIndex the start index into the <code>dst</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4929
     * array where the converted value is stored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4930
     * @return 1 if the code point is a BMP code point, 2 if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4931
     * code point is a supplementary code point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4932
     * @exception IllegalArgumentException if the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4933
     * <code>codePoint</code> is not a valid Unicode code point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4934
     * @exception NullPointerException if the specified <code>dst</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4935
     * @exception IndexOutOfBoundsException if <code>dstIndex</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4936
     * is negative or not less than <code>dst.length</code>, or if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4937
     * <code>dst</code> at <code>dstIndex</code> doesn't have enough
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4938
     * array element(s) to store the resulting <code>char</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4939
     * value(s). (If <code>dstIndex</code> is equal to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4940
     * <code>dst.length-1</code> and the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4941
     * <code>codePoint</code> is a supplementary character, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4942
     * high-surrogate value is not stored in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4943
     * <code>dst[dstIndex]</code>.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4944
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4945
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4946
    public static int toChars(int codePoint, char[] dst, int dstIndex) {
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4947
        if (isBmpCodePoint(codePoint)) {
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4948
            dst[dstIndex] = (char) codePoint;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4949
            return 1;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4950
        } else if (isValidCodePoint(codePoint)) {
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4951
            toSurrogates(codePoint, dst, dstIndex);
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4952
            return 2;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4953
        } else {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4954
            throw new IllegalArgumentException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4955
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4956
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4957
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4958
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4959
     * Converts the specified character (Unicode code point) to its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4960
     * UTF-16 representation stored in a <code>char</code> array. If
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4961
     * the specified code point is a BMP (Basic Multilingual Plane or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4962
     * Plane 0) value, the resulting <code>char</code> array has
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4963
     * the same value as <code>codePoint</code>. If the specified code
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4964
     * point is a supplementary code point, the resulting
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4965
     * <code>char</code> array has the corresponding surrogate pair.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4966
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4967
     * @param  codePoint a Unicode code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4968
     * @return a <code>char</code> array having
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4969
     *         <code>codePoint</code>'s UTF-16 representation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4970
     * @exception IllegalArgumentException if the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4971
     * <code>codePoint</code> is not a valid Unicode code point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4972
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4973
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4974
    public static char[] toChars(int codePoint) {
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4975
        if (isBmpCodePoint(codePoint)) {
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4976
            return new char[] { (char) codePoint };
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4977
        } else if (isValidCodePoint(codePoint)) {
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4978
            char[] result = new char[2];
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4979
            toSurrogates(codePoint, result, 0);
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4980
            return result;
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  4981
        } else {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4982
            throw new IllegalArgumentException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4983
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4984
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4985
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4986
    static void toSurrogates(int codePoint, char[] dst, int index) {
3323
29b6893c6188 6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents: 3224
diff changeset
  4987
        // We write elements "backwards" to guarantee all-or-nothing
5991
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4988
        dst[index+1] = lowSurrogate(codePoint);
288afdbbca28 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents: 5990
diff changeset
  4989
        dst[index] = highSurrogate(codePoint);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4990
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4991
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4992
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4993
     * Returns the number of Unicode code points in the text range of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4994
     * the specified char sequence. The text range begins at the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4995
     * specified <code>beginIndex</code> and extends to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4996
     * <code>char</code> at index <code>endIndex - 1</code>. Thus the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4997
     * length (in <code>char</code>s) of the text range is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4998
     * <code>endIndex-beginIndex</code>. Unpaired surrogates within
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4999
     * the text range count as one code point each.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5000
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5001
     * @param seq the char sequence
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5002
     * @param beginIndex the index to the first <code>char</code> of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5003
     * the text range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5004
     * @param endIndex the index after the last <code>char</code> of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5005
     * the text range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5006
     * @return the number of Unicode code points in the specified text
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5007
     * range
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5008
     * @exception NullPointerException if <code>seq</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5009
     * @exception IndexOutOfBoundsException if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5010
     * <code>beginIndex</code> is negative, or <code>endIndex</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5011
     * is larger than the length of the given sequence, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5012
     * <code>beginIndex</code> is larger than <code>endIndex</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5013
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5014
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5015
    public static int codePointCount(CharSequence seq, int beginIndex, int endIndex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5016
        int length = seq.length();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5017
        if (beginIndex < 0 || endIndex > length || beginIndex > endIndex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5018
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5019
        }
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5020
        int n = endIndex - beginIndex;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5021
        for (int i = beginIndex; i < endIndex; ) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5022
            if (isHighSurrogate(seq.charAt(i++)) && i < endIndex &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5023
                isLowSurrogate(seq.charAt(i))) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5024
                n--;
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5025
                i++;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5026
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5027
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5028
        return n;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5029
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5030
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5031
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5032
     * Returns the number of Unicode code points in a subarray of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5033
     * <code>char</code> array argument. The <code>offset</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5034
     * argument is the index of the first <code>char</code> of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5035
     * subarray and the <code>count</code> argument specifies the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5036
     * length of the subarray in <code>char</code>s. Unpaired
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5037
     * surrogates within the subarray count as one code point each.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5038
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5039
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5040
     * @param offset the index of the first <code>char</code> in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5041
     * given <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5042
     * @param count the length of the subarray in <code>char</code>s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5043
     * @return the number of Unicode code points in the specified subarray
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5044
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5045
     * @exception IndexOutOfBoundsException if <code>offset</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5046
     * <code>count</code> is negative, or if <code>offset +
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5047
     * count</code> is larger than the length of the given array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5048
     * @since  1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5049
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5050
    public static int codePointCount(char[] a, int offset, int count) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5051
        if (count > a.length - offset || offset < 0 || count < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5052
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5053
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5054
        return codePointCountImpl(a, offset, count);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5055
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5056
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5057
    static int codePointCountImpl(char[] a, int offset, int count) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5058
        int endIndex = offset + count;
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5059
        int n = count;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5060
        for (int i = offset; i < endIndex; ) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5061
            if (isHighSurrogate(a[i++]) && i < endIndex &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5062
                isLowSurrogate(a[i])) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5063
                n--;
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5064
                i++;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5065
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5066
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5067
        return n;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5068
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5069
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5070
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5071
     * Returns the index within the given char sequence that is offset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5072
     * from the given <code>index</code> by <code>codePointOffset</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5073
     * code points. Unpaired surrogates within the text range given by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5074
     * <code>index</code> and <code>codePointOffset</code> count as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5075
     * one code point each.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5076
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5077
     * @param seq the char sequence
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5078
     * @param index the index to be offset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5079
     * @param codePointOffset the offset in code points
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5080
     * @return the index within the char sequence
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5081
     * @exception NullPointerException if <code>seq</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5082
     * @exception IndexOutOfBoundsException if <code>index</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5083
     *   is negative or larger then the length of the char sequence,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5084
     *   or if <code>codePointOffset</code> is positive and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5085
     *   subsequence starting with <code>index</code> has fewer than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5086
     *   <code>codePointOffset</code> code points, or if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5087
     *   <code>codePointOffset</code> is negative and the subsequence
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5088
     *   before <code>index</code> has fewer than the absolute value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5089
     *   of <code>codePointOffset</code> code points.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5090
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5091
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5092
    public static int offsetByCodePoints(CharSequence seq, int index,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5093
                                         int codePointOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5094
        int length = seq.length();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5095
        if (index < 0 || index > length) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5096
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5097
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5098
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5099
        int x = index;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5100
        if (codePointOffset >= 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5101
            int i;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5102
            for (i = 0; x < length && i < codePointOffset; i++) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5103
                if (isHighSurrogate(seq.charAt(x++)) && x < length &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5104
                    isLowSurrogate(seq.charAt(x))) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5105
                    x++;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5106
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5107
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5108
            if (i < codePointOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5109
                throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5110
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5111
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5112
            int i;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5113
            for (i = codePointOffset; x > 0 && i < 0; i++) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5114
                if (isLowSurrogate(seq.charAt(--x)) && x > 0 &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5115
                    isHighSurrogate(seq.charAt(x-1))) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5116
                    x--;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5117
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5118
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5119
            if (i < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5120
                throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5121
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5122
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5123
        return x;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5124
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5125
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5126
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5127
     * Returns the index within the given <code>char</code> subarray
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5128
     * that is offset from the given <code>index</code> by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5129
     * <code>codePointOffset</code> code points. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5130
     * <code>start</code> and <code>count</code> arguments specify a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5131
     * subarray of the <code>char</code> array. Unpaired surrogates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5132
     * within the text range given by <code>index</code> and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5133
     * <code>codePointOffset</code> count as one code point each.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5134
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5135
     * @param a the <code>char</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5136
     * @param start the index of the first <code>char</code> of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5137
     * subarray
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5138
     * @param count the length of the subarray in <code>char</code>s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5139
     * @param index the index to be offset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5140
     * @param codePointOffset the offset in code points
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5141
     * @return the index within the subarray
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5142
     * @exception NullPointerException if <code>a</code> is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5143
     * @exception IndexOutOfBoundsException
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5144
     *   if <code>start</code> or <code>count</code> is negative,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5145
     *   or if <code>start + count</code> is larger than the length of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5146
     *   the given array,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5147
     *   or if <code>index</code> is less than <code>start</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5148
     *   larger then <code>start + count</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5149
     *   or if <code>codePointOffset</code> is positive and the text range
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5150
     *   starting with <code>index</code> and ending with <code>start
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5151
     *   + count - 1</code> has fewer than <code>codePointOffset</code> code
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5152
     *   points,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5153
     *   or if <code>codePointOffset</code> is negative and the text range
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5154
     *   starting with <code>start</code> and ending with <code>index
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5155
     *   - 1</code> has fewer than the absolute value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5156
     *   <code>codePointOffset</code> code points.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5157
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5158
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5159
    public static int offsetByCodePoints(char[] a, int start, int count,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5160
                                         int index, int codePointOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5161
        if (count > a.length-start || start < 0 || count < 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5162
            || index < start || index > start+count) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5163
            throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5164
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5165
        return offsetByCodePointsImpl(a, start, count, index, codePointOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5166
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5167
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5168
    static int offsetByCodePointsImpl(char[]a, int start, int count,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5169
                                      int index, int codePointOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5170
        int x = index;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5171
        if (codePointOffset >= 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5172
            int limit = start + count;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5173
            int i;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5174
            for (i = 0; x < limit && i < codePointOffset; i++) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5175
                if (isHighSurrogate(a[x++]) && x < limit &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5176
                    isLowSurrogate(a[x])) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5177
                    x++;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5178
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5179
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5180
            if (i < codePointOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5181
                throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5182
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5183
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5184
            int i;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5185
            for (i = codePointOffset; x > start && i < 0; i++) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5186
                if (isLowSurrogate(a[--x]) && x > start &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5187
                    isHighSurrogate(a[x-1])) {
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  5188
                    x--;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5189
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5190
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5191
            if (i < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5192
                throw new IndexOutOfBoundsException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5193
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5194
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5195
        return x;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5196
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5197
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5198
    /**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5199
     * Determines if the specified character is a lowercase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5200
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5201
     * A character is lowercase if its general category type, provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5202
     * by <code>Character.getType(ch)</code>, is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5203
     * <code>LOWERCASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5204
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5205
     * The following are examples of lowercase characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5206
     * <p><blockquote><pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5207
     * a b c d e f g h i j k l m n o p q r s t u v w x y z
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5208
     * '&#92;u00DF' '&#92;u00E0' '&#92;u00E1' '&#92;u00E2' '&#92;u00E3' '&#92;u00E4' '&#92;u00E5' '&#92;u00E6'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5209
     * '&#92;u00E7' '&#92;u00E8' '&#92;u00E9' '&#92;u00EA' '&#92;u00EB' '&#92;u00EC' '&#92;u00ED' '&#92;u00EE'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5210
     * '&#92;u00EF' '&#92;u00F0' '&#92;u00F1' '&#92;u00F2' '&#92;u00F3' '&#92;u00F4' '&#92;u00F5' '&#92;u00F6'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5211
     * '&#92;u00F8' '&#92;u00F9' '&#92;u00FA' '&#92;u00FB' '&#92;u00FC' '&#92;u00FD' '&#92;u00FE' '&#92;u00FF'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5212
     * </pre></blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5213
     * <p> Many other Unicode characters are lowercase too.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5214
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5215
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5216
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5217
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5218
     * the {@link #isLowerCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5219
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5220
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5221
     * @return  <code>true</code> if the character is lowercase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5222
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5223
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5224
     * @see     Character#isTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5225
     * @see     Character#toLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5226
     * @see     Character#getType(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5227
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5228
    public static boolean isLowerCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5229
        return isLowerCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5230
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5231
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5232
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5233
     * Determines if the specified character (Unicode code point) is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5234
     * lowercase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5235
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5236
     * A character is lowercase if its general category type, provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5237
     * by {@link Character#getType getType(codePoint)}, is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5238
     * <code>LOWERCASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5239
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5240
     * The following are examples of lowercase characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5241
     * <p><blockquote><pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5242
     * a b c d e f g h i j k l m n o p q r s t u v w x y z
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5243
     * '&#92;u00DF' '&#92;u00E0' '&#92;u00E1' '&#92;u00E2' '&#92;u00E3' '&#92;u00E4' '&#92;u00E5' '&#92;u00E6'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5244
     * '&#92;u00E7' '&#92;u00E8' '&#92;u00E9' '&#92;u00EA' '&#92;u00EB' '&#92;u00EC' '&#92;u00ED' '&#92;u00EE'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5245
     * '&#92;u00EF' '&#92;u00F0' '&#92;u00F1' '&#92;u00F2' '&#92;u00F3' '&#92;u00F4' '&#92;u00F5' '&#92;u00F6'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5246
     * '&#92;u00F8' '&#92;u00F9' '&#92;u00FA' '&#92;u00FB' '&#92;u00FC' '&#92;u00FD' '&#92;u00FE' '&#92;u00FF'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5247
     * </pre></blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5248
     * <p> Many other Unicode characters are lowercase too.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5249
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5250
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5251
     * @return  <code>true</code> if the character is lowercase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5252
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5253
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5254
     * @see     Character#isTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5255
     * @see     Character#toLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5256
     * @see     Character#getType(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5257
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5258
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5259
    public static boolean isLowerCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5260
        return getType(codePoint) == Character.LOWERCASE_LETTER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5261
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5262
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5263
    /**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5264
     * Determines if the specified character is an uppercase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5265
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5266
     * A character is uppercase if its general category type, provided by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5267
     * <code>Character.getType(ch)</code>, is <code>UPPERCASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5268
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5269
     * The following are examples of uppercase characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5270
     * <p><blockquote><pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5271
     * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5272
     * '&#92;u00C0' '&#92;u00C1' '&#92;u00C2' '&#92;u00C3' '&#92;u00C4' '&#92;u00C5' '&#92;u00C6' '&#92;u00C7'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5273
     * '&#92;u00C8' '&#92;u00C9' '&#92;u00CA' '&#92;u00CB' '&#92;u00CC' '&#92;u00CD' '&#92;u00CE' '&#92;u00CF'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5274
     * '&#92;u00D0' '&#92;u00D1' '&#92;u00D2' '&#92;u00D3' '&#92;u00D4' '&#92;u00D5' '&#92;u00D6' '&#92;u00D8'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5275
     * '&#92;u00D9' '&#92;u00DA' '&#92;u00DB' '&#92;u00DC' '&#92;u00DD' '&#92;u00DE'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5276
     * </pre></blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5277
     * <p> Many other Unicode characters are uppercase too.<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5278
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5279
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5280
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5281
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5282
     * the {@link #isUpperCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5283
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5284
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5285
     * @return  <code>true</code> if the character is uppercase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5286
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5287
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5288
     * @see     Character#isTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5289
     * @see     Character#toUpperCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5290
     * @see     Character#getType(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5291
     * @since   1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5292
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5293
    public static boolean isUpperCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5294
        return isUpperCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5295
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5296
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5297
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5298
     * Determines if the specified character (Unicode code point) is an uppercase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5299
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5300
     * A character is uppercase if its general category type, provided by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5301
     * {@link Character#getType(int) getType(codePoint)}, is <code>UPPERCASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5302
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5303
     * The following are examples of uppercase characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5304
     * <p><blockquote><pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5305
     * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5306
     * '&#92;u00C0' '&#92;u00C1' '&#92;u00C2' '&#92;u00C3' '&#92;u00C4' '&#92;u00C5' '&#92;u00C6' '&#92;u00C7'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5307
     * '&#92;u00C8' '&#92;u00C9' '&#92;u00CA' '&#92;u00CB' '&#92;u00CC' '&#92;u00CD' '&#92;u00CE' '&#92;u00CF'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5308
     * '&#92;u00D0' '&#92;u00D1' '&#92;u00D2' '&#92;u00D3' '&#92;u00D4' '&#92;u00D5' '&#92;u00D6' '&#92;u00D8'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5309
     * '&#92;u00D9' '&#92;u00DA' '&#92;u00DB' '&#92;u00DC' '&#92;u00DD' '&#92;u00DE'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5310
     * </pre></blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5311
     * <p> Many other Unicode characters are uppercase too.<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5312
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5313
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5314
     * @return  <code>true</code> if the character is uppercase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5315
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5316
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5317
     * @see     Character#isTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5318
     * @see     Character#toUpperCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5319
     * @see     Character#getType(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5320
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5321
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5322
    public static boolean isUpperCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5323
        return getType(codePoint) == Character.UPPERCASE_LETTER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5324
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5325
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5326
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5327
     * Determines if the specified character is a titlecase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5328
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5329
     * A character is a titlecase character if its general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5330
     * category type, provided by <code>Character.getType(ch)</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5331
     * is <code>TITLECASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5332
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5333
     * Some characters look like pairs of Latin letters. For example, there
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5334
     * is an uppercase letter that looks like "LJ" and has a corresponding
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5335
     * lowercase letter that looks like "lj". A third form, which looks like "Lj",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5336
     * is the appropriate form to use when rendering a word in lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5337
     * with initial capitals, as for a book title.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5338
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5339
     * These are some of the Unicode characters for which this method returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5340
     * <code>true</code>:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5341
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5342
     * <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5343
     * <li><code>LATIN CAPITAL LETTER L WITH SMALL LETTER J</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5344
     * <li><code>LATIN CAPITAL LETTER N WITH SMALL LETTER J</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5345
     * <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5346
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5347
     * <p> Many other Unicode characters are titlecase too.<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5348
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5349
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5350
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5351
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5352
     * the {@link #isTitleCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5353
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5354
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5355
     * @return  <code>true</code> if the character is titlecase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5356
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5357
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5358
     * @see     Character#isUpperCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5359
     * @see     Character#toTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5360
     * @see     Character#getType(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5361
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5362
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5363
    public static boolean isTitleCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5364
        return isTitleCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5365
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5366
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5367
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5368
     * Determines if the specified character (Unicode code point) is a titlecase character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5369
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5370
     * A character is a titlecase character if its general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5371
     * category type, provided by {@link Character#getType(int) getType(codePoint)},
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5372
     * is <code>TITLECASE_LETTER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5373
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5374
     * Some characters look like pairs of Latin letters. For example, there
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5375
     * is an uppercase letter that looks like "LJ" and has a corresponding
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5376
     * lowercase letter that looks like "lj". A third form, which looks like "Lj",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5377
     * is the appropriate form to use when rendering a word in lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5378
     * with initial capitals, as for a book title.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5379
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5380
     * These are some of the Unicode characters for which this method returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5381
     * <code>true</code>:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5382
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5383
     * <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5384
     * <li><code>LATIN CAPITAL LETTER L WITH SMALL LETTER J</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5385
     * <li><code>LATIN CAPITAL LETTER N WITH SMALL LETTER J</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5386
     * <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5387
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5388
     * <p> Many other Unicode characters are titlecase too.<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5389
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5390
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5391
     * @return  <code>true</code> if the character is titlecase;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5392
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5393
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5394
     * @see     Character#isUpperCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5395
     * @see     Character#toTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5396
     * @see     Character#getType(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5397
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5398
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5399
    public static boolean isTitleCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5400
        return getType(codePoint) == Character.TITLECASE_LETTER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5401
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5402
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5403
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5404
     * Determines if the specified character is a digit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5405
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5406
     * A character is a digit if its general category type, provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5407
     * by <code>Character.getType(ch)</code>, is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5408
     * <code>DECIMAL_DIGIT_NUMBER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5409
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5410
     * Some Unicode character ranges that contain digits:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5411
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5412
     * <li><code>'&#92;u0030'</code> through <code>'&#92;u0039'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5413
     *     ISO-LATIN-1 digits (<code>'0'</code> through <code>'9'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5414
     * <li><code>'&#92;u0660'</code> through <code>'&#92;u0669'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5415
     *     Arabic-Indic digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5416
     * <li><code>'&#92;u06F0'</code> through <code>'&#92;u06F9'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5417
     *     Extended Arabic-Indic digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5418
     * <li><code>'&#92;u0966'</code> through <code>'&#92;u096F'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5419
     *     Devanagari digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5420
     * <li><code>'&#92;uFF10'</code> through <code>'&#92;uFF19'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5421
     *     Fullwidth digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5422
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5423
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5424
     * Many other character ranges contain digits as well.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5426
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5427
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5428
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5429
     * the {@link #isDigit(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5430
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5431
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5432
     * @return  <code>true</code> if the character is a digit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5433
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5434
     * @see     Character#digit(char, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5435
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5436
     * @see     Character#getType(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5437
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5438
    public static boolean isDigit(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5439
        return isDigit((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5440
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5441
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5442
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5443
     * Determines if the specified character (Unicode code point) is a digit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5444
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5445
     * A character is a digit if its general category type, provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5446
     * by {@link Character#getType(int) getType(codePoint)}, is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5447
     * <code>DECIMAL_DIGIT_NUMBER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5448
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5449
     * Some Unicode character ranges that contain digits:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5450
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5451
     * <li><code>'&#92;u0030'</code> through <code>'&#92;u0039'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5452
     *     ISO-LATIN-1 digits (<code>'0'</code> through <code>'9'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5453
     * <li><code>'&#92;u0660'</code> through <code>'&#92;u0669'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5454
     *     Arabic-Indic digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5455
     * <li><code>'&#92;u06F0'</code> through <code>'&#92;u06F9'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5456
     *     Extended Arabic-Indic digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5457
     * <li><code>'&#92;u0966'</code> through <code>'&#92;u096F'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5458
     *     Devanagari digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5459
     * <li><code>'&#92;uFF10'</code> through <code>'&#92;uFF19'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5460
     *     Fullwidth digits
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5461
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5462
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5463
     * Many other character ranges contain digits as well.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5464
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5465
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5466
     * @return  <code>true</code> if the character is a digit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5467
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5468
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5469
     * @see     Character#getType(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5470
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5471
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5472
    public static boolean isDigit(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5473
        return getType(codePoint) == Character.DECIMAL_DIGIT_NUMBER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5474
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5475
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5476
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5477
     * Determines if a character is defined in Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5478
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5479
     * A character is defined if at least one of the following is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5480
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5481
     * <li>It has an entry in the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5482
     * <li>It has a value in a range defined by the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5483
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5484
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5485
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5486
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5487
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5488
     * the {@link #isDefined(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5489
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5490
     * @param   ch   the character to be tested
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5491
     * @return  <code>true</code> if the character has a defined meaning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5492
     *          in Unicode; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5493
     * @see     Character#isDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5494
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5495
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5496
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5497
     * @see     Character#isTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5498
     * @see     Character#isUpperCase(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5499
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5500
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5501
    public static boolean isDefined(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5502
        return isDefined((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5503
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5504
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5505
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5506
     * Determines if a character (Unicode code point) is defined in Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5507
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5508
     * A character is defined if at least one of the following is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5509
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5510
     * <li>It has an entry in the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5511
     * <li>It has a value in a range defined by the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5512
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5513
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5514
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5515
     * @return  <code>true</code> if the character has a defined meaning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5516
     *          in Unicode; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5517
     * @see     Character#isDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5518
     * @see     Character#isLetter(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5519
     * @see     Character#isLetterOrDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5520
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5521
     * @see     Character#isTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5522
     * @see     Character#isUpperCase(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5523
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5524
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5525
    public static boolean isDefined(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5526
        return getType(codePoint) != Character.UNASSIGNED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5527
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5528
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5529
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5530
     * Determines if the specified character is a letter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5531
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5532
     * A character is considered to be a letter if its general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5533
     * category type, provided by <code>Character.getType(ch)</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5534
     * is any of the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5535
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5536
     * <li> <code>UPPERCASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5537
     * <li> <code>LOWERCASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5538
     * <li> <code>TITLECASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5539
     * <li> <code>MODIFIER_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5540
     * <li> <code>OTHER_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5541
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5542
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5543
     * Not all letters have case. Many characters are
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5544
     * letters but are neither uppercase nor lowercase nor titlecase.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5545
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5546
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5547
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5548
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5549
     * the {@link #isLetter(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5550
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5551
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5552
     * @return  <code>true</code> if the character is a letter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5553
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5554
     * @see     Character#isDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5555
     * @see     Character#isJavaIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5556
     * @see     Character#isJavaLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5557
     * @see     Character#isJavaLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5558
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5559
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5560
     * @see     Character#isTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5561
     * @see     Character#isUnicodeIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5562
     * @see     Character#isUpperCase(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5563
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5564
    public static boolean isLetter(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5565
        return isLetter((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5566
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5567
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5568
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5569
     * Determines if the specified character (Unicode code point) is a letter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5570
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5571
     * A character is considered to be a letter if its general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5572
     * category type, provided by {@link Character#getType(int) getType(codePoint)},
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5573
     * is any of the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5574
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5575
     * <li> <code>UPPERCASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5576
     * <li> <code>LOWERCASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5577
     * <li> <code>TITLECASE_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5578
     * <li> <code>MODIFIER_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5579
     * <li> <code>OTHER_LETTER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5580
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5581
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5582
     * Not all letters have case. Many characters are
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5583
     * letters but are neither uppercase nor lowercase nor titlecase.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5584
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5585
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5586
     * @return  <code>true</code> if the character is a letter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5587
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5588
     * @see     Character#isDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5589
     * @see     Character#isJavaIdentifierStart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5590
     * @see     Character#isLetterOrDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5591
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5592
     * @see     Character#isTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5593
     * @see     Character#isUnicodeIdentifierStart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5594
     * @see     Character#isUpperCase(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5595
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5596
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5597
    public static boolean isLetter(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5598
        return ((((1 << Character.UPPERCASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5599
            (1 << Character.LOWERCASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5600
            (1 << Character.TITLECASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5601
            (1 << Character.MODIFIER_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5602
            (1 << Character.OTHER_LETTER)) >> getType(codePoint)) & 1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5603
            != 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5604
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5605
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5606
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5607
     * Determines if the specified character is a letter or digit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5608
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5609
     * A character is considered to be a letter or digit if either
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5610
     * <code>Character.isLetter(char ch)</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5611
     * <code>Character.isDigit(char ch)</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5612
     * <code>true</code> for the character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5613
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5614
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5615
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5616
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5617
     * the {@link #isLetterOrDigit(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5618
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5619
     * @param   ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5620
     * @return  <code>true</code> if the character is a letter or digit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5621
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5622
     * @see     Character#isDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5623
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5624
     * @see     Character#isJavaLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5625
     * @see     Character#isJavaLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5626
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5627
     * @see     Character#isUnicodeIdentifierPart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5628
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5629
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5630
    public static boolean isLetterOrDigit(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5631
        return isLetterOrDigit((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5632
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5633
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5634
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5635
     * Determines if the specified character (Unicode code point) is a letter or digit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5636
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5637
     * A character is considered to be a letter or digit if either
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5638
     * {@link #isLetter(int) isLetter(codePoint)} or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5639
     * {@link #isDigit(int) isDigit(codePoint)} returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5640
     * <code>true</code> for the character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5641
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5642
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5643
     * @return  <code>true</code> if the character is a letter or digit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5644
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5645
     * @see     Character#isDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5646
     * @see     Character#isJavaIdentifierPart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5647
     * @see     Character#isLetter(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5648
     * @see     Character#isUnicodeIdentifierPart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5649
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5650
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5651
    public static boolean isLetterOrDigit(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5652
        return ((((1 << Character.UPPERCASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5653
            (1 << Character.LOWERCASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5654
            (1 << Character.TITLECASE_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5655
            (1 << Character.MODIFIER_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5656
            (1 << Character.OTHER_LETTER) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5657
            (1 << Character.DECIMAL_DIGIT_NUMBER)) >> getType(codePoint)) & 1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5658
            != 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5659
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5660
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5661
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5662
     * Determines if the specified character is permissible as the first
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5663
     * character in a Java identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5664
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5665
     * A character may start a Java identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5666
     * one of the following is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5667
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5668
     * <li> {@link #isLetter(char) isLetter(ch)} returns <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5669
     * <li> {@link #getType(char) getType(ch)} returns <code>LETTER_NUMBER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5670
     * <li> ch is a currency symbol (such as "$")
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5671
     * <li> ch is a connecting punctuation character (such as "_").
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5672
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5673
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5674
     * @param   ch the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5675
     * @return  <code>true</code> if the character may start a Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5676
     *          identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5677
     * @see     Character#isJavaLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5678
     * @see     Character#isJavaIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5679
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5680
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5681
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5682
     * @see     Character#isUnicodeIdentifierStart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5683
     * @since   1.02
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5684
     * @deprecated Replaced by isJavaIdentifierStart(char).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5685
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5686
    @Deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5687
    public static boolean isJavaLetter(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5688
        return isJavaIdentifierStart(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5689
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5690
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5691
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5692
     * Determines if the specified character may be part of a Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5693
     * identifier as other than the first character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5694
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5695
     * A character may be part of a Java identifier if and only if any
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5696
     * of the following are true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5697
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5698
     * <li>  it is a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5699
     * <li>  it is a currency symbol (such as <code>'$'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5700
     * <li>  it is a connecting punctuation character (such as <code>'_'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5701
     * <li>  it is a digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5702
     * <li>  it is a numeric letter (such as a Roman numeral character)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5703
     * <li>  it is a combining mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5704
     * <li>  it is a non-spacing mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5705
     * <li> <code>isIdentifierIgnorable</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5706
     * <code>true</code> for the character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5707
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5708
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5709
     * @param   ch the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5710
     * @return  <code>true</code> if the character may be part of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5711
     *          Java identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5712
     * @see     Character#isJavaLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5713
     * @see     Character#isJavaIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5714
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5715
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5716
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5717
     * @see     Character#isUnicodeIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5718
     * @see     Character#isIdentifierIgnorable(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5719
     * @since   1.02
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5720
     * @deprecated Replaced by isJavaIdentifierPart(char).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5721
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5722
    @Deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5723
    public static boolean isJavaLetterOrDigit(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5724
        return isJavaIdentifierPart(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5725
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5726
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5727
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5728
     * Determines if the specified character is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5729
     * permissible as the first character in a Java identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5730
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5731
     * A character may start a Java identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5732
     * one of the following conditions is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5733
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5734
     * <li> {@link #isLetter(char) isLetter(ch)} returns <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5735
     * <li> {@link #getType(char) getType(ch)} returns <code>LETTER_NUMBER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5736
     * <li> ch is a currency symbol (such as "$")
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5737
     * <li> ch is a connecting punctuation character (such as "_").
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5738
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5739
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5740
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5741
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5742
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5743
     * the {@link #isJavaIdentifierStart(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5744
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5745
     * @param   ch the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5746
     * @return  <code>true</code> if the character may start a Java identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5747
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5748
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5749
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5750
     * @see     Character#isUnicodeIdentifierStart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5751
     * @see     javax.lang.model.SourceVersion#isIdentifier(CharSequence)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5752
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5753
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5754
    public static boolean isJavaIdentifierStart(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5755
        return isJavaIdentifierStart((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5756
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5757
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5758
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5759
     * Determines if the character (Unicode code point) is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5760
     * permissible as the first character in a Java identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5761
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5762
     * A character may start a Java identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5763
     * one of the following conditions is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5764
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5765
     * <li> {@link #isLetter(int) isLetter(codePoint)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5766
     *      returns <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5767
     * <li> {@link #getType(int) getType(codePoint)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5768
     *      returns <code>LETTER_NUMBER</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5769
     * <li> the referenced character is a currency symbol (such as "$")
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5770
     * <li> the referenced character is a connecting punctuation character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5771
     *      (such as "_").
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5772
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5773
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5774
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5775
     * @return  <code>true</code> if the character may start a Java identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5776
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5777
     * @see     Character#isJavaIdentifierPart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5778
     * @see     Character#isLetter(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5779
     * @see     Character#isUnicodeIdentifierStart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5780
     * @see     javax.lang.model.SourceVersion#isIdentifier(CharSequence)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5781
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5782
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5783
    public static boolean isJavaIdentifierStart(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5784
        return CharacterData.of(codePoint).isJavaIdentifierStart(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5785
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5786
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5787
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5788
     * Determines if the specified character may be part of a Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5789
     * identifier as other than the first character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5790
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5791
     * A character may be part of a Java identifier if any of the following
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5792
     * are true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5793
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5794
     * <li>  it is a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5795
     * <li>  it is a currency symbol (such as <code>'$'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5796
     * <li>  it is a connecting punctuation character (such as <code>'_'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5797
     * <li>  it is a digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5798
     * <li>  it is a numeric letter (such as a Roman numeral character)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5799
     * <li>  it is a combining mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5800
     * <li>  it is a non-spacing mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5801
     * <li> <code>isIdentifierIgnorable</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5802
     * <code>true</code> for the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5803
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5804
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5805
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5806
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5807
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5808
     * the {@link #isJavaIdentifierPart(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5809
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5810
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5811
     * @return <code>true</code> if the character may be part of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5812
     *          Java identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5813
     * @see     Character#isIdentifierIgnorable(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5814
     * @see     Character#isJavaIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5815
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5816
     * @see     Character#isUnicodeIdentifierPart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5817
     * @see     javax.lang.model.SourceVersion#isIdentifier(CharSequence)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5818
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5819
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5820
    public static boolean isJavaIdentifierPart(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5821
        return isJavaIdentifierPart((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5822
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5823
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5824
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5825
     * Determines if the character (Unicode code point) may be part of a Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5826
     * identifier as other than the first character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5827
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5828
     * A character may be part of a Java identifier if any of the following
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5829
     * are true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5830
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5831
     * <li>  it is a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5832
     * <li>  it is a currency symbol (such as <code>'$'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5833
     * <li>  it is a connecting punctuation character (such as <code>'_'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5834
     * <li>  it is a digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5835
     * <li>  it is a numeric letter (such as a Roman numeral character)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5836
     * <li>  it is a combining mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5837
     * <li>  it is a non-spacing mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5838
     * <li> {@link #isIdentifierIgnorable(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5839
     * isIdentifierIgnorable(codePoint)} returns <code>true</code> for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5840
     * the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5841
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5842
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5843
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5844
     * @return <code>true</code> if the character may be part of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5845
     *          Java identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5846
     * @see     Character#isIdentifierIgnorable(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5847
     * @see     Character#isJavaIdentifierStart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5848
     * @see     Character#isLetterOrDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5849
     * @see     Character#isUnicodeIdentifierPart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5850
     * @see     javax.lang.model.SourceVersion#isIdentifier(CharSequence)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5851
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5852
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5853
    public static boolean isJavaIdentifierPart(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5854
        return CharacterData.of(codePoint).isJavaIdentifierPart(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5855
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5856
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5857
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5858
     * Determines if the specified character is permissible as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5859
     * first character in a Unicode identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5860
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5861
     * A character may start a Unicode identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5862
     * one of the following conditions is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5863
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5864
     * <li> {@link #isLetter(char) isLetter(ch)} returns <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5865
     * <li> {@link #getType(char) getType(ch)} returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5866
     *      <code>LETTER_NUMBER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5867
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5868
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5869
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5870
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5871
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5872
     * the {@link #isUnicodeIdentifierStart(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5873
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5874
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5875
     * @return  <code>true</code> if the character may start a Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5876
     *          identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5877
     * @see     Character#isJavaIdentifierStart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5878
     * @see     Character#isLetter(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5879
     * @see     Character#isUnicodeIdentifierPart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5880
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5881
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5882
    public static boolean isUnicodeIdentifierStart(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5883
        return isUnicodeIdentifierStart((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5884
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5885
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5886
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5887
     * Determines if the specified character (Unicode code point) is permissible as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5888
     * first character in a Unicode identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5889
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5890
     * A character may start a Unicode identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5891
     * one of the following conditions is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5892
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5893
     * <li> {@link #isLetter(int) isLetter(codePoint)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5894
     *      returns <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5895
     * <li> {@link #getType(int) getType(codePoint)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5896
     *      returns <code>LETTER_NUMBER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5897
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5898
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5899
     * @return  <code>true</code> if the character may start a Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5900
     *          identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5901
     * @see     Character#isJavaIdentifierStart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5902
     * @see     Character#isLetter(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5903
     * @see     Character#isUnicodeIdentifierPart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5904
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5905
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5906
    public static boolean isUnicodeIdentifierStart(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5907
        return CharacterData.of(codePoint).isUnicodeIdentifierStart(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5908
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5909
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5910
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5911
     * Determines if the specified character may be part of a Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5912
     * identifier as other than the first character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5913
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5914
     * A character may be part of a Unicode identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5915
     * one of the following statements is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5916
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5917
     * <li>  it is a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5918
     * <li>  it is a connecting punctuation character (such as <code>'_'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5919
     * <li>  it is a digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5920
     * <li>  it is a numeric letter (such as a Roman numeral character)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5921
     * <li>  it is a combining mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5922
     * <li>  it is a non-spacing mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5923
     * <li> <code>isIdentifierIgnorable</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5924
     * <code>true</code> for this character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5925
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5926
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5927
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5928
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5929
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5930
     * the {@link #isUnicodeIdentifierPart(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5931
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5932
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5933
     * @return  <code>true</code> if the character may be part of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5934
     *          Unicode identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5935
     * @see     Character#isIdentifierIgnorable(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5936
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5937
     * @see     Character#isLetterOrDigit(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5938
     * @see     Character#isUnicodeIdentifierStart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5939
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5940
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5941
    public static boolean isUnicodeIdentifierPart(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5942
        return isUnicodeIdentifierPart((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5943
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5944
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5945
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5946
     * Determines if the specified character (Unicode code point) may be part of a Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5947
     * identifier as other than the first character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5948
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5949
     * A character may be part of a Unicode identifier if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5950
     * one of the following statements is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5951
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5952
     * <li>  it is a letter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5953
     * <li>  it is a connecting punctuation character (such as <code>'_'</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5954
     * <li>  it is a digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5955
     * <li>  it is a numeric letter (such as a Roman numeral character)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5956
     * <li>  it is a combining mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5957
     * <li>  it is a non-spacing mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5958
     * <li> <code>isIdentifierIgnorable</code> returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5959
     * <code>true</code> for this character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5960
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5961
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5962
     * @return  <code>true</code> if the character may be part of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5963
     *          Unicode identifier; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5964
     * @see     Character#isIdentifierIgnorable(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5965
     * @see     Character#isJavaIdentifierPart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5966
     * @see     Character#isLetterOrDigit(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  5967
     * @see     Character#isUnicodeIdentifierStart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5968
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5969
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5970
    public static boolean isUnicodeIdentifierPart(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5971
        return CharacterData.of(codePoint).isUnicodeIdentifierPart(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5972
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5973
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5974
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5975
     * Determines if the specified character should be regarded as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5976
     * an ignorable character in a Java identifier or a Unicode identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5977
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5978
     * The following Unicode characters are ignorable in a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5979
     * or a Unicode identifier:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5980
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5981
     * <li>ISO control characters that are not whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5982
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5983
     * <li><code>'&#92;u0000'</code> through <code>'&#92;u0008'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5984
     * <li><code>'&#92;u000E'</code> through <code>'&#92;u001B'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5985
     * <li><code>'&#92;u007F'</code> through <code>'&#92;u009F'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5986
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5987
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5988
     * <li>all characters that have the <code>FORMAT</code> general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5989
     * category value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5990
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5991
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5992
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5993
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5994
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5995
     * the {@link #isIdentifierIgnorable(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5996
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5997
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5998
     * @return  <code>true</code> if the character is an ignorable control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5999
     *          character that may be part of a Java or Unicode identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6000
     *           <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6001
     * @see     Character#isJavaIdentifierPart(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6002
     * @see     Character#isUnicodeIdentifierPart(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6003
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6004
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6005
    public static boolean isIdentifierIgnorable(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6006
        return isIdentifierIgnorable((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6007
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6008
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6009
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6010
     * Determines if the specified character (Unicode code point) should be regarded as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6011
     * an ignorable character in a Java identifier or a Unicode identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6012
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6013
     * The following Unicode characters are ignorable in a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6014
     * or a Unicode identifier:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6015
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6016
     * <li>ISO control characters that are not whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6017
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6018
     * <li><code>'&#92;u0000'</code> through <code>'&#92;u0008'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6019
     * <li><code>'&#92;u000E'</code> through <code>'&#92;u001B'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6020
     * <li><code>'&#92;u007F'</code> through <code>'&#92;u009F'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6021
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6022
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6023
     * <li>all characters that have the <code>FORMAT</code> general
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6024
     * category value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6025
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6026
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6027
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6028
     * @return  <code>true</code> if the character is an ignorable control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6029
     *          character that may be part of a Java or Unicode identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6030
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6031
     * @see     Character#isJavaIdentifierPart(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6032
     * @see     Character#isUnicodeIdentifierPart(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6033
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6034
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6035
    public static boolean isIdentifierIgnorable(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6036
        return CharacterData.of(codePoint).isIdentifierIgnorable(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6037
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6038
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6039
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6040
     * Converts the character argument to lowercase using case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6041
     * mapping information from the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6042
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6043
     * Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6044
     * <code>Character.isLowerCase(Character.toLowerCase(ch))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6045
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6046
     * characters, particularly those that are symbols or ideographs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6047
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6048
     * <p>In general, {@link String#toLowerCase()} should be used to map
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6049
     * characters to lowercase. <code>String</code> case mapping methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6050
     * have several benefits over <code>Character</code> case mapping methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6051
     * <code>String</code> case mapping methods can perform locale-sensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6052
     * mappings, context-sensitive mappings, and 1:M character mappings, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6053
     * the <code>Character</code> case mapping methods cannot.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6054
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6055
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6056
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6057
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6058
     * the {@link #toLowerCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6059
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6060
     * @param   ch   the character to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6061
     * @return  the lowercase equivalent of the character, if any;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6062
     *          otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6063
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6064
     * @see     String#toLowerCase()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6065
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6066
    public static char toLowerCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6067
        return (char)toLowerCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6068
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6069
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6070
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6071
     * Converts the character (Unicode code point) argument to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6072
     * lowercase using case mapping information from the UnicodeData
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6073
     * file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6074
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6075
     * <p> Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6076
     * <code>Character.isLowerCase(Character.toLowerCase(codePoint))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6077
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6078
     * characters, particularly those that are symbols or ideographs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6079
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6080
     * <p>In general, {@link String#toLowerCase()} should be used to map
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6081
     * characters to lowercase. <code>String</code> case mapping methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6082
     * have several benefits over <code>Character</code> case mapping methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6083
     * <code>String</code> case mapping methods can perform locale-sensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6084
     * mappings, context-sensitive mappings, and 1:M character mappings, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6085
     * the <code>Character</code> case mapping methods cannot.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6086
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6087
     * @param   codePoint   the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6088
     * @return  the lowercase equivalent of the character (Unicode code
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6089
     *          point), if any; otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6090
     * @see     Character#isLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6091
     * @see     String#toLowerCase()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6092
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6093
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6094
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6095
    public static int toLowerCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6096
        return CharacterData.of(codePoint).toLowerCase(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6097
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6098
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6099
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6100
     * Converts the character argument to uppercase using case mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6101
     * information from the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6102
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6103
     * Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6104
     * <code>Character.isUpperCase(Character.toUpperCase(ch))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6105
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6106
     * characters, particularly those that are symbols or ideographs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6107
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6108
     * <p>In general, {@link String#toUpperCase()} should be used to map
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6109
     * characters to uppercase. <code>String</code> case mapping methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6110
     * have several benefits over <code>Character</code> case mapping methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6111
     * <code>String</code> case mapping methods can perform locale-sensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6112
     * mappings, context-sensitive mappings, and 1:M character mappings, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6113
     * the <code>Character</code> case mapping methods cannot.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6114
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6115
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6116
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6117
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6118
     * the {@link #toUpperCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6119
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6120
     * @param   ch   the character to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6121
     * @return  the uppercase equivalent of the character, if any;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6122
     *          otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6123
     * @see     Character#isUpperCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6124
     * @see     String#toUpperCase()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6125
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6126
    public static char toUpperCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6127
        return (char)toUpperCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6128
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6129
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6130
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6131
     * Converts the character (Unicode code point) argument to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6132
     * uppercase using case mapping information from the UnicodeData
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6133
     * file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6134
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6135
     * <p>Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6136
     * <code>Character.isUpperCase(Character.toUpperCase(codePoint))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6137
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6138
     * characters, particularly those that are symbols or ideographs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6139
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6140
     * <p>In general, {@link String#toUpperCase()} should be used to map
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6141
     * characters to uppercase. <code>String</code> case mapping methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6142
     * have several benefits over <code>Character</code> case mapping methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6143
     * <code>String</code> case mapping methods can perform locale-sensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6144
     * mappings, context-sensitive mappings, and 1:M character mappings, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6145
     * the <code>Character</code> case mapping methods cannot.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6146
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6147
     * @param   codePoint   the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6148
     * @return  the uppercase equivalent of the character, if any;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6149
     *          otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6150
     * @see     Character#isUpperCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6151
     * @see     String#toUpperCase()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6153
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6154
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6155
    public static int toUpperCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6156
        return CharacterData.of(codePoint).toUpperCase(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6157
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6158
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6159
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6160
     * Converts the character argument to titlecase using case mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6161
     * information from the UnicodeData file. If a character has no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6162
     * explicit titlecase mapping and is not itself a titlecase char
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6163
     * according to UnicodeData, then the uppercase mapping is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6164
     * returned as an equivalent titlecase mapping. If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6165
     * <code>char</code> argument is already a titlecase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6166
     * <code>char</code>, the same <code>char</code> value will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6167
     * returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6168
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6169
     * Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6170
     * <code>Character.isTitleCase(Character.toTitleCase(ch))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6171
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6172
     * characters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6173
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6174
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6175
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6176
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6177
     * the {@link #toTitleCase(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6178
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6179
     * @param   ch   the character to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6180
     * @return  the titlecase equivalent of the character, if any;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6181
     *          otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6182
     * @see     Character#isTitleCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6183
     * @see     Character#toLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6184
     * @see     Character#toUpperCase(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6185
     * @since   1.0.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6186
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6187
    public static char toTitleCase(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6188
        return (char)toTitleCase((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6189
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6190
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6191
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6192
     * Converts the character (Unicode code point) argument to titlecase using case mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6193
     * information from the UnicodeData file. If a character has no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6194
     * explicit titlecase mapping and is not itself a titlecase char
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6195
     * according to UnicodeData, then the uppercase mapping is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6196
     * returned as an equivalent titlecase mapping. If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6197
     * character argument is already a titlecase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6198
     * character, the same character value will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6199
     * returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6200
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6201
     * <p>Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6202
     * <code>Character.isTitleCase(Character.toTitleCase(codePoint))</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6203
     * does not always return <code>true</code> for some ranges of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6204
     * characters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6205
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6206
     * @param   codePoint   the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6207
     * @return  the titlecase equivalent of the character, if any;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6208
     *          otherwise, the character itself.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6209
     * @see     Character#isTitleCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6210
     * @see     Character#toLowerCase(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6211
     * @see     Character#toUpperCase(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6212
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6213
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6214
    public static int toTitleCase(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6215
        return CharacterData.of(codePoint).toTitleCase(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6216
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6217
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6218
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6219
     * Returns the numeric value of the character <code>ch</code> in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6220
     * specified radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6221
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6222
     * If the radix is not in the range <code>MIN_RADIX</code>&nbsp;&lt;=
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6223
     * <code>radix</code>&nbsp;&lt;= <code>MAX_RADIX</code> or if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6224
     * value of <code>ch</code> is not a valid digit in the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6225
     * radix, <code>-1</code> is returned. A character is a valid digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6226
     * if at least one of the following is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6227
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6228
     * <li>The method <code>isDigit</code> is <code>true</code> of the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6229
     *     and the Unicode decimal digit value of the character (or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6230
     *     single-character decomposition) is less than the specified radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6231
     *     In this case the decimal digit value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6232
     * <li>The character is one of the uppercase Latin letters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6233
     *     <code>'A'</code> through <code>'Z'</code> and its code is less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6234
     *     <code>radix&nbsp;+ 'A'&nbsp;-&nbsp;10</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6235
     *     In this case, <code>ch&nbsp;- 'A'&nbsp;+&nbsp;10</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6236
     *     is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6237
     * <li>The character is one of the lowercase Latin letters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6238
     *     <code>'a'</code> through <code>'z'</code> and its code is less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6239
     *     <code>radix&nbsp;+ 'a'&nbsp;-&nbsp;10</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6240
     *     In this case, <code>ch&nbsp;- 'a'&nbsp;+&nbsp;10</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6241
     *     is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6242
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6243
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6244
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6245
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6246
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6247
     * the {@link #digit(int, int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6248
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6249
     * @param   ch      the character to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6250
     * @param   radix   the radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6251
     * @return  the numeric value represented by the character in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6252
     *          specified radix.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6253
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6254
     * @see     Character#isDigit(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6255
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6256
    public static int digit(char ch, int radix) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6257
        return digit((int)ch, radix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6258
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6259
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6260
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6261
     * Returns the numeric value of the specified character (Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6262
     * code point) in the specified radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6263
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6264
     * <p>If the radix is not in the range <code>MIN_RADIX</code>&nbsp;&lt;=
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6265
     * <code>radix</code>&nbsp;&lt;= <code>MAX_RADIX</code> or if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6266
     * character is not a valid digit in the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6267
     * radix, <code>-1</code> is returned. A character is a valid digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6268
     * if at least one of the following is true:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6269
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6270
     * <li>The method {@link #isDigit(int) isDigit(codePoint)} is <code>true</code> of the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6271
     *     and the Unicode decimal digit value of the character (or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6272
     *     single-character decomposition) is less than the specified radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6273
     *     In this case the decimal digit value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6274
     * <li>The character is one of the uppercase Latin letters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6275
     *     <code>'A'</code> through <code>'Z'</code> and its code is less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6276
     *     <code>radix&nbsp;+ 'A'&nbsp;-&nbsp;10</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6277
     *     In this case, <code>ch&nbsp;- 'A'&nbsp;+&nbsp;10</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6278
     *     is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6279
     * <li>The character is one of the lowercase Latin letters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6280
     *     <code>'a'</code> through <code>'z'</code> and its code is less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6281
     *     <code>radix&nbsp;+ 'a'&nbsp;-&nbsp;10</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6282
     *     In this case, <code>ch&nbsp;- 'a'&nbsp;+&nbsp;10</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6283
     *     is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6284
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6285
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6286
     * @param   codePoint the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6287
     * @param   radix   the radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6288
     * @return  the numeric value represented by the character in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6289
     *          specified radix.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6290
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6291
     * @see     Character#isDigit(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6292
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6293
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6294
    public static int digit(int codePoint, int radix) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6295
        return CharacterData.of(codePoint).digit(codePoint, radix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6296
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6297
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6298
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6299
     * Returns the <code>int</code> value that the specified Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6300
     * character represents. For example, the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6301
     * <code>'&#92;u216C'</code> (the roman numeral fifty) will return
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6302
     * an int with a value of 50.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6303
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6304
     * The letters A-Z in their uppercase (<code>'&#92;u0041'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6305
     * <code>'&#92;u005A'</code>), lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6306
     * (<code>'&#92;u0061'</code> through <code>'&#92;u007A'</code>), and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6307
     * full width variant (<code>'&#92;uFF21'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6308
     * <code>'&#92;uFF3A'</code> and <code>'&#92;uFF41'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6309
     * <code>'&#92;uFF5A'</code>) forms have numeric values from 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6310
     * through 35. This is independent of the Unicode specification,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6311
     * which does not assign numeric values to these <code>char</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6312
     * values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6313
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6314
     * If the character does not have a numeric value, then -1 is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6315
     * If the character has a numeric value that cannot be represented as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6316
     * nonnegative integer (for example, a fractional value), then -2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6317
     * is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6318
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6319
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6320
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6321
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6322
     * the {@link #getNumericValue(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6323
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6324
     * @param   ch      the character to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6325
     * @return  the numeric value of the character, as a nonnegative <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6326
     *           value; -2 if the character has a numeric value that is not a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6327
     *          nonnegative integer; -1 if the character has no numeric value.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6328
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6329
     * @see     Character#isDigit(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6330
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6331
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6332
    public static int getNumericValue(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6333
        return getNumericValue((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6334
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6335
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6336
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6337
     * Returns the <code>int</code> value that the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6338
     * character (Unicode code point) represents. For example, the character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6339
     * <code>'&#92;u216C'</code> (the Roman numeral fifty) will return
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6340
     * an <code>int</code> with a value of 50.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6341
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6342
     * The letters A-Z in their uppercase (<code>'&#92;u0041'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6343
     * <code>'&#92;u005A'</code>), lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6344
     * (<code>'&#92;u0061'</code> through <code>'&#92;u007A'</code>), and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6345
     * full width variant (<code>'&#92;uFF21'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6346
     * <code>'&#92;uFF3A'</code> and <code>'&#92;uFF41'</code> through
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6347
     * <code>'&#92;uFF5A'</code>) forms have numeric values from 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6348
     * through 35. This is independent of the Unicode specification,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6349
     * which does not assign numeric values to these <code>char</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6350
     * values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6351
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6352
     * If the character does not have a numeric value, then -1 is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6353
     * If the character has a numeric value that cannot be represented as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6354
     * nonnegative integer (for example, a fractional value), then -2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6355
     * is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6356
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6357
     * @param   codePoint the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6358
     * @return  the numeric value of the character, as a nonnegative <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6359
     *          value; -2 if the character has a numeric value that is not a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6360
     *          nonnegative integer; -1 if the character has no numeric value.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6361
     * @see     Character#forDigit(int, int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6362
     * @see     Character#isDigit(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6363
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6364
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6365
    public static int getNumericValue(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6366
        return CharacterData.of(codePoint).getNumericValue(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6367
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6368
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6369
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6370
     * Determines if the specified character is ISO-LATIN-1 white space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6371
     * This method returns <code>true</code> for the following five
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6372
     * characters only:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6373
     * <table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6374
     * <tr><td><code>'\t'</code></td>            <td><code>'&#92;u0009'</code></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6375
     *     <td><code>HORIZONTAL TABULATION</code></td></tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6376
     * <tr><td><code>'\n'</code></td>            <td><code>'&#92;u000A'</code></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6377
     *     <td><code>NEW LINE</code></td></tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6378
     * <tr><td><code>'\f'</code></td>            <td><code>'&#92;u000C'</code></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6379
     *     <td><code>FORM FEED</code></td></tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6380
     * <tr><td><code>'\r'</code></td>            <td><code>'&#92;u000D'</code></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6381
     *     <td><code>CARRIAGE RETURN</code></td></tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6382
     * <tr><td><code>'&nbsp;'</code></td>  <td><code>'&#92;u0020'</code></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6383
     *     <td><code>SPACE</code></td></tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6384
     * </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6385
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6386
     * @param      ch   the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6387
     * @return     <code>true</code> if the character is ISO-LATIN-1 white
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6388
     *             space; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6389
     * @see        Character#isSpaceChar(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6390
     * @see        Character#isWhitespace(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6391
     * @deprecated Replaced by isWhitespace(char).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6392
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6393
    @Deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6394
    public static boolean isSpace(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6395
        return (ch <= 0x0020) &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6396
            (((((1L << 0x0009) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6397
            (1L << 0x000A) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6398
            (1L << 0x000C) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6399
            (1L << 0x000D) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6400
            (1L << 0x0020)) >> ch) & 1L) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6401
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6402
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6403
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6404
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6405
     * Determines if the specified character is a Unicode space character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6406
     * A character is considered to be a space character if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6407
     * it is specified to be a space character by the Unicode standard. This
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6408
     * method returns true if the character's general category type is any of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6409
     * the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6410
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6411
     * <li> <code>SPACE_SEPARATOR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6412
     * <li> <code>LINE_SEPARATOR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6413
     * <li> <code>PARAGRAPH_SEPARATOR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6414
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6415
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6416
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6417
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6418
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6419
     * the {@link #isSpaceChar(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6420
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6421
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6422
     * @return  <code>true</code> if the character is a space character;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6423
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6424
     * @see     Character#isWhitespace(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6425
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6426
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6427
    public static boolean isSpaceChar(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6428
        return isSpaceChar((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6429
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6430
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6431
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6432
     * Determines if the specified character (Unicode code point) is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6433
     * Unicode space character.  A character is considered to be a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6434
     * space character if and only if it is specified to be a space
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6435
     * character by the Unicode standard. This method returns true if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6436
     * the character's general category type is any of the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6437
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6438
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6439
     * <li> {@link #SPACE_SEPARATOR}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6440
     * <li> {@link #LINE_SEPARATOR}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6441
     * <li> {@link #PARAGRAPH_SEPARATOR}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6442
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6443
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6444
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6445
     * @return  <code>true</code> if the character is a space character;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6446
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6447
     * @see     Character#isWhitespace(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6448
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6450
    public static boolean isSpaceChar(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6451
        return ((((1 << Character.SPACE_SEPARATOR) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6452
                  (1 << Character.LINE_SEPARATOR) |
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6453
                  (1 << Character.PARAGRAPH_SEPARATOR)) >> getType(codePoint)) & 1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6454
            != 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6455
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6456
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6457
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6458
     * Determines if the specified character is white space according to Java.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6459
     * A character is a Java whitespace character if and only if it satisfies
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6460
     * one of the following criteria:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6461
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6462
     * <li> It is a Unicode space character (<code>SPACE_SEPARATOR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6463
     *      <code>LINE_SEPARATOR</code>, or <code>PARAGRAPH_SEPARATOR</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6464
     *      but is not also a non-breaking space (<code>'&#92;u00A0'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6465
     *      <code>'&#92;u2007'</code>, <code>'&#92;u202F'</code>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6466
     * <li> It is <code>'&#92;u0009'</code>, HORIZONTAL TABULATION.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6467
     * <li> It is <code>'&#92;u000A'</code>, LINE FEED.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6468
     * <li> It is <code>'&#92;u000B'</code>, VERTICAL TABULATION.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6469
     * <li> It is <code>'&#92;u000C'</code>, FORM FEED.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6470
     * <li> It is <code>'&#92;u000D'</code>, CARRIAGE RETURN.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6471
     * <li> It is <code>'&#92;u001C'</code>, FILE SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6472
     * <li> It is <code>'&#92;u001D'</code>, GROUP SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6473
     * <li> It is <code>'&#92;u001E'</code>, RECORD SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6474
     * <li> It is <code>'&#92;u001F'</code>, UNIT SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6475
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6476
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6477
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6478
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6479
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6480
     * the {@link #isWhitespace(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6481
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6482
     * @param   ch the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6483
     * @return  <code>true</code> if the character is a Java whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6484
     *          character; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6485
     * @see     Character#isSpaceChar(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6486
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6487
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6488
    public static boolean isWhitespace(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6489
        return isWhitespace((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6490
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6491
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6492
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6493
     * Determines if the specified character (Unicode code point) is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6494
     * white space according to Java.  A character is a Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6495
     * whitespace character if and only if it satisfies one of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6496
     * following criteria:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6497
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6498
     * <li> It is a Unicode space character ({@link #SPACE_SEPARATOR},
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6499
     *      {@link #LINE_SEPARATOR}, or {@link #PARAGRAPH_SEPARATOR})
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6500
     *      but is not also a non-breaking space (<code>'&#92;u00A0'</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6501
     *      <code>'&#92;u2007'</code>, <code>'&#92;u202F'</code>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6502
     * <li> It is <code>'&#92;u0009'</code>, HORIZONTAL TABULATION.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6503
     * <li> It is <code>'&#92;u000A'</code>, LINE FEED.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6504
     * <li> It is <code>'&#92;u000B'</code>, VERTICAL TABULATION.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6505
     * <li> It is <code>'&#92;u000C'</code>, FORM FEED.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6506
     * <li> It is <code>'&#92;u000D'</code>, CARRIAGE RETURN.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6507
     * <li> It is <code>'&#92;u001C'</code>, FILE SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6508
     * <li> It is <code>'&#92;u001D'</code>, GROUP SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6509
     * <li> It is <code>'&#92;u001E'</code>, RECORD SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6510
     * <li> It is <code>'&#92;u001F'</code>, UNIT SEPARATOR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6511
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6512
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6513
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6514
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6515
     * @return  <code>true</code> if the character is a Java whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6516
     *          character; <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6517
     * @see     Character#isSpaceChar(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6518
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6519
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6520
    public static boolean isWhitespace(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6521
        return CharacterData.of(codePoint).isWhitespace(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6522
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6523
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6524
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6525
     * Determines if the specified character is an ISO control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6526
     * character.  A character is considered to be an ISO control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6527
     * character if its code is in the range <code>'&#92;u0000'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6528
     * through <code>'&#92;u001F'</code> or in the range
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6529
     * <code>'&#92;u007F'</code> through <code>'&#92;u009F'</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6530
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6531
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6532
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6533
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6534
     * the {@link #isISOControl(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6535
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6536
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6537
     * @return  <code>true</code> if the character is an ISO control character;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6538
     *          <code>false</code> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6539
     *
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6540
     * @see     Character#isSpaceChar(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6541
     * @see     Character#isWhitespace(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6542
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6543
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6544
    public static boolean isISOControl(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6545
        return isISOControl((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6546
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6547
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6548
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6549
     * Determines if the referenced character (Unicode code point) is an ISO control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6550
     * character.  A character is considered to be an ISO control
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6551
     * character if its code is in the range <code>'&#92;u0000'</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6552
     * through <code>'&#92;u001F'</code> or in the range
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6553
     * <code>'&#92;u007F'</code> through <code>'&#92;u009F'</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6554
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6555
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6556
     * @return  <code>true</code> if the character is an ISO control character;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6557
     *          <code>false</code> otherwise.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6558
     * @see     Character#isSpaceChar(int)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6559
     * @see     Character#isWhitespace(int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6560
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6561
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6562
    public static boolean isISOControl(int codePoint) {
5985
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  6563
        // Optimized form of:
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  6564
        //     (codePoint >= 0x00 && codePoint <= 0x1F) ||
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  6565
        //     (codePoint >= 0x7F && codePoint <= 0x9F);
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  6566
        return codePoint <= 0x9F &&
f98ac682b34c 6934268: Better implementation of Character.isValidCodePoint
martin
parents: 5627
diff changeset
  6567
            (codePoint >= 0x7F || (codePoint >>> 5 == 0));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6568
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6569
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6570
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6571
     * Returns a value indicating a character's general category.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6572
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6573
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6574
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6575
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6576
     * the {@link #getType(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6577
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6578
     * @param   ch      the character to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6579
     * @return  a value of type <code>int</code> representing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6580
     *          character's general category.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6581
     * @see     Character#COMBINING_SPACING_MARK
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6582
     * @see     Character#CONNECTOR_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6583
     * @see     Character#CONTROL
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6584
     * @see     Character#CURRENCY_SYMBOL
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6585
     * @see     Character#DASH_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6586
     * @see     Character#DECIMAL_DIGIT_NUMBER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6587
     * @see     Character#ENCLOSING_MARK
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6588
     * @see     Character#END_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6589
     * @see     Character#FINAL_QUOTE_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6590
     * @see     Character#FORMAT
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6591
     * @see     Character#INITIAL_QUOTE_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6592
     * @see     Character#LETTER_NUMBER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6593
     * @see     Character#LINE_SEPARATOR
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6594
     * @see     Character#LOWERCASE_LETTER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6595
     * @see     Character#MATH_SYMBOL
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6596
     * @see     Character#MODIFIER_LETTER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6597
     * @see     Character#MODIFIER_SYMBOL
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6598
     * @see     Character#NON_SPACING_MARK
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6599
     * @see     Character#OTHER_LETTER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6600
     * @see     Character#OTHER_NUMBER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6601
     * @see     Character#OTHER_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6602
     * @see     Character#OTHER_SYMBOL
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6603
     * @see     Character#PARAGRAPH_SEPARATOR
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6604
     * @see     Character#PRIVATE_USE
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6605
     * @see     Character#SPACE_SEPARATOR
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6606
     * @see     Character#START_PUNCTUATION
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6607
     * @see     Character#SURROGATE
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6608
     * @see     Character#TITLECASE_LETTER
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6609
     * @see     Character#UNASSIGNED
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6610
     * @see     Character#UPPERCASE_LETTER
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6611
     * @since   1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6612
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6613
    public static int getType(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6614
        return getType((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6615
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6616
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6617
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6618
     * Returns a value indicating a character's general category.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6619
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6620
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6621
     * @return  a value of type <code>int</code> representing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6622
     *          character's general category.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6623
     * @see     Character#COMBINING_SPACING_MARK COMBINING_SPACING_MARK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6624
     * @see     Character#CONNECTOR_PUNCTUATION CONNECTOR_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6625
     * @see     Character#CONTROL CONTROL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6626
     * @see     Character#CURRENCY_SYMBOL CURRENCY_SYMBOL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6627
     * @see     Character#DASH_PUNCTUATION DASH_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6628
     * @see     Character#DECIMAL_DIGIT_NUMBER DECIMAL_DIGIT_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6629
     * @see     Character#ENCLOSING_MARK ENCLOSING_MARK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6630
     * @see     Character#END_PUNCTUATION END_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6631
     * @see     Character#FINAL_QUOTE_PUNCTUATION FINAL_QUOTE_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6632
     * @see     Character#FORMAT FORMAT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6633
     * @see     Character#INITIAL_QUOTE_PUNCTUATION INITIAL_QUOTE_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6634
     * @see     Character#LETTER_NUMBER LETTER_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6635
     * @see     Character#LINE_SEPARATOR LINE_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6636
     * @see     Character#LOWERCASE_LETTER LOWERCASE_LETTER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6637
     * @see     Character#MATH_SYMBOL MATH_SYMBOL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6638
     * @see     Character#MODIFIER_LETTER MODIFIER_LETTER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6639
     * @see     Character#MODIFIER_SYMBOL MODIFIER_SYMBOL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6640
     * @see     Character#NON_SPACING_MARK NON_SPACING_MARK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6641
     * @see     Character#OTHER_LETTER OTHER_LETTER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6642
     * @see     Character#OTHER_NUMBER OTHER_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6643
     * @see     Character#OTHER_PUNCTUATION OTHER_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6644
     * @see     Character#OTHER_SYMBOL OTHER_SYMBOL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6645
     * @see     Character#PARAGRAPH_SEPARATOR PARAGRAPH_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6646
     * @see     Character#PRIVATE_USE PRIVATE_USE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6647
     * @see     Character#SPACE_SEPARATOR SPACE_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6648
     * @see     Character#START_PUNCTUATION START_PUNCTUATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6649
     * @see     Character#SURROGATE SURROGATE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6650
     * @see     Character#TITLECASE_LETTER TITLECASE_LETTER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6651
     * @see     Character#UNASSIGNED UNASSIGNED
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6652
     * @see     Character#UPPERCASE_LETTER UPPERCASE_LETTER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6653
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6654
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6655
    public static int getType(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6656
        return CharacterData.of(codePoint).getType(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6657
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6658
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6659
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6660
     * Determines the character representation for a specific digit in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6661
     * the specified radix. If the value of <code>radix</code> is not a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6662
     * valid radix, or the value of <code>digit</code> is not a valid
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6663
     * digit in the specified radix, the null character
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6664
     * (<code>'&#92;u0000'</code>) is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6665
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6666
     * The <code>radix</code> argument is valid if it is greater than or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6667
     * equal to <code>MIN_RADIX</code> and less than or equal to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6668
     * <code>MAX_RADIX</code>. The <code>digit</code> argument is valid if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6669
     * <code>0&nbsp;&lt;=digit&nbsp;&lt;&nbsp;radix</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6670
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6671
     * If the digit is less than 10, then
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6672
     * <code>'0'&nbsp;+ digit</code> is returned. Otherwise, the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6673
     * <code>'a'&nbsp;+ digit&nbsp;-&nbsp;10</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6674
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6675
     * @param   digit   the number to convert to a character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6676
     * @param   radix   the radix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6677
     * @return  the <code>char</code> representation of the specified digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6678
     *          in the specified radix.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6679
     * @see     Character#MIN_RADIX
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6680
     * @see     Character#MAX_RADIX
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6681
     * @see     Character#digit(char, int)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6682
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6683
    public static char forDigit(int digit, int radix) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6684
        if ((digit >= radix) || (digit < 0)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6685
            return '\0';
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6686
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6687
        if ((radix < Character.MIN_RADIX) || (radix > Character.MAX_RADIX)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6688
            return '\0';
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6689
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6690
        if (digit < 10) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6691
            return (char)('0' + digit);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6692
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6693
        return (char)('a' - 10 + digit);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6694
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6695
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6696
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6697
     * Returns the Unicode directionality property for the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6698
     * character.  Character directionality is used to calculate the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6699
     * visual ordering of text. The directionality value of undefined
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6700
     * <code>char</code> values is <code>DIRECTIONALITY_UNDEFINED</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6701
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6702
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6703
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6704
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6705
     * the {@link #getDirectionality(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6706
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6707
     * @param  ch <code>char</code> for which the directionality property
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6708
     *            is requested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6709
     * @return the directionality property of the <code>char</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6710
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6711
     * @see Character#DIRECTIONALITY_UNDEFINED
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6712
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6713
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6714
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6715
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6716
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6717
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6718
     * @see Character#DIRECTIONALITY_ARABIC_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6719
     * @see Character#DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6720
     * @see Character#DIRECTIONALITY_NONSPACING_MARK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6721
     * @see Character#DIRECTIONALITY_BOUNDARY_NEUTRAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6722
     * @see Character#DIRECTIONALITY_PARAGRAPH_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6723
     * @see Character#DIRECTIONALITY_SEGMENT_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6724
     * @see Character#DIRECTIONALITY_WHITESPACE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6725
     * @see Character#DIRECTIONALITY_OTHER_NEUTRALS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6726
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6727
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6728
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6729
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6730
     * @see Character#DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6731
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6732
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6733
    public static byte getDirectionality(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6734
        return getDirectionality((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6735
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6736
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6737
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6738
     * Returns the Unicode directionality property for the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6739
     * character (Unicode code point).  Character directionality is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6740
     * used to calculate the visual ordering of text. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6741
     * directionality value of undefined character is {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6742
     * #DIRECTIONALITY_UNDEFINED}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6743
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6744
     * @param   codePoint the character (Unicode code point) for which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6745
     *          the directionality property is requested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6746
     * @return the directionality property of the character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6747
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6748
     * @see Character#DIRECTIONALITY_UNDEFINED DIRECTIONALITY_UNDEFINED
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6749
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT DIRECTIONALITY_LEFT_TO_RIGHT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6750
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT DIRECTIONALITY_RIGHT_TO_LEFT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6751
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6752
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER DIRECTIONALITY_EUROPEAN_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6753
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6754
     * @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6755
     * @see Character#DIRECTIONALITY_ARABIC_NUMBER DIRECTIONALITY_ARABIC_NUMBER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6756
     * @see Character#DIRECTIONALITY_COMMON_NUMBER_SEPARATOR DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6757
     * @see Character#DIRECTIONALITY_NONSPACING_MARK DIRECTIONALITY_NONSPACING_MARK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6758
     * @see Character#DIRECTIONALITY_BOUNDARY_NEUTRAL DIRECTIONALITY_BOUNDARY_NEUTRAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6759
     * @see Character#DIRECTIONALITY_PARAGRAPH_SEPARATOR DIRECTIONALITY_PARAGRAPH_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6760
     * @see Character#DIRECTIONALITY_SEGMENT_SEPARATOR DIRECTIONALITY_SEGMENT_SEPARATOR
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6761
     * @see Character#DIRECTIONALITY_WHITESPACE DIRECTIONALITY_WHITESPACE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6762
     * @see Character#DIRECTIONALITY_OTHER_NEUTRALS DIRECTIONALITY_OTHER_NEUTRALS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6763
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6764
     * @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6765
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6766
     * @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6767
     * @see Character#DIRECTIONALITY_POP_DIRECTIONAL_FORMAT DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6768
     * @since    1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6769
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6770
    public static byte getDirectionality(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6771
        return CharacterData.of(codePoint).getDirectionality(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6772
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6773
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6774
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6775
     * Determines whether the character is mirrored according to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6776
     * Unicode specification.  Mirrored characters should have their
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6777
     * glyphs horizontally mirrored when displayed in text that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6778
     * right-to-left.  For example, <code>'&#92;u0028'</code> LEFT
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6779
     * PARENTHESIS is semantically defined to be an <i>opening
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6780
     * parenthesis</i>.  This will appear as a "(" in text that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6781
     * left-to-right but as a ")" in text that is right-to-left.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6782
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6783
     * <p><b>Note:</b> This method cannot handle <a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6784
     * href="#supplementary"> supplementary characters</a>. To support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6785
     * all Unicode characters, including supplementary characters, use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6786
     * the {@link #isMirrored(int)} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6787
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6788
     * @param  ch <code>char</code> for which the mirrored property is requested
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6789
     * @return <code>true</code> if the char is mirrored, <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6790
     *         if the <code>char</code> is not mirrored or is not defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6791
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6792
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6793
    public static boolean isMirrored(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6794
        return isMirrored((int)ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6795
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6796
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6797
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6798
     * Determines whether the specified character (Unicode code point)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6799
     * is mirrored according to the Unicode specification.  Mirrored
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6800
     * characters should have their glyphs horizontally mirrored when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6801
     * displayed in text that is right-to-left.  For example,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6802
     * <code>'&#92;u0028'</code> LEFT PARENTHESIS is semantically
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6803
     * defined to be an <i>opening parenthesis</i>.  This will appear
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6804
     * as a "(" in text that is left-to-right but as a ")" in text
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6805
     * that is right-to-left.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6806
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6807
     * @param   codePoint the character (Unicode code point) to be tested.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6808
     * @return  <code>true</code> if the character is mirrored, <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6809
     *          if the character is not mirrored or is not defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6810
     * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6811
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6812
    public static boolean isMirrored(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6813
        return CharacterData.of(codePoint).isMirrored(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6814
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6815
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6816
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6817
     * Compares two <code>Character</code> objects numerically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6818
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6819
     * @param   anotherCharacter   the <code>Character</code> to be compared.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6820
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6821
     * @return  the value <code>0</code> if the argument <code>Character</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6822
     *          is equal to this <code>Character</code>; a value less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6823
     *          <code>0</code> if this <code>Character</code> is numerically less
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6824
     *          than the <code>Character</code> argument; and a value greater than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6825
     *          <code>0</code> if this <code>Character</code> is numerically greater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6826
     *          than the <code>Character</code> argument (unsigned comparison).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6827
     *          Note that this is strictly a numerical comparison; it is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6828
     *          locale-dependent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6829
     * @since   1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6830
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6831
    public int compareTo(Character anotherCharacter) {
3943
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6832
        return compare(this.value, anotherCharacter.value);
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6833
    }
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6834
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6835
    /**
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6836
     * Compares two {@code char} values numerically.
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6837
     * The value returned is identical to what would be returned by:
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6838
     * <pre>
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6839
     *    Character.valueOf(x).compareTo(Character.valueOf(y))
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6840
     * </pre>
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6841
     *
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6842
     * @param  x the first {@code char} to compare
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6843
     * @param  y the second {@code char} to compare
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6844
     * @return the value {@code 0} if {@code x == y};
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6845
     *         a value less than {@code 0} if {@code x < y}; and
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6846
     *         a value greater than {@code 0} if {@code x > y}
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6847
     * @since 1.7
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6848
     */
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6849
    public static int compare(char x, char y) {
11abf5578222 6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents: 3942
diff changeset
  6850
        return x - y;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6851
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6852
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6853
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6854
     * Converts the character (Unicode code point) argument to uppercase using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6855
     * information from the UnicodeData file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6856
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6857
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6858
     * @param   codePoint   the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6859
     * @return  either the uppercase equivalent of the character, if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6860
     *          any, or an error flag (<code>Character.ERROR</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6861
     *          that indicates that a 1:M <code>char</code> mapping exists.
5990
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6862
     * @see     Character#isLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6863
     * @see     Character#isUpperCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6864
     * @see     Character#toLowerCase(char)
19cae21ed5e6 6934270: Remove javac warnings from Character.java
martin
parents: 5989
diff changeset
  6865
     * @see     Character#toTitleCase(char)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6866
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6867
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6868
    static int toUpperCaseEx(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6869
        assert isValidCodePoint(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6870
        return CharacterData.of(codePoint).toUpperCaseEx(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6871
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6872
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6873
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6874
     * Converts the character (Unicode code point) argument to uppercase using case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6875
     * mapping information from the SpecialCasing file in the Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6876
     * specification. If a character has no explicit uppercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6877
     * mapping, then the <code>char</code> itself is returned in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6878
     * <code>char[]</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6879
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6880
     * @param   codePoint   the character (Unicode code point) to be converted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6881
     * @return a <code>char[]</code> with the uppercased character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6882
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6883
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6884
    static char[] toUpperCaseCharArray(int codePoint) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6885
        // As of Unicode 4.0, 1:M uppercasings only happen in the BMP.
5986
04eb44085c00 6934265: Add public method Character.isBmpCodePoint
martin
parents: 5985
diff changeset
  6886
        assert isBmpCodePoint(codePoint);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6887
        return CharacterData.of(codePoint).toUpperCaseCharArray(codePoint);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6888
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6889
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6890
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6891
     * The number of bits used to represent a <tt>char</tt> value in unsigned
3714
6a4eb8f53f91 6860431: Character.isSurrogate(char ch)
martin
parents: 3505
diff changeset
  6892
     * binary form, constant {@code 16}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6893
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6894
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6895
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6896
    public static final int SIZE = 16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6897
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6898
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6899
     * Returns the value obtained by reversing the order of the bytes in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6900
     * specified <tt>char</tt> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6901
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6902
     * @return the value obtained by reversing (or, equivalently, swapping)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6903
     *     the bytes in the specified <tt>char</tt> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6904
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6905
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6906
    public static char reverseBytes(char ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6907
        return (char) (((ch & 0xFF00) >> 8) | (ch << 8));
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6908
    }
5610
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6909
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6910
    /**
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6911
     * Returns the Unicode name of the specified character
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6912
     * <code>codePoint</code>, or null if the code point is
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6913
     * {@link #UNASSIGNED unassigned}.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6914
     * <p>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6915
     * Note: if the specified character is not assigned a name by
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6916
     * the <i>UnicodeData</i> file (part of the Unicode Character
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6917
     * Database maintained by the Unicode Consortium), the returned
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6918
     * name is the same as the result of expression
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6919
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6920
     * <blockquote><code>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6921
     *     Character.UnicodeBlock.of(codePoint)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6922
     *                           .toString()
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6923
     *                           .replace('_', ' ')
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6924
     *     + " "
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6925
     *     + Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6926
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6927
     * </code></blockquote>
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6928
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6929
     * @param  codePoint the character (Unicode code point)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6930
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6931
     * @return the Unicode name of the specified character, or null if
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6932
     *         the code point is unassigned.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6933
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6934
     * @exception IllegalArgumentException if the specified
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6935
     *            <code>codePoint</code> is not a valid Unicode
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6936
     *            code point.
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6937
     *
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6938
     * @since 1.7
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6939
     */
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6940
    public static String getName(int codePoint) {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6941
        if (!isValidCodePoint(codePoint)) {
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6942
            throw new IllegalArgumentException();
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6943
        }
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6944
        String name = CharacterName.get(codePoint);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6945
        if (name != null)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6946
            return name;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6947
        if (getType(codePoint) == UNASSIGNED)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6948
            return null;
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6949
        UnicodeBlock block = UnicodeBlock.of(codePoint);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6950
        if (block != null)
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6951
            return block.toString().replace('_', ' ') + " "
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6952
                   + Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6953
        // should never come here
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6954
        return Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH);
fd2427610c7f 6945564: Unicode script support in Character class
sherman
parents: 3943
diff changeset
  6955
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  6956
}