author | mduigou |
Tue, 13 Nov 2012 20:02:48 -0800 | |
changeset 14503 | 0729d9e57ed5 |
parent 14411 | 65913e68c0a6 |
child 14507 | 066419d1e732 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
12300 | 2 |
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package java.lang; |
|
5990 | 27 |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
28 |
import java.util.Arrays; |
2 | 29 |
import java.util.Map; |
30 |
import java.util.HashMap; |
|
31 |
import java.util.Locale; |
|
32 |
||
33 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
34 |
* The {@code Character} class wraps a value of the primitive |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
35 |
* type {@code char} in an object. An object of type |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
36 |
* {@code Character} contains a single field whose type is |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
37 |
* {@code char}. |
2 | 38 |
* <p> |
39 |
* In addition, this class provides several methods for determining |
|
40 |
* a character's category (lowercase letter, digit, etc.) and for converting |
|
41 |
* characters from uppercase to lowercase and vice versa. |
|
42 |
* <p> |
|
14411 | 43 |
* Character information is based on the Unicode Standard, version 6.2.0. |
2 | 44 |
* <p> |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
45 |
* The methods and data of class {@code Character} are defined by |
2 | 46 |
* the information in the <i>UnicodeData</i> file that is part of the |
47 |
* Unicode Character Database maintained by the Unicode |
|
48 |
* Consortium. This file specifies various properties including name |
|
49 |
* and general category for every defined Unicode code point or |
|
50 |
* character range. |
|
51 |
* <p> |
|
52 |
* The file and its description are available from the Unicode Consortium at: |
|
53 |
* <ul> |
|
54 |
* <li><a href="http://www.unicode.org">http://www.unicode.org</a> |
|
55 |
* </ul> |
|
56 |
* |
|
57 |
* <h4><a name="unicode">Unicode Character Representations</a></h4> |
|
58 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
59 |
* <p>The {@code char} data type (and therefore the value that a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
60 |
* {@code Character} object encapsulates) are based on the |
2 | 61 |
* original Unicode specification, which defined characters as |
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
62 |
* fixed-width 16-bit entities. The Unicode Standard has since been |
2 | 63 |
* changed to allow for characters whose representation requires more |
64 |
* than 16 bits. The range of legal <em>code point</em>s is now |
|
65 |
* U+0000 to U+10FFFF, known as <em>Unicode scalar value</em>. |
|
66 |
* (Refer to the <a |
|
67 |
* href="http://www.unicode.org/reports/tr27/#notation"><i> |
|
68 |
* definition</i></a> of the U+<i>n</i> notation in the Unicode |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
69 |
* Standard.) |
2 | 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 | 74 |
* than U+FFFF are called <em>supplementary character</em>s. The Java |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
75 |
* platform uses the UTF-16 representation in {@code char} arrays and |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
76 |
* in the {@code String} and {@code StringBuffer} classes. In |
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
77 |
* this representation, supplementary characters are represented as a pair |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
78 |
* of {@code char} values, the first from the <em>high-surrogates</em> |
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
79 |
* range, (\uD800-\uDBFF), the second from the |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
80 |
* <em>low-surrogates</em> range (\uDC00-\uDFFF). |
2 | 81 |
* |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
82 |
* <p>A {@code char} value, therefore, represents Basic |
2 | 83 |
* Multilingual Plane (BMP) code points, including the surrogate |
84 |
* code points, or code units of the UTF-16 encoding. An |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
85 |
* {@code int} value represents all Unicode code points, |
2 | 86 |
* including supplementary code points. The lower (least significant) |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
87 |
* 21 bits of {@code int} are used to represent Unicode code |
2 | 88 |
* points and the upper (most significant) 11 bits must be zero. |
89 |
* Unless otherwise specified, the behavior with respect to |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
90 |
* supplementary characters and surrogate {@code char} values is |
2 | 91 |
* as follows: |
92 |
* |
|
93 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
94 |
* <li>The methods that only accept a {@code char} value cannot support |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
95 |
* supplementary characters. They treat {@code char} values from the |
2 | 96 |
* surrogate ranges as undefined characters. For example, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
97 |
* {@code Character.isLetter('\u005CuD840')} returns {@code false}, even though |
2 | 98 |
* this specific value if followed by any low-surrogate value in a string |
99 |
* would represent a letter. |
|
100 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
101 |
* <li>The methods that accept an {@code int} value support all |
2 | 102 |
* Unicode characters, including supplementary characters. For |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
103 |
* example, {@code Character.isLetter(0x2F81A)} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
104 |
* {@code true} because the code point value represents a letter |
2 | 105 |
* (a CJK ideograph). |
106 |
* </ul> |
|
107 |
* |
|
108 |
* <p>In the Java SE API documentation, <em>Unicode code point</em> is |
|
109 |
* used for character values in the range between U+0000 and U+10FFFF, |
|
110 |
* and <em>Unicode code unit</em> is used for 16-bit |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
111 |
* {@code char} values that are code units of the <em>UTF-16</em> |
2 | 112 |
* encoding. For more information on Unicode terminology, refer to the |
113 |
* <a href="http://www.unicode.org/glossary/">Unicode Glossary</a>. |
|
114 |
* |
|
115 |
* @author Lee Boynton |
|
116 |
* @author Guy Steele |
|
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 | 120 |
* @since 1.0 |
121 |
*/ |
|
122 |
public final |
|
5990 | 123 |
class Character implements java.io.Serializable, Comparable<Character> { |
2 | 124 |
/** |
125 |
* The minimum radix available for conversion to and from strings. |
|
126 |
* The constant value of this field is the smallest value permitted |
|
127 |
* for the radix argument in radix-conversion methods such as the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
128 |
* {@code digit} method, the {@code forDigit} method, and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
129 |
* {@code toString} method of class {@code Integer}. |
2 | 130 |
* |
5990 | 131 |
* @see Character#digit(char, int) |
132 |
* @see Character#forDigit(int, int) |
|
133 |
* @see Integer#toString(int, int) |
|
134 |
* @see Integer#valueOf(String) |
|
2 | 135 |
*/ |
136 |
public static final int MIN_RADIX = 2; |
|
137 |
||
138 |
/** |
|
139 |
* The maximum radix available for conversion to and from strings. |
|
140 |
* The constant value of this field is the largest value permitted |
|
141 |
* for the radix argument in radix-conversion methods such as the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
142 |
* {@code digit} method, the {@code forDigit} method, and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
143 |
* {@code toString} method of class {@code Integer}. |
2 | 144 |
* |
5990 | 145 |
* @see Character#digit(char, int) |
146 |
* @see Character#forDigit(int, int) |
|
147 |
* @see Integer#toString(int, int) |
|
148 |
* @see Integer#valueOf(String) |
|
2 | 149 |
*/ |
150 |
public static final int MAX_RADIX = 36; |
|
151 |
||
152 |
/** |
|
153 |
* The constant value of this field is the smallest value of type |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
154 |
* {@code char}, {@code '\u005Cu0000'}. |
2 | 155 |
* |
156 |
* @since 1.0.2 |
|
157 |
*/ |
|
5990 | 158 |
public static final char MIN_VALUE = '\u0000'; |
2 | 159 |
|
160 |
/** |
|
161 |
* The constant value of this field is the largest value of type |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
162 |
* {@code char}, {@code '\u005CuFFFF'}. |
2 | 163 |
* |
164 |
* @since 1.0.2 |
|
165 |
*/ |
|
5990 | 166 |
public static final char MAX_VALUE = '\uFFFF'; |
2 | 167 |
|
168 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
169 |
* The {@code Class} instance representing the primitive type |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
170 |
* {@code char}. |
2 | 171 |
* |
172 |
* @since 1.1 |
|
173 |
*/ |
|
5990 | 174 |
@SuppressWarnings("unchecked") |
11275 | 175 |
public static final Class<Character> TYPE = (Class<Character>) Class.getPrimitiveClass("char"); |
2 | 176 |
|
5990 | 177 |
/* |
178 |
* Normative general types |
|
179 |
*/ |
|
180 |
||
181 |
/* |
|
182 |
* General character types |
|
183 |
*/ |
|
184 |
||
185 |
/** |
|
186 |
* General category "Cn" in the Unicode specification. |
|
187 |
* @since 1.1 |
|
188 |
*/ |
|
189 |
public static final byte UNASSIGNED = 0; |
|
190 |
||
191 |
/** |
|
192 |
* General category "Lu" in the Unicode specification. |
|
193 |
* @since 1.1 |
|
194 |
*/ |
|
195 |
public static final byte UPPERCASE_LETTER = 1; |
|
196 |
||
197 |
/** |
|
198 |
* General category "Ll" in the Unicode specification. |
|
199 |
* @since 1.1 |
|
200 |
*/ |
|
201 |
public static final byte LOWERCASE_LETTER = 2; |
|
202 |
||
203 |
/** |
|
204 |
* General category "Lt" in the Unicode specification. |
|
205 |
* @since 1.1 |
|
206 |
*/ |
|
207 |
public static final byte TITLECASE_LETTER = 3; |
|
208 |
||
209 |
/** |
|
210 |
* General category "Lm" in the Unicode specification. |
|
211 |
* @since 1.1 |
|
212 |
*/ |
|
213 |
public static final byte MODIFIER_LETTER = 4; |
|
214 |
||
215 |
/** |
|
216 |
* General category "Lo" in the Unicode specification. |
|
217 |
* @since 1.1 |
|
218 |
*/ |
|
219 |
public static final byte OTHER_LETTER = 5; |
|
220 |
||
221 |
/** |
|
222 |
* General category "Mn" in the Unicode specification. |
|
223 |
* @since 1.1 |
|
224 |
*/ |
|
225 |
public static final byte NON_SPACING_MARK = 6; |
|
226 |
||
227 |
/** |
|
228 |
* General category "Me" in the Unicode specification. |
|
229 |
* @since 1.1 |
|
230 |
*/ |
|
231 |
public static final byte ENCLOSING_MARK = 7; |
|
232 |
||
233 |
/** |
|
234 |
* General category "Mc" in the Unicode specification. |
|
235 |
* @since 1.1 |
|
236 |
*/ |
|
237 |
public static final byte COMBINING_SPACING_MARK = 8; |
|
238 |
||
239 |
/** |
|
240 |
* General category "Nd" in the Unicode specification. |
|
241 |
* @since 1.1 |
|
242 |
*/ |
|
243 |
public static final byte DECIMAL_DIGIT_NUMBER = 9; |
|
244 |
||
245 |
/** |
|
246 |
* General category "Nl" in the Unicode specification. |
|
247 |
* @since 1.1 |
|
248 |
*/ |
|
249 |
public static final byte LETTER_NUMBER = 10; |
|
250 |
||
251 |
/** |
|
252 |
* General category "No" in the Unicode specification. |
|
253 |
* @since 1.1 |
|
254 |
*/ |
|
255 |
public static final byte OTHER_NUMBER = 11; |
|
256 |
||
257 |
/** |
|
258 |
* General category "Zs" in the Unicode specification. |
|
259 |
* @since 1.1 |
|
260 |
*/ |
|
261 |
public static final byte SPACE_SEPARATOR = 12; |
|
262 |
||
263 |
/** |
|
264 |
* General category "Zl" in the Unicode specification. |
|
265 |
* @since 1.1 |
|
266 |
*/ |
|
267 |
public static final byte LINE_SEPARATOR = 13; |
|
268 |
||
269 |
/** |
|
270 |
* General category "Zp" in the Unicode specification. |
|
271 |
* @since 1.1 |
|
272 |
*/ |
|
273 |
public static final byte PARAGRAPH_SEPARATOR = 14; |
|
274 |
||
275 |
/** |
|
276 |
* General category "Cc" in the Unicode specification. |
|
277 |
* @since 1.1 |
|
278 |
*/ |
|
279 |
public static final byte CONTROL = 15; |
|
280 |
||
281 |
/** |
|
282 |
* General category "Cf" in the Unicode specification. |
|
283 |
* @since 1.1 |
|
284 |
*/ |
|
285 |
public static final byte FORMAT = 16; |
|
286 |
||
287 |
/** |
|
288 |
* General category "Co" in the Unicode specification. |
|
289 |
* @since 1.1 |
|
290 |
*/ |
|
291 |
public static final byte PRIVATE_USE = 18; |
|
292 |
||
293 |
/** |
|
294 |
* General category "Cs" in the Unicode specification. |
|
295 |
* @since 1.1 |
|
296 |
*/ |
|
297 |
public static final byte SURROGATE = 19; |
|
298 |
||
299 |
/** |
|
300 |
* General category "Pd" in the Unicode specification. |
|
301 |
* @since 1.1 |
|
302 |
*/ |
|
303 |
public static final byte DASH_PUNCTUATION = 20; |
|
304 |
||
305 |
/** |
|
306 |
* General category "Ps" in the Unicode specification. |
|
307 |
* @since 1.1 |
|
308 |
*/ |
|
309 |
public static final byte START_PUNCTUATION = 21; |
|
310 |
||
311 |
/** |
|
312 |
* General category "Pe" in the Unicode specification. |
|
313 |
* @since 1.1 |
|
314 |
*/ |
|
315 |
public static final byte END_PUNCTUATION = 22; |
|
316 |
||
317 |
/** |
|
318 |
* General category "Pc" in the Unicode specification. |
|
319 |
* @since 1.1 |
|
320 |
*/ |
|
321 |
public static final byte CONNECTOR_PUNCTUATION = 23; |
|
322 |
||
323 |
/** |
|
324 |
* General category "Po" in the Unicode specification. |
|
325 |
* @since 1.1 |
|
326 |
*/ |
|
327 |
public static final byte OTHER_PUNCTUATION = 24; |
|
328 |
||
329 |
/** |
|
330 |
* General category "Sm" in the Unicode specification. |
|
331 |
* @since 1.1 |
|
332 |
*/ |
|
333 |
public static final byte MATH_SYMBOL = 25; |
|
334 |
||
335 |
/** |
|
336 |
* General category "Sc" in the Unicode specification. |
|
337 |
* @since 1.1 |
|
338 |
*/ |
|
339 |
public static final byte CURRENCY_SYMBOL = 26; |
|
340 |
||
341 |
/** |
|
342 |
* General category "Sk" in the Unicode specification. |
|
343 |
* @since 1.1 |
|
344 |
*/ |
|
345 |
public static final byte MODIFIER_SYMBOL = 27; |
|
346 |
||
347 |
/** |
|
348 |
* General category "So" in the Unicode specification. |
|
349 |
* @since 1.1 |
|
350 |
*/ |
|
351 |
public static final byte OTHER_SYMBOL = 28; |
|
352 |
||
353 |
/** |
|
354 |
* General category "Pi" in the Unicode specification. |
|
355 |
* @since 1.4 |
|
356 |
*/ |
|
357 |
public static final byte INITIAL_QUOTE_PUNCTUATION = 29; |
|
358 |
||
359 |
/** |
|
360 |
* General category "Pf" in the Unicode specification. |
|
361 |
* @since 1.4 |
|
362 |
*/ |
|
363 |
public static final byte FINAL_QUOTE_PUNCTUATION = 30; |
|
2 | 364 |
|
365 |
/** |
|
366 |
* Error flag. Use int (code point) to avoid confusion with U+FFFF. |
|
367 |
*/ |
|
5990 | 368 |
static final int ERROR = 0xFFFFFFFF; |
2 | 369 |
|
370 |
||
371 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
372 |
* Undefined bidirectional character type. Undefined {@code char} |
2 | 373 |
* values have undefined directionality in the Unicode specification. |
374 |
* @since 1.4 |
|
375 |
*/ |
|
5990 | 376 |
public static final byte DIRECTIONALITY_UNDEFINED = -1; |
2 | 377 |
|
378 |
/** |
|
379 |
* Strong bidirectional character type "L" in the Unicode specification. |
|
380 |
* @since 1.4 |
|
381 |
*/ |
|
382 |
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = 0; |
|
383 |
||
384 |
/** |
|
385 |
* Strong bidirectional character type "R" in the Unicode specification. |
|
386 |
* @since 1.4 |
|
387 |
*/ |
|
388 |
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = 1; |
|
389 |
||
390 |
/** |
|
391 |
* Strong bidirectional character type "AL" in the Unicode specification. |
|
392 |
* @since 1.4 |
|
393 |
*/ |
|
394 |
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = 2; |
|
395 |
||
396 |
/** |
|
397 |
* Weak bidirectional character type "EN" in the Unicode specification. |
|
398 |
* @since 1.4 |
|
399 |
*/ |
|
400 |
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = 3; |
|
401 |
||
402 |
/** |
|
403 |
* Weak bidirectional character type "ES" in the Unicode specification. |
|
404 |
* @since 1.4 |
|
405 |
*/ |
|
406 |
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = 4; |
|
407 |
||
408 |
/** |
|
409 |
* Weak bidirectional character type "ET" in the Unicode specification. |
|
410 |
* @since 1.4 |
|
411 |
*/ |
|
412 |
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = 5; |
|
413 |
||
414 |
/** |
|
415 |
* Weak bidirectional character type "AN" in the Unicode specification. |
|
416 |
* @since 1.4 |
|
417 |
*/ |
|
418 |
public static final byte DIRECTIONALITY_ARABIC_NUMBER = 6; |
|
419 |
||
420 |
/** |
|
421 |
* Weak bidirectional character type "CS" in the Unicode specification. |
|
422 |
* @since 1.4 |
|
423 |
*/ |
|
424 |
public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = 7; |
|
425 |
||
426 |
/** |
|
427 |
* Weak bidirectional character type "NSM" in the Unicode specification. |
|
428 |
* @since 1.4 |
|
429 |
*/ |
|
430 |
public static final byte DIRECTIONALITY_NONSPACING_MARK = 8; |
|
431 |
||
432 |
/** |
|
433 |
* Weak bidirectional character type "BN" in the Unicode specification. |
|
434 |
* @since 1.4 |
|
435 |
*/ |
|
436 |
public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = 9; |
|
437 |
||
438 |
/** |
|
439 |
* Neutral bidirectional character type "B" in the Unicode specification. |
|
440 |
* @since 1.4 |
|
441 |
*/ |
|
442 |
public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = 10; |
|
443 |
||
444 |
/** |
|
445 |
* Neutral bidirectional character type "S" in the Unicode specification. |
|
446 |
* @since 1.4 |
|
447 |
*/ |
|
448 |
public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = 11; |
|
449 |
||
450 |
/** |
|
451 |
* Neutral bidirectional character type "WS" in the Unicode specification. |
|
452 |
* @since 1.4 |
|
453 |
*/ |
|
454 |
public static final byte DIRECTIONALITY_WHITESPACE = 12; |
|
455 |
||
456 |
/** |
|
457 |
* Neutral bidirectional character type "ON" in the Unicode specification. |
|
458 |
* @since 1.4 |
|
459 |
*/ |
|
460 |
public static final byte DIRECTIONALITY_OTHER_NEUTRALS = 13; |
|
461 |
||
462 |
/** |
|
463 |
* Strong bidirectional character type "LRE" in the Unicode specification. |
|
464 |
* @since 1.4 |
|
465 |
*/ |
|
466 |
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = 14; |
|
467 |
||
468 |
/** |
|
469 |
* Strong bidirectional character type "LRO" in the Unicode specification. |
|
470 |
* @since 1.4 |
|
471 |
*/ |
|
472 |
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = 15; |
|
473 |
||
474 |
/** |
|
475 |
* Strong bidirectional character type "RLE" in the Unicode specification. |
|
476 |
* @since 1.4 |
|
477 |
*/ |
|
478 |
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = 16; |
|
479 |
||
480 |
/** |
|
481 |
* Strong bidirectional character type "RLO" in the Unicode specification. |
|
482 |
* @since 1.4 |
|
483 |
*/ |
|
484 |
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = 17; |
|
485 |
||
486 |
/** |
|
487 |
* Weak bidirectional character type "PDF" in the Unicode specification. |
|
488 |
* @since 1.4 |
|
489 |
*/ |
|
490 |
public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = 18; |
|
491 |
||
492 |
/** |
|
3714 | 493 |
* The minimum value of a |
494 |
* <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit"> |
|
495 |
* Unicode high-surrogate code unit</a> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
496 |
* in the UTF-16 encoding, constant {@code '\u005CuD800'}. |
3714 | 497 |
* A high-surrogate is also known as a <i>leading-surrogate</i>. |
2 | 498 |
* |
499 |
* @since 1.5 |
|
500 |
*/ |
|
501 |
public static final char MIN_HIGH_SURROGATE = '\uD800'; |
|
502 |
||
503 |
/** |
|
3714 | 504 |
* The maximum value of a |
505 |
* <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit"> |
|
506 |
* Unicode high-surrogate code unit</a> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
507 |
* in the UTF-16 encoding, constant {@code '\u005CuDBFF'}. |
3714 | 508 |
* A high-surrogate is also known as a <i>leading-surrogate</i>. |
2 | 509 |
* |
510 |
* @since 1.5 |
|
511 |
*/ |
|
512 |
public static final char MAX_HIGH_SURROGATE = '\uDBFF'; |
|
513 |
||
514 |
/** |
|
3714 | 515 |
* The minimum value of a |
516 |
* <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit"> |
|
517 |
* Unicode low-surrogate code unit</a> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
518 |
* in the UTF-16 encoding, constant {@code '\u005CuDC00'}. |
3714 | 519 |
* A low-surrogate is also known as a <i>trailing-surrogate</i>. |
2 | 520 |
* |
521 |
* @since 1.5 |
|
522 |
*/ |
|
523 |
public static final char MIN_LOW_SURROGATE = '\uDC00'; |
|
524 |
||
525 |
/** |
|
3714 | 526 |
* The maximum value of a |
527 |
* <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit"> |
|
528 |
* Unicode low-surrogate code unit</a> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
529 |
* in the UTF-16 encoding, constant {@code '\u005CuDFFF'}. |
3714 | 530 |
* A low-surrogate is also known as a <i>trailing-surrogate</i>. |
2 | 531 |
* |
532 |
* @since 1.5 |
|
533 |
*/ |
|
534 |
public static final char MAX_LOW_SURROGATE = '\uDFFF'; |
|
535 |
||
536 |
/** |
|
3714 | 537 |
* The minimum value of a Unicode surrogate code unit in the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
538 |
* UTF-16 encoding, constant {@code '\u005CuD800'}. |
2 | 539 |
* |
540 |
* @since 1.5 |
|
541 |
*/ |
|
542 |
public static final char MIN_SURROGATE = MIN_HIGH_SURROGATE; |
|
543 |
||
544 |
/** |
|
3714 | 545 |
* The maximum value of a Unicode surrogate code unit in the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
546 |
* UTF-16 encoding, constant {@code '\u005CuDFFF'}. |
2 | 547 |
* |
548 |
* @since 1.5 |
|
549 |
*/ |
|
550 |
public static final char MAX_SURROGATE = MAX_LOW_SURROGATE; |
|
551 |
||
552 |
/** |
|
3714 | 553 |
* The minimum value of a |
554 |
* <a href="http://www.unicode.org/glossary/#supplementary_code_point"> |
|
555 |
* Unicode supplementary code point</a>, constant {@code U+10000}. |
|
2 | 556 |
* |
557 |
* @since 1.5 |
|
558 |
*/ |
|
559 |
public static final int MIN_SUPPLEMENTARY_CODE_POINT = 0x010000; |
|
560 |
||
561 |
/** |
|
3714 | 562 |
* The minimum value of a |
563 |
* <a href="http://www.unicode.org/glossary/#code_point"> |
|
564 |
* Unicode code point</a>, constant {@code U+0000}. |
|
2 | 565 |
* |
566 |
* @since 1.5 |
|
567 |
*/ |
|
568 |
public static final int MIN_CODE_POINT = 0x000000; |
|
569 |
||
570 |
/** |
|
3714 | 571 |
* The maximum value of a |
572 |
* <a href="http://www.unicode.org/glossary/#code_point"> |
|
573 |
* Unicode code point</a>, constant {@code U+10FFFF}. |
|
2 | 574 |
* |
575 |
* @since 1.5 |
|
576 |
*/ |
|
3714 | 577 |
public static final int MAX_CODE_POINT = 0X10FFFF; |
2 | 578 |
|
579 |
||
580 |
/** |
|
581 |
* Instances of this class represent particular subsets of the Unicode |
|
582 |
* character set. The only family of subsets defined in the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
583 |
* {@code Character} class is {@link Character.UnicodeBlock}. |
5990 | 584 |
* Other portions of the Java API may define other subsets for their |
585 |
* own purposes. |
|
2 | 586 |
* |
587 |
* @since 1.2 |
|
588 |
*/ |
|
589 |
public static class Subset { |
|
590 |
||
591 |
private String name; |
|
592 |
||
593 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
594 |
* Constructs a new {@code Subset} instance. |
2 | 595 |
* |
596 |
* @param name The name of this subset |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
597 |
* @exception NullPointerException if name is {@code null} |
2 | 598 |
*/ |
599 |
protected Subset(String name) { |
|
600 |
if (name == null) { |
|
601 |
throw new NullPointerException("name"); |
|
602 |
} |
|
603 |
this.name = name; |
|
604 |
} |
|
605 |
||
606 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
607 |
* Compares two {@code Subset} objects for equality. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
608 |
* This method returns {@code true} if and only if |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
609 |
* {@code this} and the argument refer to the same |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
610 |
* object; since this method is {@code final}, this |
2 | 611 |
* guarantee holds for all subclasses. |
612 |
*/ |
|
613 |
public final boolean equals(Object obj) { |
|
614 |
return (this == obj); |
|
615 |
} |
|
616 |
||
617 |
/** |
|
618 |
* Returns the standard hash code as defined by the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
619 |
* {@link Object#hashCode} method. This method |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
620 |
* is {@code final} in order to ensure that the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
621 |
* {@code equals} and {@code hashCode} methods will |
2 | 622 |
* be consistent in all subclasses. |
623 |
*/ |
|
624 |
public final int hashCode() { |
|
625 |
return super.hashCode(); |
|
626 |
} |
|
627 |
||
628 |
/** |
|
629 |
* Returns the name of this subset. |
|
630 |
*/ |
|
631 |
public final String toString() { |
|
632 |
return name; |
|
633 |
} |
|
634 |
} |
|
635 |
||
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
636 |
// See http://www.unicode.org/Public/UNIDATA/Blocks.txt |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
637 |
// for the latest specification of Unicode Blocks. |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
638 |
|
2 | 639 |
/** |
640 |
* A family of character subsets representing the character blocks in the |
|
641 |
* Unicode specification. Character blocks generally define characters |
|
642 |
* used for a specific script or purpose. A character is contained by |
|
643 |
* at most one Unicode block. |
|
644 |
* |
|
645 |
* @since 1.2 |
|
646 |
*/ |
|
647 |
public static final class UnicodeBlock extends Subset { |
|
648 |
||
7803
56bc97d69d93
6880112: Project Coin: Port JDK core library code to use diamond operator
smarks
parents:
7247
diff
changeset
|
649 |
private static Map<String, UnicodeBlock> map = new HashMap<>(256); |
2 | 650 |
|
651 |
/** |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
652 |
* Creates a UnicodeBlock with the given identifier name. |
2 | 653 |
* This name must be the same as the block identifier. |
654 |
*/ |
|
655 |
private UnicodeBlock(String idName) { |
|
656 |
super(idName); |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
657 |
map.put(idName, this); |
2 | 658 |
} |
659 |
||
660 |
/** |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
661 |
* Creates a UnicodeBlock with the given identifier name and |
2 | 662 |
* alias name. |
663 |
*/ |
|
664 |
private UnicodeBlock(String idName, String alias) { |
|
665 |
this(idName); |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
666 |
map.put(alias, this); |
2 | 667 |
} |
668 |
||
669 |
/** |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
670 |
* Creates a UnicodeBlock with the given identifier name and |
2 | 671 |
* alias names. |
672 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
673 |
private UnicodeBlock(String idName, String... aliases) { |
2 | 674 |
this(idName); |
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
675 |
for (String alias : aliases) |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
676 |
map.put(alias, this); |
2 | 677 |
} |
678 |
||
679 |
/** |
|
680 |
* Constant for the "Basic Latin" Unicode character block. |
|
681 |
* @since 1.2 |
|
682 |
*/ |
|
683 |
public static final UnicodeBlock BASIC_LATIN = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
684 |
new UnicodeBlock("BASIC_LATIN", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
685 |
"BASIC LATIN", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
686 |
"BASICLATIN"); |
2 | 687 |
|
688 |
/** |
|
689 |
* Constant for the "Latin-1 Supplement" Unicode character block. |
|
690 |
* @since 1.2 |
|
691 |
*/ |
|
692 |
public static final UnicodeBlock LATIN_1_SUPPLEMENT = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
693 |
new UnicodeBlock("LATIN_1_SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
694 |
"LATIN-1 SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
695 |
"LATIN-1SUPPLEMENT"); |
2 | 696 |
|
697 |
/** |
|
698 |
* Constant for the "Latin Extended-A" Unicode character block. |
|
699 |
* @since 1.2 |
|
700 |
*/ |
|
701 |
public static final UnicodeBlock LATIN_EXTENDED_A = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
702 |
new UnicodeBlock("LATIN_EXTENDED_A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
703 |
"LATIN EXTENDED-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
704 |
"LATINEXTENDED-A"); |
2 | 705 |
|
706 |
/** |
|
707 |
* Constant for the "Latin Extended-B" Unicode character block. |
|
708 |
* @since 1.2 |
|
709 |
*/ |
|
710 |
public static final UnicodeBlock LATIN_EXTENDED_B = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
711 |
new UnicodeBlock("LATIN_EXTENDED_B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
712 |
"LATIN EXTENDED-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
713 |
"LATINEXTENDED-B"); |
2 | 714 |
|
715 |
/** |
|
716 |
* Constant for the "IPA Extensions" Unicode character block. |
|
717 |
* @since 1.2 |
|
718 |
*/ |
|
719 |
public static final UnicodeBlock IPA_EXTENSIONS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
720 |
new UnicodeBlock("IPA_EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
721 |
"IPA EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
722 |
"IPAEXTENSIONS"); |
2 | 723 |
|
724 |
/** |
|
725 |
* Constant for the "Spacing Modifier Letters" Unicode character block. |
|
726 |
* @since 1.2 |
|
727 |
*/ |
|
728 |
public static final UnicodeBlock SPACING_MODIFIER_LETTERS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
729 |
new UnicodeBlock("SPACING_MODIFIER_LETTERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
730 |
"SPACING MODIFIER LETTERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
731 |
"SPACINGMODIFIERLETTERS"); |
2 | 732 |
|
733 |
/** |
|
734 |
* Constant for the "Combining Diacritical Marks" Unicode character block. |
|
735 |
* @since 1.2 |
|
736 |
*/ |
|
737 |
public static final UnicodeBlock COMBINING_DIACRITICAL_MARKS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
738 |
new UnicodeBlock("COMBINING_DIACRITICAL_MARKS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
739 |
"COMBINING DIACRITICAL MARKS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
740 |
"COMBININGDIACRITICALMARKS"); |
2 | 741 |
|
742 |
/** |
|
743 |
* Constant for the "Greek and Coptic" Unicode character block. |
|
744 |
* <p> |
|
745 |
* This block was previously known as the "Greek" block. |
|
746 |
* |
|
747 |
* @since 1.2 |
|
748 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
749 |
public static final UnicodeBlock GREEK = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
750 |
new UnicodeBlock("GREEK", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
751 |
"GREEK AND COPTIC", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
752 |
"GREEKANDCOPTIC"); |
2 | 753 |
|
754 |
/** |
|
755 |
* Constant for the "Cyrillic" Unicode character block. |
|
756 |
* @since 1.2 |
|
757 |
*/ |
|
758 |
public static final UnicodeBlock CYRILLIC = |
|
759 |
new UnicodeBlock("CYRILLIC"); |
|
760 |
||
761 |
/** |
|
762 |
* Constant for the "Armenian" Unicode character block. |
|
763 |
* @since 1.2 |
|
764 |
*/ |
|
765 |
public static final UnicodeBlock ARMENIAN = |
|
766 |
new UnicodeBlock("ARMENIAN"); |
|
767 |
||
768 |
/** |
|
769 |
* Constant for the "Hebrew" Unicode character block. |
|
770 |
* @since 1.2 |
|
771 |
*/ |
|
772 |
public static final UnicodeBlock HEBREW = |
|
773 |
new UnicodeBlock("HEBREW"); |
|
774 |
||
775 |
/** |
|
776 |
* Constant for the "Arabic" Unicode character block. |
|
777 |
* @since 1.2 |
|
778 |
*/ |
|
779 |
public static final UnicodeBlock ARABIC = |
|
780 |
new UnicodeBlock("ARABIC"); |
|
781 |
||
782 |
/** |
|
783 |
* Constant for the "Devanagari" Unicode character block. |
|
784 |
* @since 1.2 |
|
785 |
*/ |
|
786 |
public static final UnicodeBlock DEVANAGARI = |
|
787 |
new UnicodeBlock("DEVANAGARI"); |
|
788 |
||
789 |
/** |
|
790 |
* Constant for the "Bengali" Unicode character block. |
|
791 |
* @since 1.2 |
|
792 |
*/ |
|
793 |
public static final UnicodeBlock BENGALI = |
|
794 |
new UnicodeBlock("BENGALI"); |
|
795 |
||
796 |
/** |
|
797 |
* Constant for the "Gurmukhi" Unicode character block. |
|
798 |
* @since 1.2 |
|
799 |
*/ |
|
800 |
public static final UnicodeBlock GURMUKHI = |
|
801 |
new UnicodeBlock("GURMUKHI"); |
|
802 |
||
803 |
/** |
|
804 |
* Constant for the "Gujarati" Unicode character block. |
|
805 |
* @since 1.2 |
|
806 |
*/ |
|
807 |
public static final UnicodeBlock GUJARATI = |
|
808 |
new UnicodeBlock("GUJARATI"); |
|
809 |
||
810 |
/** |
|
811 |
* Constant for the "Oriya" Unicode character block. |
|
812 |
* @since 1.2 |
|
813 |
*/ |
|
814 |
public static final UnicodeBlock ORIYA = |
|
815 |
new UnicodeBlock("ORIYA"); |
|
816 |
||
817 |
/** |
|
818 |
* Constant for the "Tamil" Unicode character block. |
|
819 |
* @since 1.2 |
|
820 |
*/ |
|
821 |
public static final UnicodeBlock TAMIL = |
|
822 |
new UnicodeBlock("TAMIL"); |
|
823 |
||
824 |
/** |
|
825 |
* Constant for the "Telugu" Unicode character block. |
|
826 |
* @since 1.2 |
|
827 |
*/ |
|
828 |
public static final UnicodeBlock TELUGU = |
|
829 |
new UnicodeBlock("TELUGU"); |
|
830 |
||
831 |
/** |
|
832 |
* Constant for the "Kannada" Unicode character block. |
|
833 |
* @since 1.2 |
|
834 |
*/ |
|
835 |
public static final UnicodeBlock KANNADA = |
|
836 |
new UnicodeBlock("KANNADA"); |
|
837 |
||
838 |
/** |
|
839 |
* Constant for the "Malayalam" Unicode character block. |
|
840 |
* @since 1.2 |
|
841 |
*/ |
|
842 |
public static final UnicodeBlock MALAYALAM = |
|
843 |
new UnicodeBlock("MALAYALAM"); |
|
844 |
||
845 |
/** |
|
846 |
* Constant for the "Thai" Unicode character block. |
|
847 |
* @since 1.2 |
|
848 |
*/ |
|
849 |
public static final UnicodeBlock THAI = |
|
850 |
new UnicodeBlock("THAI"); |
|
851 |
||
852 |
/** |
|
853 |
* Constant for the "Lao" Unicode character block. |
|
854 |
* @since 1.2 |
|
855 |
*/ |
|
856 |
public static final UnicodeBlock LAO = |
|
857 |
new UnicodeBlock("LAO"); |
|
858 |
||
859 |
/** |
|
860 |
* Constant for the "Tibetan" Unicode character block. |
|
861 |
* @since 1.2 |
|
862 |
*/ |
|
863 |
public static final UnicodeBlock TIBETAN = |
|
864 |
new UnicodeBlock("TIBETAN"); |
|
865 |
||
866 |
/** |
|
867 |
* Constant for the "Georgian" Unicode character block. |
|
868 |
* @since 1.2 |
|
869 |
*/ |
|
870 |
public static final UnicodeBlock GEORGIAN = |
|
871 |
new UnicodeBlock("GEORGIAN"); |
|
872 |
||
873 |
/** |
|
874 |
* Constant for the "Hangul Jamo" Unicode character block. |
|
875 |
* @since 1.2 |
|
876 |
*/ |
|
877 |
public static final UnicodeBlock HANGUL_JAMO = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
878 |
new UnicodeBlock("HANGUL_JAMO", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
879 |
"HANGUL JAMO", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
880 |
"HANGULJAMO"); |
2 | 881 |
|
882 |
/** |
|
883 |
* Constant for the "Latin Extended Additional" Unicode character block. |
|
884 |
* @since 1.2 |
|
885 |
*/ |
|
886 |
public static final UnicodeBlock LATIN_EXTENDED_ADDITIONAL = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
887 |
new UnicodeBlock("LATIN_EXTENDED_ADDITIONAL", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
888 |
"LATIN EXTENDED ADDITIONAL", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
889 |
"LATINEXTENDEDADDITIONAL"); |
2 | 890 |
|
891 |
/** |
|
892 |
* Constant for the "Greek Extended" Unicode character block. |
|
893 |
* @since 1.2 |
|
894 |
*/ |
|
895 |
public static final UnicodeBlock GREEK_EXTENDED = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
896 |
new UnicodeBlock("GREEK_EXTENDED", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
897 |
"GREEK EXTENDED", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
898 |
"GREEKEXTENDED"); |
2 | 899 |
|
900 |
/** |
|
901 |
* Constant for the "General Punctuation" Unicode character block. |
|
902 |
* @since 1.2 |
|
903 |
*/ |
|
904 |
public static final UnicodeBlock GENERAL_PUNCTUATION = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
905 |
new UnicodeBlock("GENERAL_PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
906 |
"GENERAL PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
907 |
"GENERALPUNCTUATION"); |
2 | 908 |
|
909 |
/** |
|
7247 | 910 |
* Constant for the "Superscripts and Subscripts" Unicode character |
911 |
* block. |
|
2 | 912 |
* @since 1.2 |
913 |
*/ |
|
914 |
public static final UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
915 |
new UnicodeBlock("SUPERSCRIPTS_AND_SUBSCRIPTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
916 |
"SUPERSCRIPTS AND SUBSCRIPTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
917 |
"SUPERSCRIPTSANDSUBSCRIPTS"); |
2 | 918 |
|
919 |
/** |
|
920 |
* Constant for the "Currency Symbols" Unicode character block. |
|
921 |
* @since 1.2 |
|
922 |
*/ |
|
923 |
public static final UnicodeBlock CURRENCY_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
924 |
new UnicodeBlock("CURRENCY_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
925 |
"CURRENCY SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
926 |
"CURRENCYSYMBOLS"); |
2 | 927 |
|
928 |
/** |
|
7247 | 929 |
* Constant for the "Combining Diacritical Marks for Symbols" Unicode |
930 |
* character block. |
|
2 | 931 |
* <p> |
932 |
* This block was previously known as "Combining Marks for Symbols". |
|
933 |
* @since 1.2 |
|
934 |
*/ |
|
935 |
public static final UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
936 |
new UnicodeBlock("COMBINING_MARKS_FOR_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
937 |
"COMBINING DIACRITICAL MARKS FOR SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
938 |
"COMBININGDIACRITICALMARKSFORSYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
939 |
"COMBINING MARKS FOR SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
940 |
"COMBININGMARKSFORSYMBOLS"); |
2 | 941 |
|
942 |
/** |
|
943 |
* Constant for the "Letterlike Symbols" Unicode character block. |
|
944 |
* @since 1.2 |
|
945 |
*/ |
|
946 |
public static final UnicodeBlock LETTERLIKE_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
947 |
new UnicodeBlock("LETTERLIKE_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
948 |
"LETTERLIKE SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
949 |
"LETTERLIKESYMBOLS"); |
2 | 950 |
|
951 |
/** |
|
952 |
* Constant for the "Number Forms" Unicode character block. |
|
953 |
* @since 1.2 |
|
954 |
*/ |
|
955 |
public static final UnicodeBlock NUMBER_FORMS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
956 |
new UnicodeBlock("NUMBER_FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
957 |
"NUMBER FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
958 |
"NUMBERFORMS"); |
2 | 959 |
|
960 |
/** |
|
961 |
* Constant for the "Arrows" Unicode character block. |
|
962 |
* @since 1.2 |
|
963 |
*/ |
|
964 |
public static final UnicodeBlock ARROWS = |
|
965 |
new UnicodeBlock("ARROWS"); |
|
966 |
||
967 |
/** |
|
968 |
* Constant for the "Mathematical Operators" Unicode character block. |
|
969 |
* @since 1.2 |
|
970 |
*/ |
|
971 |
public static final UnicodeBlock MATHEMATICAL_OPERATORS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
972 |
new UnicodeBlock("MATHEMATICAL_OPERATORS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
973 |
"MATHEMATICAL OPERATORS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
974 |
"MATHEMATICALOPERATORS"); |
2 | 975 |
|
976 |
/** |
|
977 |
* Constant for the "Miscellaneous Technical" Unicode character block. |
|
978 |
* @since 1.2 |
|
979 |
*/ |
|
980 |
public static final UnicodeBlock MISCELLANEOUS_TECHNICAL = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
981 |
new UnicodeBlock("MISCELLANEOUS_TECHNICAL", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
982 |
"MISCELLANEOUS TECHNICAL", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
983 |
"MISCELLANEOUSTECHNICAL"); |
2 | 984 |
|
985 |
/** |
|
986 |
* Constant for the "Control Pictures" Unicode character block. |
|
987 |
* @since 1.2 |
|
988 |
*/ |
|
989 |
public static final UnicodeBlock CONTROL_PICTURES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
990 |
new UnicodeBlock("CONTROL_PICTURES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
991 |
"CONTROL PICTURES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
992 |
"CONTROLPICTURES"); |
2 | 993 |
|
994 |
/** |
|
995 |
* Constant for the "Optical Character Recognition" Unicode character block. |
|
996 |
* @since 1.2 |
|
997 |
*/ |
|
998 |
public static final UnicodeBlock OPTICAL_CHARACTER_RECOGNITION = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
999 |
new UnicodeBlock("OPTICAL_CHARACTER_RECOGNITION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1000 |
"OPTICAL CHARACTER RECOGNITION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1001 |
"OPTICALCHARACTERRECOGNITION"); |
2 | 1002 |
|
1003 |
/** |
|
1004 |
* Constant for the "Enclosed Alphanumerics" Unicode character block. |
|
1005 |
* @since 1.2 |
|
1006 |
*/ |
|
1007 |
public static final UnicodeBlock ENCLOSED_ALPHANUMERICS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1008 |
new UnicodeBlock("ENCLOSED_ALPHANUMERICS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1009 |
"ENCLOSED ALPHANUMERICS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1010 |
"ENCLOSEDALPHANUMERICS"); |
2 | 1011 |
|
1012 |
/** |
|
1013 |
* Constant for the "Box Drawing" Unicode character block. |
|
1014 |
* @since 1.2 |
|
1015 |
*/ |
|
1016 |
public static final UnicodeBlock BOX_DRAWING = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1017 |
new UnicodeBlock("BOX_DRAWING", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1018 |
"BOX DRAWING", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1019 |
"BOXDRAWING"); |
2 | 1020 |
|
1021 |
/** |
|
1022 |
* Constant for the "Block Elements" Unicode character block. |
|
1023 |
* @since 1.2 |
|
1024 |
*/ |
|
1025 |
public static final UnicodeBlock BLOCK_ELEMENTS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1026 |
new UnicodeBlock("BLOCK_ELEMENTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1027 |
"BLOCK ELEMENTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1028 |
"BLOCKELEMENTS"); |
2 | 1029 |
|
1030 |
/** |
|
1031 |
* Constant for the "Geometric Shapes" Unicode character block. |
|
1032 |
* @since 1.2 |
|
1033 |
*/ |
|
1034 |
public static final UnicodeBlock GEOMETRIC_SHAPES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1035 |
new UnicodeBlock("GEOMETRIC_SHAPES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1036 |
"GEOMETRIC SHAPES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1037 |
"GEOMETRICSHAPES"); |
2 | 1038 |
|
1039 |
/** |
|
1040 |
* Constant for the "Miscellaneous Symbols" Unicode character block. |
|
1041 |
* @since 1.2 |
|
1042 |
*/ |
|
1043 |
public static final UnicodeBlock MISCELLANEOUS_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1044 |
new UnicodeBlock("MISCELLANEOUS_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1045 |
"MISCELLANEOUS SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1046 |
"MISCELLANEOUSSYMBOLS"); |
2 | 1047 |
|
1048 |
/** |
|
1049 |
* Constant for the "Dingbats" Unicode character block. |
|
1050 |
* @since 1.2 |
|
1051 |
*/ |
|
1052 |
public static final UnicodeBlock DINGBATS = |
|
1053 |
new UnicodeBlock("DINGBATS"); |
|
1054 |
||
1055 |
/** |
|
1056 |
* Constant for the "CJK Symbols and Punctuation" Unicode character block. |
|
1057 |
* @since 1.2 |
|
1058 |
*/ |
|
1059 |
public static final UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1060 |
new UnicodeBlock("CJK_SYMBOLS_AND_PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1061 |
"CJK SYMBOLS AND PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1062 |
"CJKSYMBOLSANDPUNCTUATION"); |
2 | 1063 |
|
1064 |
/** |
|
1065 |
* Constant for the "Hiragana" Unicode character block. |
|
1066 |
* @since 1.2 |
|
1067 |
*/ |
|
1068 |
public static final UnicodeBlock HIRAGANA = |
|
1069 |
new UnicodeBlock("HIRAGANA"); |
|
1070 |
||
1071 |
/** |
|
1072 |
* Constant for the "Katakana" Unicode character block. |
|
1073 |
* @since 1.2 |
|
1074 |
*/ |
|
1075 |
public static final UnicodeBlock KATAKANA = |
|
1076 |
new UnicodeBlock("KATAKANA"); |
|
1077 |
||
1078 |
/** |
|
1079 |
* Constant for the "Bopomofo" Unicode character block. |
|
1080 |
* @since 1.2 |
|
1081 |
*/ |
|
1082 |
public static final UnicodeBlock BOPOMOFO = |
|
1083 |
new UnicodeBlock("BOPOMOFO"); |
|
1084 |
||
1085 |
/** |
|
1086 |
* Constant for the "Hangul Compatibility Jamo" Unicode character block. |
|
1087 |
* @since 1.2 |
|
1088 |
*/ |
|
1089 |
public static final UnicodeBlock HANGUL_COMPATIBILITY_JAMO = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1090 |
new UnicodeBlock("HANGUL_COMPATIBILITY_JAMO", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1091 |
"HANGUL COMPATIBILITY JAMO", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1092 |
"HANGULCOMPATIBILITYJAMO"); |
2 | 1093 |
|
1094 |
/** |
|
1095 |
* Constant for the "Kanbun" Unicode character block. |
|
1096 |
* @since 1.2 |
|
1097 |
*/ |
|
1098 |
public static final UnicodeBlock KANBUN = |
|
1099 |
new UnicodeBlock("KANBUN"); |
|
1100 |
||
1101 |
/** |
|
1102 |
* Constant for the "Enclosed CJK Letters and Months" Unicode character block. |
|
1103 |
* @since 1.2 |
|
1104 |
*/ |
|
1105 |
public static final UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1106 |
new UnicodeBlock("ENCLOSED_CJK_LETTERS_AND_MONTHS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1107 |
"ENCLOSED CJK LETTERS AND MONTHS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1108 |
"ENCLOSEDCJKLETTERSANDMONTHS"); |
2 | 1109 |
|
1110 |
/** |
|
1111 |
* Constant for the "CJK Compatibility" Unicode character block. |
|
1112 |
* @since 1.2 |
|
1113 |
*/ |
|
1114 |
public static final UnicodeBlock CJK_COMPATIBILITY = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1115 |
new UnicodeBlock("CJK_COMPATIBILITY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1116 |
"CJK COMPATIBILITY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1117 |
"CJKCOMPATIBILITY"); |
2 | 1118 |
|
1119 |
/** |
|
1120 |
* Constant for the "CJK Unified Ideographs" Unicode character block. |
|
1121 |
* @since 1.2 |
|
1122 |
*/ |
|
1123 |
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1124 |
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1125 |
"CJK UNIFIED IDEOGRAPHS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1126 |
"CJKUNIFIEDIDEOGRAPHS"); |
2 | 1127 |
|
1128 |
/** |
|
1129 |
* Constant for the "Hangul Syllables" Unicode character block. |
|
1130 |
* @since 1.2 |
|
1131 |
*/ |
|
1132 |
public static final UnicodeBlock HANGUL_SYLLABLES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1133 |
new UnicodeBlock("HANGUL_SYLLABLES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1134 |
"HANGUL SYLLABLES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1135 |
"HANGULSYLLABLES"); |
2 | 1136 |
|
1137 |
/** |
|
1138 |
* Constant for the "Private Use Area" Unicode character block. |
|
1139 |
* @since 1.2 |
|
1140 |
*/ |
|
1141 |
public static final UnicodeBlock PRIVATE_USE_AREA = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1142 |
new UnicodeBlock("PRIVATE_USE_AREA", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1143 |
"PRIVATE USE AREA", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1144 |
"PRIVATEUSEAREA"); |
2 | 1145 |
|
1146 |
/** |
|
7247 | 1147 |
* Constant for the "CJK Compatibility Ideographs" Unicode character |
1148 |
* block. |
|
2 | 1149 |
* @since 1.2 |
1150 |
*/ |
|
1151 |
public static final UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS = |
|
1152 |
new UnicodeBlock("CJK_COMPATIBILITY_IDEOGRAPHS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1153 |
"CJK COMPATIBILITY IDEOGRAPHS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1154 |
"CJKCOMPATIBILITYIDEOGRAPHS"); |
2 | 1155 |
|
1156 |
/** |
|
1157 |
* Constant for the "Alphabetic Presentation Forms" Unicode character block. |
|
1158 |
* @since 1.2 |
|
1159 |
*/ |
|
1160 |
public static final UnicodeBlock ALPHABETIC_PRESENTATION_FORMS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1161 |
new UnicodeBlock("ALPHABETIC_PRESENTATION_FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1162 |
"ALPHABETIC PRESENTATION FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1163 |
"ALPHABETICPRESENTATIONFORMS"); |
2 | 1164 |
|
1165 |
/** |
|
7247 | 1166 |
* Constant for the "Arabic Presentation Forms-A" Unicode character |
1167 |
* block. |
|
2 | 1168 |
* @since 1.2 |
1169 |
*/ |
|
1170 |
public static final UnicodeBlock ARABIC_PRESENTATION_FORMS_A = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1171 |
new UnicodeBlock("ARABIC_PRESENTATION_FORMS_A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1172 |
"ARABIC PRESENTATION FORMS-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1173 |
"ARABICPRESENTATIONFORMS-A"); |
2 | 1174 |
|
1175 |
/** |
|
1176 |
* Constant for the "Combining Half Marks" Unicode character block. |
|
1177 |
* @since 1.2 |
|
1178 |
*/ |
|
1179 |
public static final UnicodeBlock COMBINING_HALF_MARKS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1180 |
new UnicodeBlock("COMBINING_HALF_MARKS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1181 |
"COMBINING HALF MARKS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1182 |
"COMBININGHALFMARKS"); |
2 | 1183 |
|
1184 |
/** |
|
1185 |
* Constant for the "CJK Compatibility Forms" Unicode character block. |
|
1186 |
* @since 1.2 |
|
1187 |
*/ |
|
1188 |
public static final UnicodeBlock CJK_COMPATIBILITY_FORMS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1189 |
new UnicodeBlock("CJK_COMPATIBILITY_FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1190 |
"CJK COMPATIBILITY FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1191 |
"CJKCOMPATIBILITYFORMS"); |
2 | 1192 |
|
1193 |
/** |
|
1194 |
* Constant for the "Small Form Variants" Unicode character block. |
|
1195 |
* @since 1.2 |
|
1196 |
*/ |
|
1197 |
public static final UnicodeBlock SMALL_FORM_VARIANTS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1198 |
new UnicodeBlock("SMALL_FORM_VARIANTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1199 |
"SMALL FORM VARIANTS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1200 |
"SMALLFORMVARIANTS"); |
2 | 1201 |
|
1202 |
/** |
|
1203 |
* Constant for the "Arabic Presentation Forms-B" Unicode character block. |
|
1204 |
* @since 1.2 |
|
1205 |
*/ |
|
1206 |
public static final UnicodeBlock ARABIC_PRESENTATION_FORMS_B = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1207 |
new UnicodeBlock("ARABIC_PRESENTATION_FORMS_B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1208 |
"ARABIC PRESENTATION FORMS-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1209 |
"ARABICPRESENTATIONFORMS-B"); |
2 | 1210 |
|
1211 |
/** |
|
7247 | 1212 |
* Constant for the "Halfwidth and Fullwidth Forms" Unicode character |
1213 |
* block. |
|
2 | 1214 |
* @since 1.2 |
1215 |
*/ |
|
1216 |
public static final UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS = |
|
1217 |
new UnicodeBlock("HALFWIDTH_AND_FULLWIDTH_FORMS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1218 |
"HALFWIDTH AND FULLWIDTH FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1219 |
"HALFWIDTHANDFULLWIDTHFORMS"); |
2 | 1220 |
|
1221 |
/** |
|
1222 |
* Constant for the "Specials" Unicode character block. |
|
1223 |
* @since 1.2 |
|
1224 |
*/ |
|
1225 |
public static final UnicodeBlock SPECIALS = |
|
1226 |
new UnicodeBlock("SPECIALS"); |
|
1227 |
||
1228 |
/** |
|
1229 |
* @deprecated As of J2SE 5, use {@link #HIGH_SURROGATES}, |
|
1230 |
* {@link #HIGH_PRIVATE_USE_SURROGATES}, and |
|
1231 |
* {@link #LOW_SURROGATES}. These new constants match |
|
1232 |
* the block definitions of the Unicode Standard. |
|
1233 |
* The {@link #of(char)} and {@link #of(int)} methods |
|
1234 |
* return the new constants, not SURROGATES_AREA. |
|
1235 |
*/ |
|
1236 |
@Deprecated |
|
1237 |
public static final UnicodeBlock SURROGATES_AREA = |
|
1238 |
new UnicodeBlock("SURROGATES_AREA"); |
|
1239 |
||
1240 |
/** |
|
1241 |
* Constant for the "Syriac" Unicode character block. |
|
1242 |
* @since 1.4 |
|
1243 |
*/ |
|
1244 |
public static final UnicodeBlock SYRIAC = |
|
1245 |
new UnicodeBlock("SYRIAC"); |
|
1246 |
||
1247 |
/** |
|
1248 |
* Constant for the "Thaana" Unicode character block. |
|
1249 |
* @since 1.4 |
|
1250 |
*/ |
|
1251 |
public static final UnicodeBlock THAANA = |
|
1252 |
new UnicodeBlock("THAANA"); |
|
1253 |
||
1254 |
/** |
|
1255 |
* Constant for the "Sinhala" Unicode character block. |
|
1256 |
* @since 1.4 |
|
1257 |
*/ |
|
1258 |
public static final UnicodeBlock SINHALA = |
|
1259 |
new UnicodeBlock("SINHALA"); |
|
1260 |
||
1261 |
/** |
|
1262 |
* Constant for the "Myanmar" Unicode character block. |
|
1263 |
* @since 1.4 |
|
1264 |
*/ |
|
1265 |
public static final UnicodeBlock MYANMAR = |
|
1266 |
new UnicodeBlock("MYANMAR"); |
|
1267 |
||
1268 |
/** |
|
1269 |
* Constant for the "Ethiopic" Unicode character block. |
|
1270 |
* @since 1.4 |
|
1271 |
*/ |
|
1272 |
public static final UnicodeBlock ETHIOPIC = |
|
1273 |
new UnicodeBlock("ETHIOPIC"); |
|
1274 |
||
1275 |
/** |
|
1276 |
* Constant for the "Cherokee" Unicode character block. |
|
1277 |
* @since 1.4 |
|
1278 |
*/ |
|
1279 |
public static final UnicodeBlock CHEROKEE = |
|
1280 |
new UnicodeBlock("CHEROKEE"); |
|
1281 |
||
1282 |
/** |
|
1283 |
* Constant for the "Unified Canadian Aboriginal Syllabics" Unicode character block. |
|
1284 |
* @since 1.4 |
|
1285 |
*/ |
|
1286 |
public static final UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = |
|
1287 |
new UnicodeBlock("UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1288 |
"UNIFIED CANADIAN ABORIGINAL SYLLABICS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1289 |
"UNIFIEDCANADIANABORIGINALSYLLABICS"); |
2 | 1290 |
|
1291 |
/** |
|
1292 |
* Constant for the "Ogham" Unicode character block. |
|
1293 |
* @since 1.4 |
|
1294 |
*/ |
|
1295 |
public static final UnicodeBlock OGHAM = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1296 |
new UnicodeBlock("OGHAM"); |
2 | 1297 |
|
1298 |
/** |
|
1299 |
* Constant for the "Runic" Unicode character block. |
|
1300 |
* @since 1.4 |
|
1301 |
*/ |
|
1302 |
public static final UnicodeBlock RUNIC = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1303 |
new UnicodeBlock("RUNIC"); |
2 | 1304 |
|
1305 |
/** |
|
1306 |
* Constant for the "Khmer" Unicode character block. |
|
1307 |
* @since 1.4 |
|
1308 |
*/ |
|
1309 |
public static final UnicodeBlock KHMER = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1310 |
new UnicodeBlock("KHMER"); |
2 | 1311 |
|
1312 |
/** |
|
1313 |
* Constant for the "Mongolian" Unicode character block. |
|
1314 |
* @since 1.4 |
|
1315 |
*/ |
|
1316 |
public static final UnicodeBlock MONGOLIAN = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1317 |
new UnicodeBlock("MONGOLIAN"); |
2 | 1318 |
|
1319 |
/** |
|
1320 |
* Constant for the "Braille Patterns" Unicode character block. |
|
1321 |
* @since 1.4 |
|
1322 |
*/ |
|
1323 |
public static final UnicodeBlock BRAILLE_PATTERNS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1324 |
new UnicodeBlock("BRAILLE_PATTERNS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1325 |
"BRAILLE PATTERNS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1326 |
"BRAILLEPATTERNS"); |
2 | 1327 |
|
1328 |
/** |
|
1329 |
* Constant for the "CJK Radicals Supplement" Unicode character block. |
|
1330 |
* @since 1.4 |
|
1331 |
*/ |
|
1332 |
public static final UnicodeBlock CJK_RADICALS_SUPPLEMENT = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1333 |
new UnicodeBlock("CJK_RADICALS_SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1334 |
"CJK RADICALS SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1335 |
"CJKRADICALSSUPPLEMENT"); |
2 | 1336 |
|
1337 |
/** |
|
1338 |
* Constant for the "Kangxi Radicals" Unicode character block. |
|
1339 |
* @since 1.4 |
|
1340 |
*/ |
|
1341 |
public static final UnicodeBlock KANGXI_RADICALS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1342 |
new UnicodeBlock("KANGXI_RADICALS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1343 |
"KANGXI RADICALS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1344 |
"KANGXIRADICALS"); |
2 | 1345 |
|
1346 |
/** |
|
1347 |
* Constant for the "Ideographic Description Characters" Unicode character block. |
|
1348 |
* @since 1.4 |
|
1349 |
*/ |
|
1350 |
public static final UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1351 |
new UnicodeBlock("IDEOGRAPHIC_DESCRIPTION_CHARACTERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1352 |
"IDEOGRAPHIC DESCRIPTION CHARACTERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1353 |
"IDEOGRAPHICDESCRIPTIONCHARACTERS"); |
2 | 1354 |
|
1355 |
/** |
|
1356 |
* Constant for the "Bopomofo Extended" Unicode character block. |
|
1357 |
* @since 1.4 |
|
1358 |
*/ |
|
1359 |
public static final UnicodeBlock BOPOMOFO_EXTENDED = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1360 |
new UnicodeBlock("BOPOMOFO_EXTENDED", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1361 |
"BOPOMOFO EXTENDED", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1362 |
"BOPOMOFOEXTENDED"); |
2 | 1363 |
|
1364 |
/** |
|
1365 |
* Constant for the "CJK Unified Ideographs Extension A" Unicode character block. |
|
1366 |
* @since 1.4 |
|
1367 |
*/ |
|
1368 |
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1369 |
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1370 |
"CJK UNIFIED IDEOGRAPHS EXTENSION A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1371 |
"CJKUNIFIEDIDEOGRAPHSEXTENSIONA"); |
2 | 1372 |
|
1373 |
/** |
|
1374 |
* Constant for the "Yi Syllables" Unicode character block. |
|
1375 |
* @since 1.4 |
|
1376 |
*/ |
|
1377 |
public static final UnicodeBlock YI_SYLLABLES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1378 |
new UnicodeBlock("YI_SYLLABLES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1379 |
"YI SYLLABLES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1380 |
"YISYLLABLES"); |
2 | 1381 |
|
1382 |
/** |
|
1383 |
* Constant for the "Yi Radicals" Unicode character block. |
|
1384 |
* @since 1.4 |
|
1385 |
*/ |
|
1386 |
public static final UnicodeBlock YI_RADICALS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1387 |
new UnicodeBlock("YI_RADICALS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1388 |
"YI RADICALS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1389 |
"YIRADICALS"); |
2 | 1390 |
|
1391 |
/** |
|
1392 |
* Constant for the "Cyrillic Supplementary" Unicode character block. |
|
1393 |
* @since 1.5 |
|
1394 |
*/ |
|
1395 |
public static final UnicodeBlock CYRILLIC_SUPPLEMENTARY = |
|
2497 | 1396 |
new UnicodeBlock("CYRILLIC_SUPPLEMENTARY", |
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1397 |
"CYRILLIC SUPPLEMENTARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1398 |
"CYRILLICSUPPLEMENTARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1399 |
"CYRILLIC SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1400 |
"CYRILLICSUPPLEMENT"); |
2 | 1401 |
|
1402 |
/** |
|
1403 |
* Constant for the "Tagalog" Unicode character block. |
|
1404 |
* @since 1.5 |
|
1405 |
*/ |
|
1406 |
public static final UnicodeBlock TAGALOG = |
|
1407 |
new UnicodeBlock("TAGALOG"); |
|
1408 |
||
1409 |
/** |
|
1410 |
* Constant for the "Hanunoo" Unicode character block. |
|
1411 |
* @since 1.5 |
|
1412 |
*/ |
|
1413 |
public static final UnicodeBlock HANUNOO = |
|
1414 |
new UnicodeBlock("HANUNOO"); |
|
1415 |
||
1416 |
/** |
|
1417 |
* Constant for the "Buhid" Unicode character block. |
|
1418 |
* @since 1.5 |
|
1419 |
*/ |
|
1420 |
public static final UnicodeBlock BUHID = |
|
1421 |
new UnicodeBlock("BUHID"); |
|
1422 |
||
1423 |
/** |
|
1424 |
* Constant for the "Tagbanwa" Unicode character block. |
|
1425 |
* @since 1.5 |
|
1426 |
*/ |
|
1427 |
public static final UnicodeBlock TAGBANWA = |
|
1428 |
new UnicodeBlock("TAGBANWA"); |
|
1429 |
||
1430 |
/** |
|
1431 |
* Constant for the "Limbu" Unicode character block. |
|
1432 |
* @since 1.5 |
|
1433 |
*/ |
|
1434 |
public static final UnicodeBlock LIMBU = |
|
1435 |
new UnicodeBlock("LIMBU"); |
|
1436 |
||
1437 |
/** |
|
1438 |
* Constant for the "Tai Le" Unicode character block. |
|
1439 |
* @since 1.5 |
|
1440 |
*/ |
|
1441 |
public static final UnicodeBlock TAI_LE = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1442 |
new UnicodeBlock("TAI_LE", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1443 |
"TAI LE", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1444 |
"TAILE"); |
2 | 1445 |
|
1446 |
/** |
|
1447 |
* Constant for the "Khmer Symbols" Unicode character block. |
|
1448 |
* @since 1.5 |
|
1449 |
*/ |
|
1450 |
public static final UnicodeBlock KHMER_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1451 |
new UnicodeBlock("KHMER_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1452 |
"KHMER SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1453 |
"KHMERSYMBOLS"); |
2 | 1454 |
|
1455 |
/** |
|
1456 |
* Constant for the "Phonetic Extensions" Unicode character block. |
|
1457 |
* @since 1.5 |
|
1458 |
*/ |
|
1459 |
public static final UnicodeBlock PHONETIC_EXTENSIONS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1460 |
new UnicodeBlock("PHONETIC_EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1461 |
"PHONETIC EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1462 |
"PHONETICEXTENSIONS"); |
2 | 1463 |
|
1464 |
/** |
|
1465 |
* Constant for the "Miscellaneous Mathematical Symbols-A" Unicode character block. |
|
1466 |
* @since 1.5 |
|
1467 |
*/ |
|
1468 |
public static final UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = |
|
1469 |
new UnicodeBlock("MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1470 |
"MISCELLANEOUS MATHEMATICAL SYMBOLS-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1471 |
"MISCELLANEOUSMATHEMATICALSYMBOLS-A"); |
2 | 1472 |
|
1473 |
/** |
|
1474 |
* Constant for the "Supplemental Arrows-A" Unicode character block. |
|
1475 |
* @since 1.5 |
|
1476 |
*/ |
|
1477 |
public static final UnicodeBlock SUPPLEMENTAL_ARROWS_A = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1478 |
new UnicodeBlock("SUPPLEMENTAL_ARROWS_A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1479 |
"SUPPLEMENTAL ARROWS-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1480 |
"SUPPLEMENTALARROWS-A"); |
2 | 1481 |
|
1482 |
/** |
|
1483 |
* Constant for the "Supplemental Arrows-B" Unicode character block. |
|
1484 |
* @since 1.5 |
|
1485 |
*/ |
|
1486 |
public static final UnicodeBlock SUPPLEMENTAL_ARROWS_B = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1487 |
new UnicodeBlock("SUPPLEMENTAL_ARROWS_B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1488 |
"SUPPLEMENTAL ARROWS-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1489 |
"SUPPLEMENTALARROWS-B"); |
2 | 1490 |
|
1491 |
/** |
|
7247 | 1492 |
* Constant for the "Miscellaneous Mathematical Symbols-B" Unicode |
1493 |
* character block. |
|
2 | 1494 |
* @since 1.5 |
1495 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1496 |
public static final UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1497 |
new UnicodeBlock("MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1498 |
"MISCELLANEOUS MATHEMATICAL SYMBOLS-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1499 |
"MISCELLANEOUSMATHEMATICALSYMBOLS-B"); |
2 | 1500 |
|
1501 |
/** |
|
7247 | 1502 |
* Constant for the "Supplemental Mathematical Operators" Unicode |
1503 |
* character block. |
|
2 | 1504 |
* @since 1.5 |
1505 |
*/ |
|
1506 |
public static final UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS = |
|
1507 |
new UnicodeBlock("SUPPLEMENTAL_MATHEMATICAL_OPERATORS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1508 |
"SUPPLEMENTAL MATHEMATICAL OPERATORS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1509 |
"SUPPLEMENTALMATHEMATICALOPERATORS"); |
2 | 1510 |
|
1511 |
/** |
|
7247 | 1512 |
* Constant for the "Miscellaneous Symbols and Arrows" Unicode character |
1513 |
* block. |
|
2 | 1514 |
* @since 1.5 |
1515 |
*/ |
|
1516 |
public static final UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1517 |
new UnicodeBlock("MISCELLANEOUS_SYMBOLS_AND_ARROWS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1518 |
"MISCELLANEOUS SYMBOLS AND ARROWS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1519 |
"MISCELLANEOUSSYMBOLSANDARROWS"); |
2 | 1520 |
|
1521 |
/** |
|
7247 | 1522 |
* Constant for the "Katakana Phonetic Extensions" Unicode character |
1523 |
* block. |
|
2 | 1524 |
* @since 1.5 |
1525 |
*/ |
|
1526 |
public static final UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1527 |
new UnicodeBlock("KATAKANA_PHONETIC_EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1528 |
"KATAKANA PHONETIC EXTENSIONS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1529 |
"KATAKANAPHONETICEXTENSIONS"); |
2 | 1530 |
|
1531 |
/** |
|
1532 |
* Constant for the "Yijing Hexagram Symbols" Unicode character block. |
|
1533 |
* @since 1.5 |
|
1534 |
*/ |
|
1535 |
public static final UnicodeBlock YIJING_HEXAGRAM_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1536 |
new UnicodeBlock("YIJING_HEXAGRAM_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1537 |
"YIJING HEXAGRAM SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1538 |
"YIJINGHEXAGRAMSYMBOLS"); |
2 | 1539 |
|
1540 |
/** |
|
1541 |
* Constant for the "Variation Selectors" Unicode character block. |
|
1542 |
* @since 1.5 |
|
1543 |
*/ |
|
1544 |
public static final UnicodeBlock VARIATION_SELECTORS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1545 |
new UnicodeBlock("VARIATION_SELECTORS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1546 |
"VARIATION SELECTORS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1547 |
"VARIATIONSELECTORS"); |
2 | 1548 |
|
1549 |
/** |
|
1550 |
* Constant for the "Linear B Syllabary" Unicode character block. |
|
1551 |
* @since 1.5 |
|
1552 |
*/ |
|
1553 |
public static final UnicodeBlock LINEAR_B_SYLLABARY = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1554 |
new UnicodeBlock("LINEAR_B_SYLLABARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1555 |
"LINEAR B SYLLABARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1556 |
"LINEARBSYLLABARY"); |
2 | 1557 |
|
1558 |
/** |
|
1559 |
* Constant for the "Linear B Ideograms" Unicode character block. |
|
1560 |
* @since 1.5 |
|
1561 |
*/ |
|
1562 |
public static final UnicodeBlock LINEAR_B_IDEOGRAMS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1563 |
new UnicodeBlock("LINEAR_B_IDEOGRAMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1564 |
"LINEAR B IDEOGRAMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1565 |
"LINEARBIDEOGRAMS"); |
2 | 1566 |
|
1567 |
/** |
|
1568 |
* Constant for the "Aegean Numbers" Unicode character block. |
|
1569 |
* @since 1.5 |
|
1570 |
*/ |
|
1571 |
public static final UnicodeBlock AEGEAN_NUMBERS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1572 |
new UnicodeBlock("AEGEAN_NUMBERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1573 |
"AEGEAN NUMBERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1574 |
"AEGEANNUMBERS"); |
2 | 1575 |
|
1576 |
/** |
|
1577 |
* Constant for the "Old Italic" Unicode character block. |
|
1578 |
* @since 1.5 |
|
1579 |
*/ |
|
1580 |
public static final UnicodeBlock OLD_ITALIC = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1581 |
new UnicodeBlock("OLD_ITALIC", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1582 |
"OLD ITALIC", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1583 |
"OLDITALIC"); |
2 | 1584 |
|
1585 |
/** |
|
1586 |
* Constant for the "Gothic" Unicode character block. |
|
1587 |
* @since 1.5 |
|
1588 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1589 |
public static final UnicodeBlock GOTHIC = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1590 |
new UnicodeBlock("GOTHIC"); |
2 | 1591 |
|
1592 |
/** |
|
1593 |
* Constant for the "Ugaritic" Unicode character block. |
|
1594 |
* @since 1.5 |
|
1595 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1596 |
public static final UnicodeBlock UGARITIC = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1597 |
new UnicodeBlock("UGARITIC"); |
2 | 1598 |
|
1599 |
/** |
|
1600 |
* Constant for the "Deseret" Unicode character block. |
|
1601 |
* @since 1.5 |
|
1602 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1603 |
public static final UnicodeBlock DESERET = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1604 |
new UnicodeBlock("DESERET"); |
2 | 1605 |
|
1606 |
/** |
|
1607 |
* Constant for the "Shavian" Unicode character block. |
|
1608 |
* @since 1.5 |
|
1609 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1610 |
public static final UnicodeBlock SHAVIAN = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1611 |
new UnicodeBlock("SHAVIAN"); |
2 | 1612 |
|
1613 |
/** |
|
1614 |
* Constant for the "Osmanya" Unicode character block. |
|
1615 |
* @since 1.5 |
|
1616 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1617 |
public static final UnicodeBlock OSMANYA = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1618 |
new UnicodeBlock("OSMANYA"); |
2 | 1619 |
|
1620 |
/** |
|
1621 |
* Constant for the "Cypriot Syllabary" Unicode character block. |
|
1622 |
* @since 1.5 |
|
1623 |
*/ |
|
1624 |
public static final UnicodeBlock CYPRIOT_SYLLABARY = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1625 |
new UnicodeBlock("CYPRIOT_SYLLABARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1626 |
"CYPRIOT SYLLABARY", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1627 |
"CYPRIOTSYLLABARY"); |
2 | 1628 |
|
1629 |
/** |
|
1630 |
* Constant for the "Byzantine Musical Symbols" Unicode character block. |
|
1631 |
* @since 1.5 |
|
1632 |
*/ |
|
1633 |
public static final UnicodeBlock BYZANTINE_MUSICAL_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1634 |
new UnicodeBlock("BYZANTINE_MUSICAL_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1635 |
"BYZANTINE MUSICAL SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1636 |
"BYZANTINEMUSICALSYMBOLS"); |
2 | 1637 |
|
1638 |
/** |
|
1639 |
* Constant for the "Musical Symbols" Unicode character block. |
|
1640 |
* @since 1.5 |
|
1641 |
*/ |
|
1642 |
public static final UnicodeBlock MUSICAL_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1643 |
new UnicodeBlock("MUSICAL_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1644 |
"MUSICAL SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1645 |
"MUSICALSYMBOLS"); |
2 | 1646 |
|
1647 |
/** |
|
1648 |
* Constant for the "Tai Xuan Jing Symbols" Unicode character block. |
|
1649 |
* @since 1.5 |
|
1650 |
*/ |
|
1651 |
public static final UnicodeBlock TAI_XUAN_JING_SYMBOLS = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1652 |
new UnicodeBlock("TAI_XUAN_JING_SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1653 |
"TAI XUAN JING SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1654 |
"TAIXUANJINGSYMBOLS"); |
2 | 1655 |
|
1656 |
/** |
|
7247 | 1657 |
* Constant for the "Mathematical Alphanumeric Symbols" Unicode |
1658 |
* character block. |
|
2 | 1659 |
* @since 1.5 |
1660 |
*/ |
|
1661 |
public static final UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS = |
|
1662 |
new UnicodeBlock("MATHEMATICAL_ALPHANUMERIC_SYMBOLS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1663 |
"MATHEMATICAL ALPHANUMERIC SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1664 |
"MATHEMATICALALPHANUMERICSYMBOLS"); |
2 | 1665 |
|
1666 |
/** |
|
7247 | 1667 |
* Constant for the "CJK Unified Ideographs Extension B" Unicode |
1668 |
* character block. |
|
2 | 1669 |
* @since 1.5 |
1670 |
*/ |
|
1671 |
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = |
|
1672 |
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1673 |
"CJK UNIFIED IDEOGRAPHS EXTENSION B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1674 |
"CJKUNIFIEDIDEOGRAPHSEXTENSIONB"); |
2 | 1675 |
|
1676 |
/** |
|
1677 |
* Constant for the "CJK Compatibility Ideographs Supplement" Unicode character block. |
|
1678 |
* @since 1.5 |
|
1679 |
*/ |
|
1680 |
public static final UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = |
|
1681 |
new UnicodeBlock("CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1682 |
"CJK COMPATIBILITY IDEOGRAPHS SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1683 |
"CJKCOMPATIBILITYIDEOGRAPHSSUPPLEMENT"); |
2 | 1684 |
|
1685 |
/** |
|
1686 |
* Constant for the "Tags" Unicode character block. |
|
1687 |
* @since 1.5 |
|
1688 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1689 |
public static final UnicodeBlock TAGS = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1690 |
new UnicodeBlock("TAGS"); |
2 | 1691 |
|
1692 |
/** |
|
7247 | 1693 |
* Constant for the "Variation Selectors Supplement" Unicode character |
1694 |
* block. |
|
2 | 1695 |
* @since 1.5 |
1696 |
*/ |
|
1697 |
public static final UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1698 |
new UnicodeBlock("VARIATION_SELECTORS_SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1699 |
"VARIATION SELECTORS SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1700 |
"VARIATIONSELECTORSSUPPLEMENT"); |
2 | 1701 |
|
1702 |
/** |
|
7247 | 1703 |
* Constant for the "Supplementary Private Use Area-A" Unicode character |
1704 |
* block. |
|
2 | 1705 |
* @since 1.5 |
1706 |
*/ |
|
1707 |
public static final UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A = |
|
1708 |
new UnicodeBlock("SUPPLEMENTARY_PRIVATE_USE_AREA_A", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1709 |
"SUPPLEMENTARY PRIVATE USE AREA-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1710 |
"SUPPLEMENTARYPRIVATEUSEAREA-A"); |
2 | 1711 |
|
1712 |
/** |
|
7247 | 1713 |
* Constant for the "Supplementary Private Use Area-B" Unicode character |
1714 |
* block. |
|
2 | 1715 |
* @since 1.5 |
1716 |
*/ |
|
1717 |
public static final UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B = |
|
1718 |
new UnicodeBlock("SUPPLEMENTARY_PRIVATE_USE_AREA_B", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1719 |
"SUPPLEMENTARY PRIVATE USE AREA-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1720 |
"SUPPLEMENTARYPRIVATEUSEAREA-B"); |
2 | 1721 |
|
1722 |
/** |
|
1723 |
* Constant for the "High Surrogates" Unicode character block. |
|
1724 |
* This block represents codepoint values in the high surrogate |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1725 |
* range: U+D800 through U+DB7F |
2 | 1726 |
* |
1727 |
* @since 1.5 |
|
1728 |
*/ |
|
1729 |
public static final UnicodeBlock HIGH_SURROGATES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1730 |
new UnicodeBlock("HIGH_SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1731 |
"HIGH SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1732 |
"HIGHSURROGATES"); |
2 | 1733 |
|
1734 |
/** |
|
7247 | 1735 |
* Constant for the "High Private Use Surrogates" Unicode character |
1736 |
* block. |
|
1737 |
* This block represents codepoint values in the private use high |
|
1738 |
* surrogate range: U+DB80 through U+DBFF |
|
2 | 1739 |
* |
1740 |
* @since 1.5 |
|
1741 |
*/ |
|
1742 |
public static final UnicodeBlock HIGH_PRIVATE_USE_SURROGATES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1743 |
new UnicodeBlock("HIGH_PRIVATE_USE_SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1744 |
"HIGH PRIVATE USE SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1745 |
"HIGHPRIVATEUSESURROGATES"); |
2 | 1746 |
|
1747 |
/** |
|
1748 |
* Constant for the "Low Surrogates" Unicode character block. |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1749 |
* This block represents codepoint values in the low surrogate |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1750 |
* range: U+DC00 through U+DFFF |
2 | 1751 |
* |
1752 |
* @since 1.5 |
|
1753 |
*/ |
|
1754 |
public static final UnicodeBlock LOW_SURROGATES = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1755 |
new UnicodeBlock("LOW_SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1756 |
"LOW SURROGATES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1757 |
"LOWSURROGATES"); |
2 | 1758 |
|
2497 | 1759 |
/** |
1760 |
* Constant for the "Arabic Supplement" Unicode character block. |
|
1761 |
* @since 1.7 |
|
1762 |
*/ |
|
1763 |
public static final UnicodeBlock ARABIC_SUPPLEMENT = |
|
1764 |
new UnicodeBlock("ARABIC_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1765 |
"ARABIC SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1766 |
"ARABICSUPPLEMENT"); |
2497 | 1767 |
|
1768 |
/** |
|
1769 |
* Constant for the "NKo" Unicode character block. |
|
1770 |
* @since 1.7 |
|
1771 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1772 |
public static final UnicodeBlock NKO = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1773 |
new UnicodeBlock("NKO"); |
2497 | 1774 |
|
1775 |
/** |
|
7247 | 1776 |
* Constant for the "Samaritan" Unicode character block. |
1777 |
* @since 1.7 |
|
1778 |
*/ |
|
1779 |
public static final UnicodeBlock SAMARITAN = |
|
1780 |
new UnicodeBlock("SAMARITAN"); |
|
1781 |
||
1782 |
/** |
|
1783 |
* Constant for the "Mandaic" Unicode character block. |
|
1784 |
* @since 1.7 |
|
1785 |
*/ |
|
1786 |
public static final UnicodeBlock MANDAIC = |
|
1787 |
new UnicodeBlock("MANDAIC"); |
|
1788 |
||
1789 |
/** |
|
2497 | 1790 |
* Constant for the "Ethiopic Supplement" Unicode character block. |
1791 |
* @since 1.7 |
|
1792 |
*/ |
|
1793 |
public static final UnicodeBlock ETHIOPIC_SUPPLEMENT = |
|
1794 |
new UnicodeBlock("ETHIOPIC_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1795 |
"ETHIOPIC SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1796 |
"ETHIOPICSUPPLEMENT"); |
2497 | 1797 |
|
1798 |
/** |
|
7247 | 1799 |
* Constant for the "Unified Canadian Aboriginal Syllabics Extended" |
1800 |
* Unicode character block. |
|
1801 |
* @since 1.7 |
|
1802 |
*/ |
|
1803 |
public static final UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = |
|
1804 |
new UnicodeBlock("UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED", |
|
1805 |
"UNIFIED CANADIAN ABORIGINAL SYLLABICS EXTENDED", |
|
1806 |
"UNIFIEDCANADIANABORIGINALSYLLABICSEXTENDED"); |
|
1807 |
||
1808 |
/** |
|
2497 | 1809 |
* Constant for the "New Tai Lue" Unicode character block. |
1810 |
* @since 1.7 |
|
1811 |
*/ |
|
1812 |
public static final UnicodeBlock NEW_TAI_LUE = |
|
1813 |
new UnicodeBlock("NEW_TAI_LUE", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1814 |
"NEW TAI LUE", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1815 |
"NEWTAILUE"); |
2497 | 1816 |
|
1817 |
/** |
|
1818 |
* Constant for the "Buginese" Unicode character block. |
|
1819 |
* @since 1.7 |
|
1820 |
*/ |
|
1821 |
public static final UnicodeBlock BUGINESE = |
|
1822 |
new UnicodeBlock("BUGINESE"); |
|
1823 |
||
1824 |
/** |
|
7247 | 1825 |
* Constant for the "Tai Tham" Unicode character block. |
1826 |
* @since 1.7 |
|
1827 |
*/ |
|
1828 |
public static final UnicodeBlock TAI_THAM = |
|
1829 |
new UnicodeBlock("TAI_THAM", |
|
1830 |
"TAI THAM", |
|
1831 |
"TAITHAM"); |
|
1832 |
||
1833 |
/** |
|
2497 | 1834 |
* Constant for the "Balinese" Unicode character block. |
1835 |
* @since 1.7 |
|
1836 |
*/ |
|
1837 |
public static final UnicodeBlock BALINESE = |
|
1838 |
new UnicodeBlock("BALINESE"); |
|
1839 |
||
1840 |
/** |
|
1841 |
* Constant for the "Sundanese" Unicode character block. |
|
1842 |
* @since 1.7 |
|
1843 |
*/ |
|
1844 |
public static final UnicodeBlock SUNDANESE = |
|
1845 |
new UnicodeBlock("SUNDANESE"); |
|
1846 |
||
1847 |
/** |
|
7247 | 1848 |
* Constant for the "Batak" Unicode character block. |
1849 |
* @since 1.7 |
|
1850 |
*/ |
|
1851 |
public static final UnicodeBlock BATAK = |
|
1852 |
new UnicodeBlock("BATAK"); |
|
1853 |
||
1854 |
/** |
|
2497 | 1855 |
* Constant for the "Lepcha" Unicode character block. |
1856 |
* @since 1.7 |
|
1857 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1858 |
public static final UnicodeBlock LEPCHA = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1859 |
new UnicodeBlock("LEPCHA"); |
2497 | 1860 |
|
1861 |
/** |
|
1862 |
* Constant for the "Ol Chiki" Unicode character block. |
|
1863 |
* @since 1.7 |
|
1864 |
*/ |
|
1865 |
public static final UnicodeBlock OL_CHIKI = |
|
1866 |
new UnicodeBlock("OL_CHIKI", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1867 |
"OL CHIKI", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1868 |
"OLCHIKI"); |
2497 | 1869 |
|
1870 |
/** |
|
7247 | 1871 |
* Constant for the "Vedic Extensions" Unicode character block. |
1872 |
* @since 1.7 |
|
1873 |
*/ |
|
1874 |
public static final UnicodeBlock VEDIC_EXTENSIONS = |
|
1875 |
new UnicodeBlock("VEDIC_EXTENSIONS", |
|
1876 |
"VEDIC EXTENSIONS", |
|
1877 |
"VEDICEXTENSIONS"); |
|
1878 |
||
1879 |
/** |
|
2497 | 1880 |
* Constant for the "Phonetic Extensions Supplement" Unicode character |
1881 |
* block. |
|
1882 |
* @since 1.7 |
|
1883 |
*/ |
|
1884 |
public static final UnicodeBlock PHONETIC_EXTENSIONS_SUPPLEMENT = |
|
1885 |
new UnicodeBlock("PHONETIC_EXTENSIONS_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1886 |
"PHONETIC EXTENSIONS SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1887 |
"PHONETICEXTENSIONSSUPPLEMENT"); |
2497 | 1888 |
|
1889 |
/** |
|
1890 |
* Constant for the "Combining Diacritical Marks Supplement" Unicode |
|
1891 |
* character block. |
|
1892 |
* @since 1.7 |
|
1893 |
*/ |
|
1894 |
public static final UnicodeBlock COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = |
|
1895 |
new UnicodeBlock("COMBINING_DIACRITICAL_MARKS_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1896 |
"COMBINING DIACRITICAL MARKS SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1897 |
"COMBININGDIACRITICALMARKSSUPPLEMENT"); |
2497 | 1898 |
|
1899 |
/** |
|
1900 |
* Constant for the "Glagolitic" Unicode character block. |
|
1901 |
* @since 1.7 |
|
1902 |
*/ |
|
1903 |
public static final UnicodeBlock GLAGOLITIC = |
|
1904 |
new UnicodeBlock("GLAGOLITIC"); |
|
1905 |
||
1906 |
/** |
|
1907 |
* Constant for the "Latin Extended-C" Unicode character block. |
|
1908 |
* @since 1.7 |
|
1909 |
*/ |
|
1910 |
public static final UnicodeBlock LATIN_EXTENDED_C = |
|
1911 |
new UnicodeBlock("LATIN_EXTENDED_C", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1912 |
"LATIN EXTENDED-C", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1913 |
"LATINEXTENDED-C"); |
2497 | 1914 |
|
1915 |
/** |
|
1916 |
* Constant for the "Coptic" Unicode character block. |
|
1917 |
* @since 1.7 |
|
1918 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1919 |
public static final UnicodeBlock COPTIC = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1920 |
new UnicodeBlock("COPTIC"); |
2497 | 1921 |
|
1922 |
/** |
|
1923 |
* Constant for the "Georgian Supplement" Unicode character block. |
|
1924 |
* @since 1.7 |
|
1925 |
*/ |
|
1926 |
public static final UnicodeBlock GEORGIAN_SUPPLEMENT = |
|
1927 |
new UnicodeBlock("GEORGIAN_SUPPLEMENT", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1928 |
"GEORGIAN SUPPLEMENT", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1929 |
"GEORGIANSUPPLEMENT"); |
2497 | 1930 |
|
1931 |
/** |
|
1932 |
* Constant for the "Tifinagh" Unicode character block. |
|
1933 |
* @since 1.7 |
|
1934 |
*/ |
|
1935 |
public static final UnicodeBlock TIFINAGH = |
|
1936 |
new UnicodeBlock("TIFINAGH"); |
|
1937 |
||
1938 |
/** |
|
1939 |
* Constant for the "Ethiopic Extended" Unicode character block. |
|
1940 |
* @since 1.7 |
|
1941 |
*/ |
|
1942 |
public static final UnicodeBlock ETHIOPIC_EXTENDED = |
|
1943 |
new UnicodeBlock("ETHIOPIC_EXTENDED", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1944 |
"ETHIOPIC EXTENDED", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1945 |
"ETHIOPICEXTENDED"); |
2497 | 1946 |
|
1947 |
/** |
|
1948 |
* Constant for the "Cyrillic Extended-A" Unicode character block. |
|
1949 |
* @since 1.7 |
|
1950 |
*/ |
|
1951 |
public static final UnicodeBlock CYRILLIC_EXTENDED_A = |
|
1952 |
new UnicodeBlock("CYRILLIC_EXTENDED_A", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1953 |
"CYRILLIC EXTENDED-A", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1954 |
"CYRILLICEXTENDED-A"); |
2497 | 1955 |
|
1956 |
/** |
|
1957 |
* Constant for the "Supplemental Punctuation" Unicode character block. |
|
1958 |
* @since 1.7 |
|
1959 |
*/ |
|
1960 |
public static final UnicodeBlock SUPPLEMENTAL_PUNCTUATION = |
|
1961 |
new UnicodeBlock("SUPPLEMENTAL_PUNCTUATION", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1962 |
"SUPPLEMENTAL PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1963 |
"SUPPLEMENTALPUNCTUATION"); |
2497 | 1964 |
|
1965 |
/** |
|
1966 |
* Constant for the "CJK Strokes" Unicode character block. |
|
1967 |
* @since 1.7 |
|
1968 |
*/ |
|
1969 |
public static final UnicodeBlock CJK_STROKES = |
|
1970 |
new UnicodeBlock("CJK_STROKES", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1971 |
"CJK STROKES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1972 |
"CJKSTROKES"); |
2497 | 1973 |
|
1974 |
/** |
|
7247 | 1975 |
* Constant for the "Lisu" Unicode character block. |
1976 |
* @since 1.7 |
|
1977 |
*/ |
|
1978 |
public static final UnicodeBlock LISU = |
|
1979 |
new UnicodeBlock("LISU"); |
|
1980 |
||
1981 |
/** |
|
2497 | 1982 |
* Constant for the "Vai" Unicode character block. |
1983 |
* @since 1.7 |
|
1984 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1985 |
public static final UnicodeBlock VAI = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1986 |
new UnicodeBlock("VAI"); |
2497 | 1987 |
|
1988 |
/** |
|
1989 |
* Constant for the "Cyrillic Extended-B" Unicode character block. |
|
1990 |
* @since 1.7 |
|
1991 |
*/ |
|
1992 |
public static final UnicodeBlock CYRILLIC_EXTENDED_B = |
|
1993 |
new UnicodeBlock("CYRILLIC_EXTENDED_B", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1994 |
"CYRILLIC EXTENDED-B", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
1995 |
"CYRILLICEXTENDED-B"); |
2497 | 1996 |
|
1997 |
/** |
|
7247 | 1998 |
* Constant for the "Bamum" Unicode character block. |
1999 |
* @since 1.7 |
|
2000 |
*/ |
|
2001 |
public static final UnicodeBlock BAMUM = |
|
2002 |
new UnicodeBlock("BAMUM"); |
|
2003 |
||
2004 |
/** |
|
2497 | 2005 |
* Constant for the "Modifier Tone Letters" Unicode character block. |
2006 |
* @since 1.7 |
|
2007 |
*/ |
|
2008 |
public static final UnicodeBlock MODIFIER_TONE_LETTERS = |
|
2009 |
new UnicodeBlock("MODIFIER_TONE_LETTERS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2010 |
"MODIFIER TONE LETTERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2011 |
"MODIFIERTONELETTERS"); |
2497 | 2012 |
|
2013 |
/** |
|
2014 |
* Constant for the "Latin Extended-D" Unicode character block. |
|
2015 |
* @since 1.7 |
|
2016 |
*/ |
|
2017 |
public static final UnicodeBlock LATIN_EXTENDED_D = |
|
2018 |
new UnicodeBlock("LATIN_EXTENDED_D", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2019 |
"LATIN EXTENDED-D", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2020 |
"LATINEXTENDED-D"); |
2497 | 2021 |
|
2022 |
/** |
|
2023 |
* Constant for the "Syloti Nagri" Unicode character block. |
|
2024 |
* @since 1.7 |
|
2025 |
*/ |
|
2026 |
public static final UnicodeBlock SYLOTI_NAGRI = |
|
2027 |
new UnicodeBlock("SYLOTI_NAGRI", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2028 |
"SYLOTI NAGRI", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2029 |
"SYLOTINAGRI"); |
2497 | 2030 |
|
2031 |
/** |
|
7247 | 2032 |
* Constant for the "Common Indic Number Forms" Unicode character block. |
2033 |
* @since 1.7 |
|
2034 |
*/ |
|
2035 |
public static final UnicodeBlock COMMON_INDIC_NUMBER_FORMS = |
|
2036 |
new UnicodeBlock("COMMON_INDIC_NUMBER_FORMS", |
|
2037 |
"COMMON INDIC NUMBER FORMS", |
|
2038 |
"COMMONINDICNUMBERFORMS"); |
|
2039 |
||
2040 |
/** |
|
2497 | 2041 |
* Constant for the "Phags-pa" Unicode character block. |
2042 |
* @since 1.7 |
|
2043 |
*/ |
|
2044 |
public static final UnicodeBlock PHAGS_PA = |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2045 |
new UnicodeBlock("PHAGS_PA", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2046 |
"PHAGS-PA"); |
2497 | 2047 |
|
2048 |
/** |
|
2049 |
* Constant for the "Saurashtra" Unicode character block. |
|
2050 |
* @since 1.7 |
|
2051 |
*/ |
|
2052 |
public static final UnicodeBlock SAURASHTRA = |
|
2053 |
new UnicodeBlock("SAURASHTRA"); |
|
2054 |
||
2055 |
/** |
|
7247 | 2056 |
* Constant for the "Devanagari Extended" Unicode character block. |
2057 |
* @since 1.7 |
|
2058 |
*/ |
|
2059 |
public static final UnicodeBlock DEVANAGARI_EXTENDED = |
|
2060 |
new UnicodeBlock("DEVANAGARI_EXTENDED", |
|
2061 |
"DEVANAGARI EXTENDED", |
|
2062 |
"DEVANAGARIEXTENDED"); |
|
2063 |
||
2064 |
/** |
|
2497 | 2065 |
* Constant for the "Kayah Li" Unicode character block. |
2066 |
* @since 1.7 |
|
2067 |
*/ |
|
2068 |
public static final UnicodeBlock KAYAH_LI = |
|
2069 |
new UnicodeBlock("KAYAH_LI", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2070 |
"KAYAH LI", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2071 |
"KAYAHLI"); |
2497 | 2072 |
|
2073 |
/** |
|
2074 |
* Constant for the "Rejang" Unicode character block. |
|
2075 |
* @since 1.7 |
|
2076 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2077 |
public static final UnicodeBlock REJANG = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2078 |
new UnicodeBlock("REJANG"); |
2497 | 2079 |
|
2080 |
/** |
|
7247 | 2081 |
* Constant for the "Hangul Jamo Extended-A" Unicode character block. |
2082 |
* @since 1.7 |
|
2083 |
*/ |
|
2084 |
public static final UnicodeBlock HANGUL_JAMO_EXTENDED_A = |
|
2085 |
new UnicodeBlock("HANGUL_JAMO_EXTENDED_A", |
|
2086 |
"HANGUL JAMO EXTENDED-A", |
|
2087 |
"HANGULJAMOEXTENDED-A"); |
|
2088 |
||
2089 |
/** |
|
2090 |
* Constant for the "Javanese" Unicode character block. |
|
2091 |
* @since 1.7 |
|
2092 |
*/ |
|
2093 |
public static final UnicodeBlock JAVANESE = |
|
2094 |
new UnicodeBlock("JAVANESE"); |
|
2095 |
||
2096 |
/** |
|
2497 | 2097 |
* Constant for the "Cham" Unicode character block. |
2098 |
* @since 1.7 |
|
2099 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2100 |
public static final UnicodeBlock CHAM = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2101 |
new UnicodeBlock("CHAM"); |
2497 | 2102 |
|
2103 |
/** |
|
7247 | 2104 |
* Constant for the "Myanmar Extended-A" Unicode character block. |
2105 |
* @since 1.7 |
|
2106 |
*/ |
|
2107 |
public static final UnicodeBlock MYANMAR_EXTENDED_A = |
|
2108 |
new UnicodeBlock("MYANMAR_EXTENDED_A", |
|
2109 |
"MYANMAR EXTENDED-A", |
|
2110 |
"MYANMAREXTENDED-A"); |
|
2111 |
||
2112 |
/** |
|
2113 |
* Constant for the "Tai Viet" Unicode character block. |
|
2114 |
* @since 1.7 |
|
2115 |
*/ |
|
2116 |
public static final UnicodeBlock TAI_VIET = |
|
2117 |
new UnicodeBlock("TAI_VIET", |
|
2118 |
"TAI VIET", |
|
2119 |
"TAIVIET"); |
|
2120 |
||
2121 |
/** |
|
2122 |
* Constant for the "Ethiopic Extended-A" Unicode character block. |
|
2123 |
* @since 1.7 |
|
2124 |
*/ |
|
2125 |
public static final UnicodeBlock ETHIOPIC_EXTENDED_A = |
|
2126 |
new UnicodeBlock("ETHIOPIC_EXTENDED_A", |
|
2127 |
"ETHIOPIC EXTENDED-A", |
|
2128 |
"ETHIOPICEXTENDED-A"); |
|
2129 |
||
2130 |
/** |
|
2131 |
* Constant for the "Meetei Mayek" Unicode character block. |
|
2132 |
* @since 1.7 |
|
2133 |
*/ |
|
2134 |
public static final UnicodeBlock MEETEI_MAYEK = |
|
2135 |
new UnicodeBlock("MEETEI_MAYEK", |
|
2136 |
"MEETEI MAYEK", |
|
2137 |
"MEETEIMAYEK"); |
|
2138 |
||
2139 |
/** |
|
2140 |
* Constant for the "Hangul Jamo Extended-B" Unicode character block. |
|
2141 |
* @since 1.7 |
|
2142 |
*/ |
|
2143 |
public static final UnicodeBlock HANGUL_JAMO_EXTENDED_B = |
|
2144 |
new UnicodeBlock("HANGUL_JAMO_EXTENDED_B", |
|
2145 |
"HANGUL JAMO EXTENDED-B", |
|
2146 |
"HANGULJAMOEXTENDED-B"); |
|
2147 |
||
2148 |
/** |
|
2497 | 2149 |
* Constant for the "Vertical Forms" Unicode character block. |
2150 |
* @since 1.7 |
|
2151 |
*/ |
|
2152 |
public static final UnicodeBlock VERTICAL_FORMS = |
|
2153 |
new UnicodeBlock("VERTICAL_FORMS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2154 |
"VERTICAL FORMS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2155 |
"VERTICALFORMS"); |
2497 | 2156 |
|
2157 |
/** |
|
2158 |
* Constant for the "Ancient Greek Numbers" Unicode character block. |
|
2159 |
* @since 1.7 |
|
2160 |
*/ |
|
2161 |
public static final UnicodeBlock ANCIENT_GREEK_NUMBERS = |
|
2162 |
new UnicodeBlock("ANCIENT_GREEK_NUMBERS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2163 |
"ANCIENT GREEK NUMBERS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2164 |
"ANCIENTGREEKNUMBERS"); |
2497 | 2165 |
|
2166 |
/** |
|
2167 |
* Constant for the "Ancient Symbols" Unicode character block. |
|
2168 |
* @since 1.7 |
|
2169 |
*/ |
|
2170 |
public static final UnicodeBlock ANCIENT_SYMBOLS = |
|
2171 |
new UnicodeBlock("ANCIENT_SYMBOLS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2172 |
"ANCIENT SYMBOLS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2173 |
"ANCIENTSYMBOLS"); |
2497 | 2174 |
|
2175 |
/** |
|
2176 |
* Constant for the "Phaistos Disc" Unicode character block. |
|
2177 |
* @since 1.7 |
|
2178 |
*/ |
|
2179 |
public static final UnicodeBlock PHAISTOS_DISC = |
|
2180 |
new UnicodeBlock("PHAISTOS_DISC", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2181 |
"PHAISTOS DISC", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2182 |
"PHAISTOSDISC"); |
2497 | 2183 |
|
2184 |
/** |
|
2185 |
* Constant for the "Lycian" Unicode character block. |
|
2186 |
* @since 1.7 |
|
2187 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2188 |
public static final UnicodeBlock LYCIAN = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2189 |
new UnicodeBlock("LYCIAN"); |
2497 | 2190 |
|
2191 |
/** |
|
2192 |
* Constant for the "Carian" Unicode character block. |
|
2193 |
* @since 1.7 |
|
2194 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2195 |
public static final UnicodeBlock CARIAN = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2196 |
new UnicodeBlock("CARIAN"); |
2497 | 2197 |
|
2198 |
/** |
|
2199 |
* Constant for the "Old Persian" Unicode character block. |
|
2200 |
* @since 1.7 |
|
2201 |
*/ |
|
2202 |
public static final UnicodeBlock OLD_PERSIAN = |
|
2203 |
new UnicodeBlock("OLD_PERSIAN", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2204 |
"OLD PERSIAN", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2205 |
"OLDPERSIAN"); |
2497 | 2206 |
|
2207 |
/** |
|
7247 | 2208 |
* Constant for the "Imperial Aramaic" Unicode character block. |
2209 |
* @since 1.7 |
|
2210 |
*/ |
|
2211 |
public static final UnicodeBlock IMPERIAL_ARAMAIC = |
|
2212 |
new UnicodeBlock("IMPERIAL_ARAMAIC", |
|
2213 |
"IMPERIAL ARAMAIC", |
|
2214 |
"IMPERIALARAMAIC"); |
|
2215 |
||
2216 |
/** |
|
2497 | 2217 |
* Constant for the "Phoenician" Unicode character block. |
2218 |
* @since 1.7 |
|
2219 |
*/ |
|
2220 |
public static final UnicodeBlock PHOENICIAN = |
|
2221 |
new UnicodeBlock("PHOENICIAN"); |
|
2222 |
||
2223 |
/** |
|
2224 |
* Constant for the "Lydian" Unicode character block. |
|
2225 |
* @since 1.7 |
|
2226 |
*/ |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2227 |
public static final UnicodeBlock LYDIAN = |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2228 |
new UnicodeBlock("LYDIAN"); |
2497 | 2229 |
|
2230 |
/** |
|
2231 |
* Constant for the "Kharoshthi" Unicode character block. |
|
2232 |
* @since 1.7 |
|
2233 |
*/ |
|
2234 |
public static final UnicodeBlock KHAROSHTHI = |
|
2235 |
new UnicodeBlock("KHAROSHTHI"); |
|
2236 |
||
2237 |
/** |
|
7247 | 2238 |
* Constant for the "Old South Arabian" Unicode character block. |
2239 |
* @since 1.7 |
|
2240 |
*/ |
|
2241 |
public static final UnicodeBlock OLD_SOUTH_ARABIAN = |
|
2242 |
new UnicodeBlock("OLD_SOUTH_ARABIAN", |
|
2243 |
"OLD SOUTH ARABIAN", |
|
2244 |
"OLDSOUTHARABIAN"); |
|
2245 |
||
2246 |
/** |
|
2247 |
* Constant for the "Avestan" Unicode character block. |
|
2248 |
* @since 1.7 |
|
2249 |
*/ |
|
2250 |
public static final UnicodeBlock AVESTAN = |
|
2251 |
new UnicodeBlock("AVESTAN"); |
|
2252 |
||
2253 |
/** |
|
2254 |
* Constant for the "Inscriptional Parthian" Unicode character block. |
|
2255 |
* @since 1.7 |
|
2256 |
*/ |
|
2257 |
public static final UnicodeBlock INSCRIPTIONAL_PARTHIAN = |
|
2258 |
new UnicodeBlock("INSCRIPTIONAL_PARTHIAN", |
|
2259 |
"INSCRIPTIONAL PARTHIAN", |
|
2260 |
"INSCRIPTIONALPARTHIAN"); |
|
2261 |
||
2262 |
/** |
|
2263 |
* Constant for the "Inscriptional Pahlavi" Unicode character block. |
|
2264 |
* @since 1.7 |
|
2265 |
*/ |
|
2266 |
public static final UnicodeBlock INSCRIPTIONAL_PAHLAVI = |
|
2267 |
new UnicodeBlock("INSCRIPTIONAL_PAHLAVI", |
|
2268 |
"INSCRIPTIONAL PAHLAVI", |
|
2269 |
"INSCRIPTIONALPAHLAVI"); |
|
2270 |
||
2271 |
/** |
|
2272 |
* Constant for the "Old Turkic" Unicode character block. |
|
2273 |
* @since 1.7 |
|
2274 |
*/ |
|
2275 |
public static final UnicodeBlock OLD_TURKIC = |
|
2276 |
new UnicodeBlock("OLD_TURKIC", |
|
2277 |
"OLD TURKIC", |
|
2278 |
"OLDTURKIC"); |
|
2279 |
||
2280 |
/** |
|
2281 |
* Constant for the "Rumi Numeral Symbols" Unicode character block. |
|
2282 |
* @since 1.7 |
|
2283 |
*/ |
|
2284 |
public static final UnicodeBlock RUMI_NUMERAL_SYMBOLS = |
|
2285 |
new UnicodeBlock("RUMI_NUMERAL_SYMBOLS", |
|
2286 |
"RUMI NUMERAL SYMBOLS", |
|
2287 |
"RUMINUMERALSYMBOLS"); |
|
2288 |
||
2289 |
/** |
|
2290 |
* Constant for the "Brahmi" Unicode character block. |
|
2291 |
* @since 1.7 |
|
2292 |
*/ |
|
2293 |
public static final UnicodeBlock BRAHMI = |
|
2294 |
new UnicodeBlock("BRAHMI"); |
|
2295 |
||
2296 |
/** |
|
2297 |
* Constant for the "Kaithi" Unicode character block. |
|
2298 |
* @since 1.7 |
|
2299 |
*/ |
|
2300 |
public static final UnicodeBlock KAITHI = |
|
2301 |
new UnicodeBlock("KAITHI"); |
|
2302 |
||
2303 |
/** |
|
2497 | 2304 |
* Constant for the "Cuneiform" Unicode character block. |
2305 |
* @since 1.7 |
|
2306 |
*/ |
|
2307 |
public static final UnicodeBlock CUNEIFORM = |
|
2308 |
new UnicodeBlock("CUNEIFORM"); |
|
2309 |
||
2310 |
/** |
|
2311 |
* Constant for the "Cuneiform Numbers and Punctuation" Unicode |
|
2312 |
* character block. |
|
2313 |
* @since 1.7 |
|
2314 |
*/ |
|
2315 |
public static final UnicodeBlock CUNEIFORM_NUMBERS_AND_PUNCTUATION = |
|
2316 |
new UnicodeBlock("CUNEIFORM_NUMBERS_AND_PUNCTUATION", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2317 |
"CUNEIFORM NUMBERS AND PUNCTUATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2318 |
"CUNEIFORMNUMBERSANDPUNCTUATION"); |
2497 | 2319 |
|
2320 |
/** |
|
7247 | 2321 |
* Constant for the "Egyptian Hieroglyphs" Unicode character block. |
2322 |
* @since 1.7 |
|
2323 |
*/ |
|
2324 |
public static final UnicodeBlock EGYPTIAN_HIEROGLYPHS = |
|
2325 |
new UnicodeBlock("EGYPTIAN_HIEROGLYPHS", |
|
2326 |
"EGYPTIAN HIEROGLYPHS", |
|
2327 |
"EGYPTIANHIEROGLYPHS"); |
|
2328 |
||
2329 |
/** |
|
2330 |
* Constant for the "Bamum Supplement" Unicode character block. |
|
2331 |
* @since 1.7 |
|
2332 |
*/ |
|
2333 |
public static final UnicodeBlock BAMUM_SUPPLEMENT = |
|
2334 |
new UnicodeBlock("BAMUM_SUPPLEMENT", |
|
2335 |
"BAMUM SUPPLEMENT", |
|
2336 |
"BAMUMSUPPLEMENT"); |
|
2337 |
||
2338 |
/** |
|
2339 |
* Constant for the "Kana Supplement" Unicode character block. |
|
2340 |
* @since 1.7 |
|
2341 |
*/ |
|
2342 |
public static final UnicodeBlock KANA_SUPPLEMENT = |
|
2343 |
new UnicodeBlock("KANA_SUPPLEMENT", |
|
2344 |
"KANA SUPPLEMENT", |
|
2345 |
"KANASUPPLEMENT"); |
|
2346 |
||
2347 |
/** |
|
2497 | 2348 |
* Constant for the "Ancient Greek Musical Notation" Unicode character |
2349 |
* block. |
|
2350 |
* @since 1.7 |
|
2351 |
*/ |
|
2352 |
public static final UnicodeBlock ANCIENT_GREEK_MUSICAL_NOTATION = |
|
2353 |
new UnicodeBlock("ANCIENT_GREEK_MUSICAL_NOTATION", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2354 |
"ANCIENT GREEK MUSICAL NOTATION", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2355 |
"ANCIENTGREEKMUSICALNOTATION"); |
2497 | 2356 |
|
2357 |
/** |
|
2358 |
* Constant for the "Counting Rod Numerals" Unicode character block. |
|
2359 |
* @since 1.7 |
|
2360 |
*/ |
|
2361 |
public static final UnicodeBlock COUNTING_ROD_NUMERALS = |
|
2362 |
new UnicodeBlock("COUNTING_ROD_NUMERALS", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2363 |
"COUNTING ROD NUMERALS", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2364 |
"COUNTINGRODNUMERALS"); |
2497 | 2365 |
|
2366 |
/** |
|
2367 |
* Constant for the "Mahjong Tiles" Unicode character block. |
|
2368 |
* @since 1.7 |
|
2369 |
*/ |
|
2370 |
public static final UnicodeBlock MAHJONG_TILES = |
|
2371 |
new UnicodeBlock("MAHJONG_TILES", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2372 |
"MAHJONG TILES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2373 |
"MAHJONGTILES"); |
2497 | 2374 |
|
2375 |
/** |
|
2376 |
* Constant for the "Domino Tiles" Unicode character block. |
|
2377 |
* @since 1.7 |
|
2378 |
*/ |
|
2379 |
public static final UnicodeBlock DOMINO_TILES = |
|
2380 |
new UnicodeBlock("DOMINO_TILES", |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2381 |
"DOMINO TILES", |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2382 |
"DOMINOTILES"); |
2497 | 2383 |
|
7247 | 2384 |
/** |
2385 |
* Constant for the "Playing Cards" Unicode character block. |
|
2386 |
* @since 1.7 |
|
2387 |
*/ |
|
2388 |
public static final UnicodeBlock PLAYING_CARDS = |
|
2389 |
new UnicodeBlock("PLAYING_CARDS", |
|
2390 |
"PLAYING CARDS", |
|
2391 |
"PLAYINGCARDS"); |
|
2392 |
||
2393 |
/** |
|
2394 |
* Constant for the "Enclosed Alphanumeric Supplement" Unicode character |
|
2395 |
* block. |
|
2396 |
* @since 1.7 |
|
2397 |
*/ |
|
2398 |
public static final UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT = |
|
2399 |
new UnicodeBlock("ENCLOSED_ALPHANUMERIC_SUPPLEMENT", |
|
2400 |
"ENCLOSED ALPHANUMERIC SUPPLEMENT", |
|
2401 |
"ENCLOSEDALPHANUMERICSUPPLEMENT"); |
|
2402 |
||
2403 |
/** |
|
2404 |
* Constant for the "Enclosed Ideographic Supplement" Unicode character |
|
2405 |
* block. |
|
2406 |
* @since 1.7 |
|
2407 |
*/ |
|
2408 |
public static final UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = |
|
2409 |
new UnicodeBlock("ENCLOSED_IDEOGRAPHIC_SUPPLEMENT", |
|
2410 |
"ENCLOSED IDEOGRAPHIC SUPPLEMENT", |
|
2411 |
"ENCLOSEDIDEOGRAPHICSUPPLEMENT"); |
|
2412 |
||
2413 |
/** |
|
2414 |
* Constant for the "Miscellaneous Symbols And Pictographs" Unicode |
|
2415 |
* character block. |
|
2416 |
* @since 1.7 |
|
2417 |
*/ |
|
2418 |
public static final UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = |
|
2419 |
new UnicodeBlock("MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS", |
|
2420 |
"MISCELLANEOUS SYMBOLS AND PICTOGRAPHS", |
|
2421 |
"MISCELLANEOUSSYMBOLSANDPICTOGRAPHS"); |
|
2422 |
||
2423 |
/** |
|
2424 |
* Constant for the "Emoticons" Unicode character block. |
|
2425 |
* @since 1.7 |
|
2426 |
*/ |
|
2427 |
public static final UnicodeBlock EMOTICONS = |
|
2428 |
new UnicodeBlock("EMOTICONS"); |
|
2429 |
||
2430 |
/** |
|
2431 |
* Constant for the "Transport And Map Symbols" Unicode character block. |
|
2432 |
* @since 1.7 |
|
2433 |
*/ |
|
2434 |
public static final UnicodeBlock TRANSPORT_AND_MAP_SYMBOLS = |
|
2435 |
new UnicodeBlock("TRANSPORT_AND_MAP_SYMBOLS", |
|
2436 |
"TRANSPORT AND MAP SYMBOLS", |
|
2437 |
"TRANSPORTANDMAPSYMBOLS"); |
|
2438 |
||
2439 |
/** |
|
2440 |
* Constant for the "Alchemical Symbols" Unicode character block. |
|
2441 |
* @since 1.7 |
|
2442 |
*/ |
|
2443 |
public static final UnicodeBlock ALCHEMICAL_SYMBOLS = |
|
2444 |
new UnicodeBlock("ALCHEMICAL_SYMBOLS", |
|
2445 |
"ALCHEMICAL SYMBOLS", |
|
2446 |
"ALCHEMICALSYMBOLS"); |
|
2447 |
||
2448 |
/** |
|
2449 |
* Constant for the "CJK Unified Ideographs Extension C" Unicode |
|
2450 |
* character block. |
|
2451 |
* @since 1.7 |
|
2452 |
*/ |
|
2453 |
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = |
|
2454 |
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C", |
|
2455 |
"CJK UNIFIED IDEOGRAPHS EXTENSION C", |
|
2456 |
"CJKUNIFIEDIDEOGRAPHSEXTENSIONC"); |
|
2457 |
||
2458 |
/** |
|
2459 |
* Constant for the "CJK Unified Ideographs Extension D" Unicode |
|
2460 |
* character block. |
|
2461 |
* @since 1.7 |
|
2462 |
*/ |
|
2463 |
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = |
|
2464 |
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D", |
|
2465 |
"CJK UNIFIED IDEOGRAPHS EXTENSION D", |
|
2466 |
"CJKUNIFIEDIDEOGRAPHSEXTENSIOND"); |
|
2467 |
||
12300 | 2468 |
/** |
2469 |
* Constant for the "Arabic Extended-A" Unicode character block. |
|
2470 |
* @since 1.8 |
|
2471 |
*/ |
|
2472 |
public static final UnicodeBlock ARABIC_EXTENDED_A = |
|
2473 |
new UnicodeBlock("ARABIC_EXTENDED_A", |
|
2474 |
"ARABIC EXTENDED-A", |
|
2475 |
"ARABICEXTENDED-A"); |
|
2476 |
||
2477 |
/** |
|
2478 |
* Constant for the "Sundanese Supplement" Unicode character block. |
|
2479 |
* @since 1.8 |
|
2480 |
*/ |
|
2481 |
public static final UnicodeBlock SUNDANESE_SUPPLEMENT = |
|
2482 |
new UnicodeBlock("SUNDANESE_SUPPLEMENT", |
|
2483 |
"SUNDANESE SUPPLEMENT", |
|
2484 |
"SUNDANESESUPPLEMENT"); |
|
2485 |
||
2486 |
/** |
|
2487 |
* Constant for the "Meetei Mayek Extensions" Unicode character block. |
|
2488 |
* @since 1.8 |
|
2489 |
*/ |
|
2490 |
public static final UnicodeBlock MEETEI_MAYEK_EXTENSIONS = |
|
2491 |
new UnicodeBlock("MEETEI_MAYEK_EXTENSIONS", |
|
2492 |
"MEETEI MAYEK EXTENSIONS", |
|
2493 |
"MEETEIMAYEKEXTENSIONS"); |
|
2494 |
||
2495 |
/** |
|
2496 |
* Constant for the "Meroitic Hieroglyphs" Unicode character block. |
|
2497 |
* @since 1.8 |
|
2498 |
*/ |
|
2499 |
public static final UnicodeBlock MEROITIC_HIEROGLYPHS = |
|
2500 |
new UnicodeBlock("MEROITIC_HIEROGLYPHS", |
|
2501 |
"MEROITIC HIEROGLYPHS", |
|
2502 |
"MEROITICHIEROGLYPHS"); |
|
2503 |
||
2504 |
/** |
|
2505 |
* Constant for the "Meroitic Cursive" Unicode character block. |
|
2506 |
* @since 1.8 |
|
2507 |
*/ |
|
2508 |
public static final UnicodeBlock MEROITIC_CURSIVE = |
|
2509 |
new UnicodeBlock("MEROITIC_CURSIVE", |
|
2510 |
"MEROITIC CURSIVE", |
|
2511 |
"MEROITICCURSIVE"); |
|
2512 |
||
2513 |
/** |
|
2514 |
* Constant for the "Sora Sompeng" Unicode character block. |
|
2515 |
* @since 1.8 |
|
2516 |
*/ |
|
2517 |
public static final UnicodeBlock SORA_SOMPENG = |
|
2518 |
new UnicodeBlock("SORA_SOMPENG", |
|
2519 |
"SORA SOMPENG", |
|
2520 |
"SORASOMPENG"); |
|
2521 |
||
2522 |
/** |
|
2523 |
* Constant for the "Chakma" Unicode character block. |
|
2524 |
* @since 1.8 |
|
2525 |
*/ |
|
2526 |
public static final UnicodeBlock CHAKMA = |
|
2527 |
new UnicodeBlock("CHAKMA"); |
|
2528 |
||
2529 |
/** |
|
2530 |
* Constant for the "Sharada" Unicode character block. |
|
2531 |
* @since 1.8 |
|
2532 |
*/ |
|
2533 |
public static final UnicodeBlock SHARADA = |
|
2534 |
new UnicodeBlock("SHARADA"); |
|
2535 |
||
2536 |
/** |
|
2537 |
* Constant for the "Takri" Unicode character block. |
|
2538 |
* @since 1.8 |
|
2539 |
*/ |
|
2540 |
public static final UnicodeBlock TAKRI = |
|
2541 |
new UnicodeBlock("TAKRI"); |
|
2542 |
||
2543 |
/** |
|
2544 |
* Constant for the "Miao" Unicode character block. |
|
2545 |
* @since 1.8 |
|
2546 |
*/ |
|
2547 |
public static final UnicodeBlock MIAO = |
|
2548 |
new UnicodeBlock("MIAO"); |
|
2549 |
||
2550 |
/** |
|
2551 |
* Constant for the "Arabic Mathematical Alphabetic Symbols" Unicode |
|
2552 |
* character block. |
|
2553 |
* @since 1.8 |
|
2554 |
*/ |
|
2555 |
public static final UnicodeBlock ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = |
|
2556 |
new UnicodeBlock("ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS", |
|
2557 |
"ARABIC MATHEMATICAL ALPHABETIC SYMBOLS", |
|
2558 |
"ARABICMATHEMATICALALPHABETICSYMBOLS"); |
|
2559 |
||
2 | 2560 |
private static final int blockStarts[] = { |
2497 | 2561 |
0x0000, // 0000..007F; Basic Latin |
2562 |
0x0080, // 0080..00FF; Latin-1 Supplement |
|
2563 |
0x0100, // 0100..017F; Latin Extended-A |
|
2564 |
0x0180, // 0180..024F; Latin Extended-B |
|
2565 |
0x0250, // 0250..02AF; IPA Extensions |
|
2566 |
0x02B0, // 02B0..02FF; Spacing Modifier Letters |
|
2567 |
0x0300, // 0300..036F; Combining Diacritical Marks |
|
2568 |
0x0370, // 0370..03FF; Greek and Coptic |
|
2569 |
0x0400, // 0400..04FF; Cyrillic |
|
2570 |
0x0500, // 0500..052F; Cyrillic Supplement |
|
2571 |
0x0530, // 0530..058F; Armenian |
|
2572 |
0x0590, // 0590..05FF; Hebrew |
|
2573 |
0x0600, // 0600..06FF; Arabic |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
2574 |
0x0700, // 0700..074F; Syriac |
2497 | 2575 |
0x0750, // 0750..077F; Arabic Supplement |
2576 |
0x0780, // 0780..07BF; Thaana |
|
2577 |
0x07C0, // 07C0..07FF; NKo |
|
7247 | 2578 |
0x0800, // 0800..083F; Samaritan |
2579 |
0x0840, // 0840..085F; Mandaic |
|
2580 |
0x0860, // unassigned |
|
12300 | 2581 |
0x08A0, // 08A0..08FF; Arabic Extended-A |
2497 | 2582 |
0x0900, // 0900..097F; Devanagari |
2583 |
0x0980, // 0980..09FF; Bengali |
|
2584 |
0x0A00, // 0A00..0A7F; Gurmukhi |
|
2585 |
0x0A80, // 0A80..0AFF; Gujarati |
|
2586 |
0x0B00, // 0B00..0B7F; Oriya |
|
2587 |
0x0B80, // 0B80..0BFF; Tamil |
|
2588 |
0x0C00, // 0C00..0C7F; Telugu |
|
2589 |
0x0C80, // 0C80..0CFF; Kannada |
|
2590 |
0x0D00, // 0D00..0D7F; Malayalam |
|
2591 |
0x0D80, // 0D80..0DFF; Sinhala |
|
2592 |
0x0E00, // 0E00..0E7F; Thai |
|
2593 |
0x0E80, // 0E80..0EFF; Lao |
|
2594 |
0x0F00, // 0F00..0FFF; Tibetan |
|
2595 |
0x1000, // 1000..109F; Myanmar |
|
2596 |
0x10A0, // 10A0..10FF; Georgian |
|
2597 |
0x1100, // 1100..11FF; Hangul Jamo |
|
2598 |
0x1200, // 1200..137F; Ethiopic |
|
2599 |
0x1380, // 1380..139F; Ethiopic Supplement |
|
2600 |
0x13A0, // 13A0..13FF; Cherokee |
|
2601 |
0x1400, // 1400..167F; Unified Canadian Aboriginal Syllabics |
|
2602 |
0x1680, // 1680..169F; Ogham |
|
2603 |
0x16A0, // 16A0..16FF; Runic |
|
2604 |
0x1700, // 1700..171F; Tagalog |
|
2605 |
0x1720, // 1720..173F; Hanunoo |
|
2606 |
0x1740, // 1740..175F; Buhid |
|
2607 |
0x1760, // 1760..177F; Tagbanwa |
|
2608 |
0x1780, // 1780..17FF; Khmer |
|
2609 |
0x1800, // 1800..18AF; Mongolian |
|
7247 | 2610 |
0x18B0, // 18B0..18FF; Unified Canadian Aboriginal Syllabics Extended |
2497 | 2611 |
0x1900, // 1900..194F; Limbu |
2612 |
0x1950, // 1950..197F; Tai Le |
|
2613 |
0x1980, // 1980..19DF; New Tai Lue |
|
2614 |
0x19E0, // 19E0..19FF; Khmer Symbols |
|
2615 |
0x1A00, // 1A00..1A1F; Buginese |
|
7247 | 2616 |
0x1A20, // 1A20..1AAF; Tai Tham |
2617 |
0x1AB0, // unassigned |
|
2497 | 2618 |
0x1B00, // 1B00..1B7F; Balinese |
2619 |
0x1B80, // 1B80..1BBF; Sundanese |
|
7247 | 2620 |
0x1BC0, // 1BC0..1BFF; Batak |
2497 | 2621 |
0x1C00, // 1C00..1C4F; Lepcha |
2622 |
0x1C50, // 1C50..1C7F; Ol Chiki |
|
2623 |
0x1C80, // unassigned |
|
12300 | 2624 |
0x1CC0, // 1CC0..1CCF; Sundanese Supplement |
7247 | 2625 |
0x1CD0, // 1CD0..1CFF; Vedic Extensions |
2497 | 2626 |
0x1D00, // 1D00..1D7F; Phonetic Extensions |
2627 |
0x1D80, // 1D80..1DBF; Phonetic Extensions Supplement |
|
2628 |
0x1DC0, // 1DC0..1DFF; Combining Diacritical Marks Supplement |
|
2629 |
0x1E00, // 1E00..1EFF; Latin Extended Additional |
|
2630 |
0x1F00, // 1F00..1FFF; Greek Extended |
|
2631 |
0x2000, // 2000..206F; General Punctuation |
|
2632 |
0x2070, // 2070..209F; Superscripts and Subscripts |
|
2633 |
0x20A0, // 20A0..20CF; Currency Symbols |
|
2634 |
0x20D0, // 20D0..20FF; Combining Diacritical Marks for Symbols |
|
2635 |
0x2100, // 2100..214F; Letterlike Symbols |
|
2636 |
0x2150, // 2150..218F; Number Forms |
|
2637 |
0x2190, // 2190..21FF; Arrows |
|
2638 |
0x2200, // 2200..22FF; Mathematical Operators |
|
2639 |
0x2300, // 2300..23FF; Miscellaneous Technical |
|
2640 |
0x2400, // 2400..243F; Control Pictures |
|
2641 |
0x2440, // 2440..245F; Optical Character Recognition |
|
2642 |
0x2460, // 2460..24FF; Enclosed Alphanumerics |
|
2643 |
0x2500, // 2500..257F; Box Drawing |
|
2644 |
0x2580, // 2580..259F; Block Elements |
|
2645 |
0x25A0, // 25A0..25FF; Geometric Shapes |
|
2646 |
0x2600, // 2600..26FF; Miscellaneous Symbols |
|
2647 |
0x2700, // 2700..27BF; Dingbats |
|
2648 |
0x27C0, // 27C0..27EF; Miscellaneous Mathematical Symbols-A |
|
2649 |
0x27F0, // 27F0..27FF; Supplemental Arrows-A |
|
2650 |
0x2800, // 2800..28FF; Braille Patterns |
|
2651 |
0x2900, // 2900..297F; Supplemental Arrows-B |
|
2652 |
0x2980, // 2980..29FF; Miscellaneous Mathematical Symbols-B |
|
2653 |
0x2A00, // 2A00..2AFF; Supplemental Mathematical Operators |
|
2654 |
0x2B00, // 2B00..2BFF; Miscellaneous Symbols and Arrows |
|
2655 |
0x2C00, // 2C00..2C5F; Glagolitic |
|
2656 |
0x2C60, // 2C60..2C7F; Latin Extended-C |
|
2657 |
0x2C80, // 2C80..2CFF; Coptic |
|
2658 |
0x2D00, // 2D00..2D2F; Georgian Supplement |
|
2659 |
0x2D30, // 2D30..2D7F; Tifinagh |
|
2660 |
0x2D80, // 2D80..2DDF; Ethiopic Extended |
|
2661 |
0x2DE0, // 2DE0..2DFF; Cyrillic Extended-A |
|
2662 |
0x2E00, // 2E00..2E7F; Supplemental Punctuation |
|
2663 |
0x2E80, // 2E80..2EFF; CJK Radicals Supplement |
|
2664 |
0x2F00, // 2F00..2FDF; Kangxi Radicals |
|
2665 |
0x2FE0, // unassigned |
|
2666 |
0x2FF0, // 2FF0..2FFF; Ideographic Description Characters |
|
2667 |
0x3000, // 3000..303F; CJK Symbols and Punctuation |
|
2668 |
0x3040, // 3040..309F; Hiragana |
|
2669 |
0x30A0, // 30A0..30FF; Katakana |
|
2670 |
0x3100, // 3100..312F; Bopomofo |
|
2671 |
0x3130, // 3130..318F; Hangul Compatibility Jamo |
|
2672 |
0x3190, // 3190..319F; Kanbun |
|
2673 |
0x31A0, // 31A0..31BF; Bopomofo Extended |
|
2674 |
0x31C0, // 31C0..31EF; CJK Strokes |
|
2675 |
0x31F0, // 31F0..31FF; Katakana Phonetic Extensions |
|
2676 |
0x3200, // 3200..32FF; Enclosed CJK Letters and Months |
|
2677 |
0x3300, // 3300..33FF; CJK Compatibility |
|
2678 |
0x3400, // 3400..4DBF; CJK Unified Ideographs Extension A |
|
2679 |
0x4DC0, // 4DC0..4DFF; Yijing Hexagram Symbols |
|
7247 | 2680 |
0x4E00, // 4E00..9FFF; CJK Unified Ideographs |
2497 | 2681 |
0xA000, // A000..A48F; Yi Syllables |
2682 |
0xA490, // A490..A4CF; Yi Radicals |
|
7247 | 2683 |
0xA4D0, // A4D0..A4FF; Lisu |
2497 | 2684 |
0xA500, // A500..A63F; Vai |
2685 |
0xA640, // A640..A69F; Cyrillic Extended-B |
|
7247 | 2686 |
0xA6A0, // A6A0..A6FF; Bamum |
2497 | 2687 |
0xA700, // A700..A71F; Modifier Tone Letters |
2688 |
0xA720, // A720..A7FF; Latin Extended-D |
|
2689 |
0xA800, // A800..A82F; Syloti Nagri |
|
7247 | 2690 |
0xA830, // A830..A83F; Common Indic Number Forms |
2497 | 2691 |
0xA840, // A840..A87F; Phags-pa |
2692 |
0xA880, // A880..A8DF; Saurashtra |
|
7247 | 2693 |
0xA8E0, // A8E0..A8FF; Devanagari Extended |
2497 | 2694 |
0xA900, // A900..A92F; Kayah Li |
2695 |
0xA930, // A930..A95F; Rejang |
|
7247 | 2696 |
0xA960, // A960..A97F; Hangul Jamo Extended-A |
2697 |
0xA980, // A980..A9DF; Javanese |
|
2698 |
0xA9E0, // unassigned |
|
2497 | 2699 |
0xAA00, // AA00..AA5F; Cham |
7247 | 2700 |
0xAA60, // AA60..AA7F; Myanmar Extended-A |
2701 |
0xAA80, // AA80..AADF; Tai Viet |
|
12300 | 2702 |
0xAAE0, // AAE0..AAFF; Meetei Mayek Extensions |
7247 | 2703 |
0xAB00, // AB00..AB2F; Ethiopic Extended-A |
2704 |
0xAB30, // unassigned |
|
2705 |
0xABC0, // ABC0..ABFF; Meetei Mayek |
|
2497 | 2706 |
0xAC00, // AC00..D7AF; Hangul Syllables |
7247 | 2707 |
0xD7B0, // D7B0..D7FF; Hangul Jamo Extended-B |
2497 | 2708 |
0xD800, // D800..DB7F; High Surrogates |
2709 |
0xDB80, // DB80..DBFF; High Private Use Surrogates |
|
2710 |
0xDC00, // DC00..DFFF; Low Surrogates |
|
2711 |
0xE000, // E000..F8FF; Private Use Area |
|
2712 |
0xF900, // F900..FAFF; CJK Compatibility Ideographs |
|
2713 |
0xFB00, // FB00..FB4F; Alphabetic Presentation Forms |
|
2714 |
0xFB50, // FB50..FDFF; Arabic Presentation Forms-A |
|
2715 |
0xFE00, // FE00..FE0F; Variation Selectors |
|
2716 |
0xFE10, // FE10..FE1F; Vertical Forms |
|
2717 |
0xFE20, // FE20..FE2F; Combining Half Marks |
|
2718 |
0xFE30, // FE30..FE4F; CJK Compatibility Forms |
|
2719 |
0xFE50, // FE50..FE6F; Small Form Variants |
|
2720 |
0xFE70, // FE70..FEFF; Arabic Presentation Forms-B |
|
2721 |
0xFF00, // FF00..FFEF; Halfwidth and Fullwidth Forms |
|
2722 |
0xFFF0, // FFF0..FFFF; Specials |
|
2723 |
0x10000, // 10000..1007F; Linear B Syllabary |
|
2724 |
0x10080, // 10080..100FF; Linear B Ideograms |
|
2725 |
0x10100, // 10100..1013F; Aegean Numbers |
|
2726 |
0x10140, // 10140..1018F; Ancient Greek Numbers |
|
2727 |
0x10190, // 10190..101CF; Ancient Symbols |
|
2728 |
0x101D0, // 101D0..101FF; Phaistos Disc |
|
2729 |
0x10200, // unassigned |
|
2730 |
0x10280, // 10280..1029F; Lycian |
|
2731 |
0x102A0, // 102A0..102DF; Carian |
|
2732 |
0x102E0, // unassigned |
|
2733 |
0x10300, // 10300..1032F; Old Italic |
|
2734 |
0x10330, // 10330..1034F; Gothic |
|
2735 |
0x10350, // unassigned |
|
2736 |
0x10380, // 10380..1039F; Ugaritic |
|
2737 |
0x103A0, // 103A0..103DF; Old Persian |
|
2738 |
0x103E0, // unassigned |
|
7247 | 2739 |
0x10400, // 10400..1044F; Deseret |
2497 | 2740 |
0x10450, // 10450..1047F; Shavian |
2741 |
0x10480, // 10480..104AF; Osmanya |
|
2742 |
0x104B0, // unassigned |
|
2743 |
0x10800, // 10800..1083F; Cypriot Syllabary |
|
7247 | 2744 |
0x10840, // 10840..1085F; Imperial Aramaic |
2745 |
0x10860, // unassigned |
|
2497 | 2746 |
0x10900, // 10900..1091F; Phoenician |
2747 |
0x10920, // 10920..1093F; Lydian |
|
2748 |
0x10940, // unassigned |
|
12300 | 2749 |
0x10980, // 10980..1099F; Meroitic Hieroglyphs |
2750 |
0x109A0, // 109A0..109FF; Meroitic Cursive |
|
2497 | 2751 |
0x10A00, // 10A00..10A5F; Kharoshthi |
7247 | 2752 |
0x10A60, // 10A60..10A7F; Old South Arabian |
2753 |
0x10A80, // unassigned |
|
2754 |
0x10B00, // 10B00..10B3F; Avestan |
|
2755 |
0x10B40, // 10B40..10B5F; Inscriptional Parthian |
|
2756 |
0x10B60, // 10B60..10B7F; Inscriptional Pahlavi |
|
2757 |
0x10B80, // unassigned |
|
2758 |
0x10C00, // 10C00..10C4F; Old Turkic |
|
2759 |
0x10C50, // unassigned |
|
2760 |
0x10E60, // 10E60..10E7F; Rumi Numeral Symbols |
|
2761 |
0x10E80, // unassigned |
|
2762 |
0x11000, // 11000..1107F; Brahmi |
|
2763 |
0x11080, // 11080..110CF; Kaithi |
|
12300 | 2764 |
0x110D0, // 110D0..110FF; Sora Sompeng |
2765 |
0x11100, // 11100..1114F; Chakma |
|
2766 |
0x11150, // unassigned |
|
2767 |
0x11180, // 11180..111DF; Sharada |
|
2768 |
0x111E0, // unassigned |
|
2769 |
0x11680, // 11680..116CF; Takri |
|
2770 |
0x116D0, // unassigned |
|
2497 | 2771 |
0x12000, // 12000..123FF; Cuneiform |
2772 |
0x12400, // 12400..1247F; Cuneiform Numbers and Punctuation |
|
2773 |
0x12480, // unassigned |
|
7247 | 2774 |
0x13000, // 13000..1342F; Egyptian Hieroglyphs |
2775 |
0x13430, // unassigned |
|
2776 |
0x16800, // 16800..16A3F; Bamum Supplement |
|
2777 |
0x16A40, // unassigned |
|
12300 | 2778 |
0x16F00, // 16F00..16F9F; Miao |
2779 |
0x16FA0, // unassigned |
|
7247 | 2780 |
0x1B000, // 1B000..1B0FF; Kana Supplement |
2781 |
0x1B100, // unassigned |
|
2497 | 2782 |
0x1D000, // 1D000..1D0FF; Byzantine Musical Symbols |
2783 |
0x1D100, // 1D100..1D1FF; Musical Symbols |
|
2784 |
0x1D200, // 1D200..1D24F; Ancient Greek Musical Notation |
|
2785 |
0x1D250, // unassigned |
|
2786 |
0x1D300, // 1D300..1D35F; Tai Xuan Jing Symbols |
|
2787 |
0x1D360, // 1D360..1D37F; Counting Rod Numerals |
|
2788 |
0x1D380, // unassigned |
|
2789 |
0x1D400, // 1D400..1D7FF; Mathematical Alphanumeric Symbols |
|
2790 |
0x1D800, // unassigned |
|
12300 | 2791 |
0x1EE00, // 1EE00..1EEFF; Arabic Mathematical Alphabetic Symbols |
2792 |
0x1EF00, // unassigned |
|
2497 | 2793 |
0x1F000, // 1F000..1F02F; Mahjong Tiles |
2794 |
0x1F030, // 1F030..1F09F; Domino Tiles |
|
7247 | 2795 |
0x1F0A0, // 1F0A0..1F0FF; Playing Cards |
2796 |
0x1F100, // 1F100..1F1FF; Enclosed Alphanumeric Supplement |
|
2797 |
0x1F200, // 1F200..1F2FF; Enclosed Ideographic Supplement |
|
2798 |
0x1F300, // 1F300..1F5FF; Miscellaneous Symbols And Pictographs |
|
2799 |
0x1F600, // 1F600..1F64F; Emoticons |
|
2800 |
0x1F650, // unassigned |
|
2801 |
0x1F680, // 1F680..1F6FF; Transport And Map Symbols |
|
2802 |
0x1F700, // 1F700..1F77F; Alchemical Symbols |
|
2803 |
0x1F780, // unassigned |
|
2497 | 2804 |
0x20000, // 20000..2A6DF; CJK Unified Ideographs Extension B |
2805 |
0x2A6E0, // unassigned |
|
7247 | 2806 |
0x2A700, // 2A700..2B73F; CJK Unified Ideographs Extension C |
2807 |
0x2B740, // 2B740..2B81F; CJK Unified Ideographs Extension D |
|
2808 |
0x2B820, // unassigned |
|
2497 | 2809 |
0x2F800, // 2F800..2FA1F; CJK Compatibility Ideographs Supplement |
2810 |
0x2FA20, // unassigned |
|
2811 |
0xE0000, // E0000..E007F; Tags |
|
2812 |
0xE0080, // unassigned |
|
2813 |
0xE0100, // E0100..E01EF; Variation Selectors Supplement |
|
2814 |
0xE01F0, // unassigned |
|
2815 |
0xF0000, // F0000..FFFFF; Supplementary Private Use Area-A |
|
7247 | 2816 |
0x100000 // 100000..10FFFF; Supplementary Private Use Area-B |
2 | 2817 |
}; |
2818 |
||
2819 |
private static final UnicodeBlock[] blocks = { |
|
2820 |
BASIC_LATIN, |
|
2821 |
LATIN_1_SUPPLEMENT, |
|
2822 |
LATIN_EXTENDED_A, |
|
2823 |
LATIN_EXTENDED_B, |
|
2824 |
IPA_EXTENSIONS, |
|
2825 |
SPACING_MODIFIER_LETTERS, |
|
2826 |
COMBINING_DIACRITICAL_MARKS, |
|
2827 |
GREEK, |
|
2828 |
CYRILLIC, |
|
2829 |
CYRILLIC_SUPPLEMENTARY, |
|
2830 |
ARMENIAN, |
|
2831 |
HEBREW, |
|
2832 |
ARABIC, |
|
2833 |
SYRIAC, |
|
2497 | 2834 |
ARABIC_SUPPLEMENT, |
2 | 2835 |
THAANA, |
2497 | 2836 |
NKO, |
7247 | 2837 |
SAMARITAN, |
2838 |
MANDAIC, |
|
2 | 2839 |
null, |
12300 | 2840 |
ARABIC_EXTENDED_A, |
2 | 2841 |
DEVANAGARI, |
2842 |
BENGALI, |
|
2843 |
GURMUKHI, |
|
2844 |
GUJARATI, |
|
2845 |
ORIYA, |
|
2846 |
TAMIL, |
|
2847 |
TELUGU, |
|
2848 |
KANNADA, |
|
2849 |
MALAYALAM, |
|
2850 |
SINHALA, |
|
2851 |
THAI, |
|
2852 |
LAO, |
|
2853 |
TIBETAN, |
|
2854 |
MYANMAR, |
|
2855 |
GEORGIAN, |
|
2856 |
HANGUL_JAMO, |
|
2857 |
ETHIOPIC, |
|
2497 | 2858 |
ETHIOPIC_SUPPLEMENT, |
2 | 2859 |
CHEROKEE, |
2860 |
UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS, |
|
2861 |
OGHAM, |
|
2862 |
RUNIC, |
|
2863 |
TAGALOG, |
|
2864 |
HANUNOO, |
|
2865 |
BUHID, |
|
2866 |
TAGBANWA, |
|
2867 |
KHMER, |
|
2868 |
MONGOLIAN, |
|
7247 | 2869 |
UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED, |
2 | 2870 |
LIMBU, |
2871 |
TAI_LE, |
|
2497 | 2872 |
NEW_TAI_LUE, |
2873 |
KHMER_SYMBOLS, |
|
2874 |
BUGINESE, |
|
7247 | 2875 |
TAI_THAM, |
2 | 2876 |
null, |
2497 | 2877 |
BALINESE, |
2878 |
SUNDANESE, |
|
7247 | 2879 |
BATAK, |
2497 | 2880 |
LEPCHA, |
2881 |
OL_CHIKI, |
|
2 | 2882 |
null, |
12300 | 2883 |
SUNDANESE_SUPPLEMENT, |
7247 | 2884 |
VEDIC_EXTENSIONS, |
2 | 2885 |
PHONETIC_EXTENSIONS, |
2497 | 2886 |
PHONETIC_EXTENSIONS_SUPPLEMENT, |
2887 |
COMBINING_DIACRITICAL_MARKS_SUPPLEMENT, |
|
2 | 2888 |
LATIN_EXTENDED_ADDITIONAL, |
2889 |
GREEK_EXTENDED, |
|
2890 |
GENERAL_PUNCTUATION, |
|
2891 |
SUPERSCRIPTS_AND_SUBSCRIPTS, |
|
2892 |
CURRENCY_SYMBOLS, |
|
2893 |
COMBINING_MARKS_FOR_SYMBOLS, |
|
2894 |
LETTERLIKE_SYMBOLS, |
|
2895 |
NUMBER_FORMS, |
|
2896 |
ARROWS, |
|
2897 |
MATHEMATICAL_OPERATORS, |
|
2898 |
MISCELLANEOUS_TECHNICAL, |
|
2899 |
CONTROL_PICTURES, |
|
2900 |
OPTICAL_CHARACTER_RECOGNITION, |
|
2901 |
ENCLOSED_ALPHANUMERICS, |
|
2902 |
BOX_DRAWING, |
|
2903 |
BLOCK_ELEMENTS, |
|
2904 |
GEOMETRIC_SHAPES, |
|
2905 |
MISCELLANEOUS_SYMBOLS, |
|
2906 |
DINGBATS, |
|
2907 |
MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A, |
|
2908 |
SUPPLEMENTAL_ARROWS_A, |
|
2909 |
BRAILLE_PATTERNS, |
|
2910 |
SUPPLEMENTAL_ARROWS_B, |
|
2911 |
MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B, |
|
2912 |
SUPPLEMENTAL_MATHEMATICAL_OPERATORS, |
|
2913 |
MISCELLANEOUS_SYMBOLS_AND_ARROWS, |
|
2497 | 2914 |
GLAGOLITIC, |
2915 |
LATIN_EXTENDED_C, |
|
2916 |
COPTIC, |
|
2917 |
GEORGIAN_SUPPLEMENT, |
|
2918 |
TIFINAGH, |
|
2919 |
ETHIOPIC_EXTENDED, |
|
2920 |
CYRILLIC_EXTENDED_A, |
|
2921 |
SUPPLEMENTAL_PUNCTUATION, |
|
2 | 2922 |
CJK_RADICALS_SUPPLEMENT, |
2923 |
KANGXI_RADICALS, |
|
2924 |
null, |
|
2925 |
IDEOGRAPHIC_DESCRIPTION_CHARACTERS, |
|
2926 |
CJK_SYMBOLS_AND_PUNCTUATION, |
|
2927 |
HIRAGANA, |
|
2928 |
KATAKANA, |
|
2929 |
BOPOMOFO, |
|
2930 |
HANGUL_COMPATIBILITY_JAMO, |
|
2931 |
KANBUN, |
|
2932 |
BOPOMOFO_EXTENDED, |
|
2497 | 2933 |
CJK_STROKES, |
2 | 2934 |
KATAKANA_PHONETIC_EXTENSIONS, |
2935 |
ENCLOSED_CJK_LETTERS_AND_MONTHS, |
|
2936 |
CJK_COMPATIBILITY, |
|
2937 |
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A, |
|
2938 |
YIJING_HEXAGRAM_SYMBOLS, |
|
2939 |
CJK_UNIFIED_IDEOGRAPHS, |
|
2940 |
YI_SYLLABLES, |
|
2941 |
YI_RADICALS, |
|
7247 | 2942 |
LISU, |
2497 | 2943 |
VAI, |
2944 |
CYRILLIC_EXTENDED_B, |
|
7247 | 2945 |
BAMUM, |
2497 | 2946 |
MODIFIER_TONE_LETTERS, |
2947 |
LATIN_EXTENDED_D, |
|
2948 |
SYLOTI_NAGRI, |
|
7247 | 2949 |
COMMON_INDIC_NUMBER_FORMS, |
2497 | 2950 |
PHAGS_PA, |
2951 |
SAURASHTRA, |
|
7247 | 2952 |
DEVANAGARI_EXTENDED, |
2497 | 2953 |
KAYAH_LI, |
2954 |
REJANG, |
|
7247 | 2955 |
HANGUL_JAMO_EXTENDED_A, |
2956 |
JAVANESE, |
|
2497 | 2957 |
null, |
2958 |
CHAM, |
|
7247 | 2959 |
MYANMAR_EXTENDED_A, |
2960 |
TAI_VIET, |
|
12300 | 2961 |
MEETEI_MAYEK_EXTENSIONS, |
7247 | 2962 |
ETHIOPIC_EXTENDED_A, |
2963 |
null, |
|
2964 |
MEETEI_MAYEK, |
|
2 | 2965 |
HANGUL_SYLLABLES, |
7247 | 2966 |
HANGUL_JAMO_EXTENDED_B, |
2 | 2967 |
HIGH_SURROGATES, |
2968 |
HIGH_PRIVATE_USE_SURROGATES, |
|
2969 |
LOW_SURROGATES, |
|
2970 |
PRIVATE_USE_AREA, |
|
2971 |
CJK_COMPATIBILITY_IDEOGRAPHS, |
|
2972 |
ALPHABETIC_PRESENTATION_FORMS, |
|
2973 |
ARABIC_PRESENTATION_FORMS_A, |
|
2974 |
VARIATION_SELECTORS, |
|
2497 | 2975 |
VERTICAL_FORMS, |
2 | 2976 |
COMBINING_HALF_MARKS, |
2977 |
CJK_COMPATIBILITY_FORMS, |
|
2978 |
SMALL_FORM_VARIANTS, |
|
2979 |
ARABIC_PRESENTATION_FORMS_B, |
|
2980 |
HALFWIDTH_AND_FULLWIDTH_FORMS, |
|
2981 |
SPECIALS, |
|
2982 |
LINEAR_B_SYLLABARY, |
|
2983 |
LINEAR_B_IDEOGRAMS, |
|
2984 |
AEGEAN_NUMBERS, |
|
2497 | 2985 |
ANCIENT_GREEK_NUMBERS, |
2986 |
ANCIENT_SYMBOLS, |
|
2987 |
PHAISTOS_DISC, |
|
2988 |
null, |
|
2989 |
LYCIAN, |
|
2990 |
CARIAN, |
|
2 | 2991 |
null, |
2992 |
OLD_ITALIC, |
|
2993 |
GOTHIC, |
|
2994 |
null, |
|
2995 |
UGARITIC, |
|
2497 | 2996 |
OLD_PERSIAN, |
2 | 2997 |
null, |
2998 |
DESERET, |
|
2999 |
SHAVIAN, |
|
3000 |
OSMANYA, |
|
3001 |
null, |
|
3002 |
CYPRIOT_SYLLABARY, |
|
7247 | 3003 |
IMPERIAL_ARAMAIC, |
2 | 3004 |
null, |
2497 | 3005 |
PHOENICIAN, |
3006 |
LYDIAN, |
|
3007 |
null, |
|
12300 | 3008 |
MEROITIC_HIEROGLYPHS, |
3009 |
MEROITIC_CURSIVE, |
|
2497 | 3010 |
KHAROSHTHI, |
7247 | 3011 |
OLD_SOUTH_ARABIAN, |
3012 |
null, |
|
3013 |
AVESTAN, |
|
3014 |
INSCRIPTIONAL_PARTHIAN, |
|
3015 |
INSCRIPTIONAL_PAHLAVI, |
|
3016 |
null, |
|
3017 |
OLD_TURKIC, |
|
3018 |
null, |
|
3019 |
RUMI_NUMERAL_SYMBOLS, |
|
3020 |
null, |
|
3021 |
BRAHMI, |
|
3022 |
KAITHI, |
|
12300 | 3023 |
SORA_SOMPENG, |
3024 |
CHAKMA, |
|
3025 |
null, |
|
3026 |
SHARADA, |
|
3027 |
null, |
|
3028 |
TAKRI, |
|
2497 | 3029 |
null, |
3030 |
CUNEIFORM, |
|
3031 |
CUNEIFORM_NUMBERS_AND_PUNCTUATION, |
|
3032 |
null, |
|
7247 | 3033 |
EGYPTIAN_HIEROGLYPHS, |
3034 |
null, |
|
3035 |
BAMUM_SUPPLEMENT, |
|
3036 |
null, |
|
12300 | 3037 |
MIAO, |
3038 |
null, |
|
7247 | 3039 |
KANA_SUPPLEMENT, |
3040 |
null, |
|
2 | 3041 |
BYZANTINE_MUSICAL_SYMBOLS, |
3042 |
MUSICAL_SYMBOLS, |
|
2497 | 3043 |
ANCIENT_GREEK_MUSICAL_NOTATION, |
2 | 3044 |
null, |
3045 |
TAI_XUAN_JING_SYMBOLS, |
|
2497 | 3046 |
COUNTING_ROD_NUMERALS, |
2 | 3047 |
null, |
3048 |
MATHEMATICAL_ALPHANUMERIC_SYMBOLS, |
|
3049 |
null, |
|
12300 | 3050 |
ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS, |
3051 |
null, |
|
2497 | 3052 |
MAHJONG_TILES, |
3053 |
DOMINO_TILES, |
|
7247 | 3054 |
PLAYING_CARDS, |
3055 |
ENCLOSED_ALPHANUMERIC_SUPPLEMENT, |
|
3056 |
ENCLOSED_IDEOGRAPHIC_SUPPLEMENT, |
|
3057 |
MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS, |
|
3058 |
EMOTICONS, |
|
3059 |
null, |
|
3060 |
TRANSPORT_AND_MAP_SYMBOLS, |
|
3061 |
ALCHEMICAL_SYMBOLS, |
|
2497 | 3062 |
null, |
2 | 3063 |
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B, |
3064 |
null, |
|
7247 | 3065 |
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C, |
3066 |
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D, |
|
3067 |
null, |
|
2 | 3068 |
CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT, |
3069 |
null, |
|
3070 |
TAGS, |
|
3071 |
null, |
|
3072 |
VARIATION_SELECTORS_SUPPLEMENT, |
|
3073 |
null, |
|
3074 |
SUPPLEMENTARY_PRIVATE_USE_AREA_A, |
|
3075 |
SUPPLEMENTARY_PRIVATE_USE_AREA_B |
|
3076 |
}; |
|
3077 |
||
3078 |
||
3079 |
/** |
|
3080 |
* Returns the object representing the Unicode block containing the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3081 |
* given character, or {@code null} if the character is not a |
2 | 3082 |
* member of a defined block. |
3083 |
* |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3084 |
* <p><b>Note:</b> This method cannot handle |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3085 |
* <a href="Character.html#supplementary"> supplementary |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3086 |
* characters</a>. To support all Unicode characters, including |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3087 |
* supplementary characters, use the {@link #of(int)} method. |
2 | 3088 |
* |
3089 |
* @param c The character in question |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3090 |
* @return The {@code UnicodeBlock} instance representing the |
2 | 3091 |
* Unicode block of which this character is a member, or |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3092 |
* {@code null} if the character is not a member of any |
2 | 3093 |
* Unicode block |
3094 |
*/ |
|
3095 |
public static UnicodeBlock of(char c) { |
|
3096 |
return of((int)c); |
|
3097 |
} |
|
3098 |
||
3099 |
/** |
|
3100 |
* Returns the object representing the Unicode block |
|
3101 |
* containing the given character (Unicode code point), or |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3102 |
* {@code null} if the character is not a member of a |
2 | 3103 |
* defined block. |
3104 |
* |
|
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3105 |
* @param codePoint the character (Unicode code point) in question. |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3106 |
* @return The {@code UnicodeBlock} instance representing the |
2 | 3107 |
* Unicode block of which this character is a member, or |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3108 |
* {@code null} if the character is not a member of any |
2 | 3109 |
* Unicode block |
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3110 |
* @exception IllegalArgumentException if the specified |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3111 |
* {@code codePoint} is an invalid Unicode code point. |
5989
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3112 |
* @see Character#isValidCodePoint(int) |
05ad44c7b244
6963749: Minor improvements to Character.UnicodeBlock
martin
parents:
5986
diff
changeset
|
3113 |
* @since 1.5 |
2 | 3114 |
*/ |
3115 |
public static UnicodeBlock of(int codePoint) { |
|
3116 |
if (!isValidCodePoint(codePoint)) { |
|
3117 |
throw new IllegalArgumentException(); |
|
3118 |
} |
|
3119 |
||
3120 |
int top, bottom, current; |
|
3121 |
bottom = 0; |
|
3122 |
top = blockStarts.length; |
|
3123 |
current = top/2; |
|
3124 |
||
3125 |
// invariant: top > current >= bottom && codePoint >= unicodeBlockStarts[bottom] |
|
3126 |
while (top - bottom > 1) { |
|
3127 |
if (codePoint >= blockStarts[current]) { |
|
3128 |
bottom = current; |
|
3129 |
} else { |
|
3130 |
top = current; |
|
3131 |
} |
|
3132 |
current = (top + bottom) / 2; |
|
3133 |
} |
|
3134 |
return blocks[current]; |
|
3135 |
} |
|
3136 |
||
3137 |
/** |
|
3138 |
* Returns the UnicodeBlock with the given name. Block |
|
3139 |
* names are determined by The Unicode Standard. The file |
|
3140 |
* Blocks-<version>.txt defines blocks for a particular |
|
3141 |
* version of the standard. The {@link Character} class specifies |
|
3142 |
* the version of the standard that it supports. |
|
3143 |
* <p> |
|
3144 |
* This method accepts block names in the following forms: |
|
3145 |
* <ol> |
|
3146 |
* <li> Canonical block names as defined by the Unicode Standard. |
|
3147 |
* For example, the standard defines a "Basic Latin" block. Therefore, this |
|
3148 |
* method accepts "Basic Latin" as a valid block name. The documentation of |
|
3149 |
* each UnicodeBlock provides the canonical name. |
|
3150 |
* <li>Canonical block names with all spaces removed. For example, "BasicLatin" |
|
3151 |
* is a valid block name for the "Basic Latin" block. |
|
3152 |
* <li>The text representation of each constant UnicodeBlock identifier. |
|
3153 |
* For example, this method will return the {@link #BASIC_LATIN} block if |
|
3154 |
* 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
|
3155 |
* hyphens in the canonical name with underscores. |
2 | 3156 |
* </ol> |
3157 |
* Finally, character case is ignored for all of the valid block name forms. |
|
3158 |
* For example, "BASIC_LATIN" and "basic_latin" are both valid block names. |
|
3159 |
* The en_US locale's case mapping rules are used to provide case-insensitive |
|
3160 |
* string comparisons for block name validation. |
|
3161 |
* <p> |
|
3162 |
* If the Unicode Standard changes block names, both the previous and |
|
3163 |
* current names will be accepted. |
|
3164 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3165 |
* @param blockName A {@code UnicodeBlock} name. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3166 |
* @return The {@code UnicodeBlock} instance identified |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3167 |
* by {@code blockName} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3168 |
* @throws IllegalArgumentException if {@code blockName} is an |
2 | 3169 |
* invalid name |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
3170 |
* @throws NullPointerException if {@code blockName} is null |
2 | 3171 |
* @since 1.5 |
3172 |
*/ |
|
3173 |
public static final UnicodeBlock forName(String blockName) { |
|
5990 | 3174 |
UnicodeBlock block = map.get(blockName.toUpperCase(Locale.US)); |
2 | 3175 |
if (block == null) { |
3176 |
throw new IllegalArgumentException(); |
|
3177 |
} |
|
3178 |
return block; |
|
3179 |
} |
|
3180 |
} |
|
3181 |
||
3182 |
||
3183 |
/** |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3184 |
* A family of character subsets representing the character scripts |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3185 |
* defined in the <a href="http://www.unicode.org/reports/tr24/"> |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3186 |
* <i>Unicode Standard Annex #24: Script Names</i></a>. Every Unicode |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3187 |
* character is assigned to a single Unicode script, either a specific |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3188 |
* script, such as {@link Character.UnicodeScript#LATIN Latin}, or |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3189 |
* one of the following three special values, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3190 |
* {@link Character.UnicodeScript#INHERITED Inherited}, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3191 |
* {@link Character.UnicodeScript#COMMON Common} or |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3192 |
* {@link Character.UnicodeScript#UNKNOWN Unknown}. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3193 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3194 |
* @since 1.7 |
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 |
public static enum UnicodeScript { |
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 |
* Unicode script "Common". |
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 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3201 |
|
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 |
* Unicode script "Latin". |
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 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3206 |
|
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 |
* Unicode script "Greek". |
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 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3211 |
|
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 |
* Unicode script "Cyrillic". |
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 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3216 |
|
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 |
* Unicode script "Armenian". |
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 |
ARMENIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3221 |
|
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 |
* Unicode script "Hebrew". |
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 |
HEBREW, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3226 |
|
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 |
* Unicode script "Arabic". |
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 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3231 |
|
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 |
* Unicode script "Syriac". |
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 |
SYRIAC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3236 |
|
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 |
* Unicode script "Thaana". |
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 |
THAANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3241 |
|
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 |
* Unicode script "Devanagari". |
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 |
DEVANAGARI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3246 |
|
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 |
* Unicode script "Bengali". |
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 |
BENGALI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3251 |
|
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 |
* Unicode script "Gurmukhi". |
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 |
GURMUKHI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3256 |
|
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 |
* Unicode script "Gujarati". |
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 |
GUJARATI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3261 |
|
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 |
* Unicode script "Oriya". |
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 |
ORIYA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3266 |
|
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 |
* Unicode script "Tamil". |
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 |
TAMIL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3271 |
|
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 |
* Unicode script "Telugu". |
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 |
TELUGU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3276 |
|
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 |
* Unicode script "Kannada". |
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 |
KANNADA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3281 |
|
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 |
* Unicode script "Malayalam". |
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 |
MALAYALAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3286 |
|
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 |
* Unicode script "Sinhala". |
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 |
SINHALA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3291 |
|
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 |
* Unicode script "Thai". |
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 |
THAI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3296 |
|
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 |
* Unicode script "Lao". |
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 |
LAO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3301 |
|
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 |
* Unicode script "Tibetan". |
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 |
TIBETAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3306 |
|
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 |
* Unicode script "Myanmar". |
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 |
MYANMAR, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3311 |
|
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 |
* Unicode script "Georgian". |
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 |
GEORGIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3316 |
|
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 |
* Unicode script "Hangul". |
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 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3321 |
|
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 |
* Unicode script "Ethiopic". |
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 |
ETHIOPIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3326 |
|
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 |
* Unicode script "Cherokee". |
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 |
CHEROKEE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3331 |
|
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 |
* Unicode script "Canadian_Aboriginal". |
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 |
CANADIAN_ABORIGINAL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3336 |
|
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 |
* Unicode script "Ogham". |
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 |
OGHAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3341 |
|
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 |
* Unicode script "Runic". |
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 |
RUNIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3346 |
|
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 |
* Unicode script "Khmer". |
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 |
KHMER, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3351 |
|
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 |
* Unicode script "Mongolian". |
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 |
MONGOLIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3356 |
|
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 |
* Unicode script "Hiragana". |
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 |
HIRAGANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3361 |
|
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 |
* Unicode script "Katakana". |
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 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3366 |
|
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 |
* Unicode script "Bopomofo". |
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 |
BOPOMOFO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3371 |
|
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 |
* Unicode script "Han". |
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 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3376 |
|
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 |
* Unicode script "Yi". |
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 |
YI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3381 |
|
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 |
* Unicode script "Old_Italic". |
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 |
OLD_ITALIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3386 |
|
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 |
* Unicode script "Gothic". |
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 |
GOTHIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3391 |
|
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 |
* Unicode script "Deseret". |
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 |
DESERET, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3396 |
|
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 |
* Unicode script "Inherited". |
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 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3401 |
|
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 |
* Unicode script "Tagalog". |
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 |
TAGALOG, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3406 |
|
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 |
* Unicode script "Hanunoo". |
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 |
HANUNOO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3411 |
|
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 |
* Unicode script "Buhid". |
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 |
BUHID, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3416 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3417 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3418 |
* Unicode script "Tagbanwa". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3419 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3420 |
TAGBANWA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3421 |
|
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 |
* Unicode script "Limbu". |
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 |
LIMBU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3426 |
|
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 |
* Unicode script "Tai_Le". |
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 |
TAI_LE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3431 |
|
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 |
* Unicode script "Linear_B". |
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 |
LINEAR_B, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3436 |
|
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 |
* Unicode script "Ugaritic". |
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 |
UGARITIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3441 |
|
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 |
* Unicode script "Shavian". |
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 |
SHAVIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3446 |
|
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 |
* Unicode script "Osmanya". |
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 |
OSMANYA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3451 |
|
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 |
* Unicode script "Cypriot". |
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 |
CYPRIOT, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3456 |
|
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 |
* Unicode script "Braille". |
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 |
BRAILLE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3461 |
|
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 |
* Unicode script "Buginese". |
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 |
BUGINESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3466 |
|
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 |
* Unicode script "Coptic". |
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 |
COPTIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3471 |
|
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 |
* Unicode script "New_Tai_Lue". |
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 |
NEW_TAI_LUE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3476 |
|
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 |
* Unicode script "Glagolitic". |
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 |
GLAGOLITIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3481 |
|
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 |
* Unicode script "Tifinagh". |
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 |
TIFINAGH, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3486 |
|
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 |
* Unicode script "Syloti_Nagri". |
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 |
SYLOTI_NAGRI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3491 |
|
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 |
* Unicode script "Old_Persian". |
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 |
OLD_PERSIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3496 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3497 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3498 |
* Unicode script "Kharoshthi". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3499 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3500 |
KHAROSHTHI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3501 |
|
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 |
* Unicode script "Balinese". |
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 |
BALINESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3506 |
|
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 |
* Unicode script "Cuneiform". |
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 |
CUNEIFORM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3511 |
|
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 |
* Unicode script "Phoenician". |
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 |
PHOENICIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3516 |
|
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 |
* Unicode script "Phags_Pa". |
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 |
PHAGS_PA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3521 |
|
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 |
* Unicode script "Nko". |
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 |
NKO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3526 |
|
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 |
* Unicode script "Sundanese". |
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 |
SUNDANESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3531 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3532 |
/** |
7247 | 3533 |
* Unicode script "Batak". |
3534 |
*/ |
|
3535 |
BATAK, |
|
3536 |
||
3537 |
/** |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3538 |
* Unicode script "Lepcha". |
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 |
LEPCHA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3541 |
|
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 |
* Unicode script "Ol_Chiki". |
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 |
OL_CHIKI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3546 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3547 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3548 |
* Unicode script "Vai". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3549 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3550 |
VAI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3551 |
|
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 |
* Unicode script "Saurashtra". |
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 |
SAURASHTRA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3556 |
|
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 |
* Unicode script "Kayah_Li". |
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 |
KAYAH_LI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3561 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3562 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3563 |
* Unicode script "Rejang". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3564 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3565 |
REJANG, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3566 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3567 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3568 |
* Unicode script "Lycian". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3569 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3570 |
LYCIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3571 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3572 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3573 |
* Unicode script "Carian". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3574 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3575 |
CARIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3576 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3577 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3578 |
* Unicode script "Lydian". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3579 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3580 |
LYDIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3581 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3582 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3583 |
* Unicode script "Cham". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3584 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3585 |
CHAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3586 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3587 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3588 |
* Unicode script "Tai_Tham". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3589 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3590 |
TAI_THAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3591 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3592 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3593 |
* Unicode script "Tai_Viet". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3594 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3595 |
TAI_VIET, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3596 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3597 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3598 |
* Unicode script "Avestan". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3599 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3600 |
AVESTAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3601 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3602 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3603 |
* Unicode script "Egyptian_Hieroglyphs". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3604 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3605 |
EGYPTIAN_HIEROGLYPHS, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3606 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3607 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3608 |
* Unicode script "Samaritan". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3609 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3610 |
SAMARITAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3611 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3612 |
/** |
7247 | 3613 |
* Unicode script "Mandaic". |
3614 |
*/ |
|
3615 |
MANDAIC, |
|
3616 |
||
3617 |
/** |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3618 |
* Unicode script "Lisu". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3619 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3620 |
LISU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3621 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3622 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3623 |
* Unicode script "Bamum". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3624 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3625 |
BAMUM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3626 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3627 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3628 |
* Unicode script "Javanese". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3629 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3630 |
JAVANESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3631 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3632 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3633 |
* Unicode script "Meetei_Mayek". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3634 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3635 |
MEETEI_MAYEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3636 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3637 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3638 |
* Unicode script "Imperial_Aramaic". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3639 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3640 |
IMPERIAL_ARAMAIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3641 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3642 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3643 |
* Unicode script "Old_South_Arabian". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3644 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3645 |
OLD_SOUTH_ARABIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3646 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3647 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3648 |
* Unicode script "Inscriptional_Parthian". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3649 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3650 |
INSCRIPTIONAL_PARTHIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3651 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3652 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3653 |
* Unicode script "Inscriptional_Pahlavi". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3654 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3655 |
INSCRIPTIONAL_PAHLAVI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3656 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3657 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3658 |
* Unicode script "Old_Turkic". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3659 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3660 |
OLD_TURKIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3661 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3662 |
/** |
7247 | 3663 |
* Unicode script "Brahmi". |
3664 |
*/ |
|
3665 |
BRAHMI, |
|
3666 |
||
3667 |
/** |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3668 |
* Unicode script "Kaithi". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3669 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3670 |
KAITHI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3671 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3672 |
/** |
12300 | 3673 |
* Unicode script "Meroitic Hieroglyphs". |
3674 |
*/ |
|
3675 |
MEROITIC_HIEROGLYPHS, |
|
3676 |
||
3677 |
/** |
|
3678 |
* Unicode script "Meroitic Cursive". |
|
3679 |
*/ |
|
3680 |
MEROITIC_CURSIVE, |
|
3681 |
||
3682 |
/** |
|
3683 |
* Unicode script "Sora Sompeng". |
|
3684 |
*/ |
|
3685 |
SORA_SOMPENG, |
|
3686 |
||
3687 |
/** |
|
3688 |
* Unicode script "Chakma". |
|
3689 |
*/ |
|
3690 |
CHAKMA, |
|
3691 |
||
3692 |
/** |
|
3693 |
* Unicode script "Sharada". |
|
3694 |
*/ |
|
3695 |
SHARADA, |
|
3696 |
||
3697 |
/** |
|
3698 |
* Unicode script "Takri". |
|
3699 |
*/ |
|
3700 |
TAKRI, |
|
3701 |
||
3702 |
/** |
|
3703 |
* Unicode script "Miao". |
|
3704 |
*/ |
|
3705 |
MIAO, |
|
3706 |
||
3707 |
/** |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3708 |
* Unicode script "Unknown". |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3709 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3710 |
UNKNOWN; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3711 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3712 |
private static final int[] scriptStarts = { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3713 |
0x0000, // 0000..0040; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3714 |
0x0041, // 0041..005A; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3715 |
0x005B, // 005B..0060; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3716 |
0x0061, // 0061..007A; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3717 |
0x007B, // 007B..00A9; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3718 |
0x00AA, // 00AA..00AA; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3719 |
0x00AB, // 00AB..00B9; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3720 |
0x00BA, // 00BA..00BA; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3721 |
0x00BB, // 00BB..00BF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3722 |
0x00C0, // 00C0..00D6; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3723 |
0x00D7, // 00D7..00D7; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3724 |
0x00D8, // 00D8..00F6; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3725 |
0x00F7, // 00F7..00F7; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3726 |
0x00F8, // 00F8..02B8; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3727 |
0x02B9, // 02B9..02DF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3728 |
0x02E0, // 02E0..02E4; LATIN |
7247 | 3729 |
0x02E5, // 02E5..02E9; COMMON |
3730 |
0x02EA, // 02EA..02EB; BOPOMOFO |
|
3731 |
0x02EC, // 02EC..02FF; COMMON |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3732 |
0x0300, // 0300..036F; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3733 |
0x0370, // 0370..0373; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3734 |
0x0374, // 0374..0374; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3735 |
0x0375, // 0375..037D; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3736 |
0x037E, // 037E..0383; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3737 |
0x0384, // 0384..0384; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3738 |
0x0385, // 0385..0385; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3739 |
0x0386, // 0386..0386; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3740 |
0x0387, // 0387..0387; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3741 |
0x0388, // 0388..03E1; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3742 |
0x03E2, // 03E2..03EF; COPTIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3743 |
0x03F0, // 03F0..03FF; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3744 |
0x0400, // 0400..0484; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3745 |
0x0485, // 0485..0486; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3746 |
0x0487, // 0487..0530; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3747 |
0x0531, // 0531..0588; ARMENIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3748 |
0x0589, // 0589..0589; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3749 |
0x058A, // 058A..0590; ARMENIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3750 |
0x0591, // 0591..05FF; HEBREW |
7247 | 3751 |
0x0600, // 0600..060B; ARABIC |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3752 |
0x060C, // 060C..060C; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3753 |
0x060D, // 060D..061A; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3754 |
0x061B, // 061B..061D; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3755 |
0x061E, // 061E..061E; ARABIC |
7247 | 3756 |
0x061F, // 061F..061F; COMMON |
3757 |
0x0620, // 0620..063F; ARABIC |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3758 |
0x0640, // 0640..0640; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3759 |
0x0641, // 0641..064A; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3760 |
0x064B, // 064B..0655; INHERITED |
14411 | 3761 |
0x0656, // 0656..065F; ARABIC |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3762 |
0x0660, // 0660..0669; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3763 |
0x066A, // 066A..066F; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3764 |
0x0670, // 0670..0670; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3765 |
0x0671, // 0671..06DC; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3766 |
0x06DD, // 06DD..06DD; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3767 |
0x06DE, // 06DE..06FF; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3768 |
0x0700, // 0700..074F; SYRIAC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3769 |
0x0750, // 0750..077F; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3770 |
0x0780, // 0780..07BF; THAANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3771 |
0x07C0, // 07C0..07FF; NKO |
7247 | 3772 |
0x0800, // 0800..083F; SAMARITAN |
12300 | 3773 |
0x0840, // 0840..089F; MANDAIC |
3774 |
0x08A0, // 08A0..08FF; ARABIC |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3775 |
0x0900, // 0900..0950; DEVANAGARI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3776 |
0x0951, // 0951..0952; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3777 |
0x0953, // 0953..0963; DEVANAGARI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3778 |
0x0964, // 0964..0965; COMMON |
12300 | 3779 |
0x0966, // 0966..0980; DEVANAGARI |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3780 |
0x0981, // 0981..0A00; BENGALI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3781 |
0x0A01, // 0A01..0A80; GURMUKHI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3782 |
0x0A81, // 0A81..0B00; GUJARATI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3783 |
0x0B01, // 0B01..0B81; ORIYA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3784 |
0x0B82, // 0B82..0C00; TAMIL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3785 |
0x0C01, // 0C01..0C81; TELUGU |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3786 |
0x0C82, // 0C82..0CF0; KANNADA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3787 |
0x0D02, // 0D02..0D81; MALAYALAM |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3788 |
0x0D82, // 0D82..0E00; SINHALA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3789 |
0x0E01, // 0E01..0E3E; THAI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3790 |
0x0E3F, // 0E3F..0E3F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3791 |
0x0E40, // 0E40..0E80; THAI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3792 |
0x0E81, // 0E81..0EFF; LAO |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3793 |
0x0F00, // 0F00..0FD4; TIBETAN |
7247 | 3794 |
0x0FD5, // 0FD5..0FD8; COMMON |
3795 |
0x0FD9, // 0FD9..0FFF; TIBETAN |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3796 |
0x1000, // 1000..109F; MYANMAR |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3797 |
0x10A0, // 10A0..10FA; GEORGIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3798 |
0x10FB, // 10FB..10FB; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3799 |
0x10FC, // 10FC..10FF; GEORGIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3800 |
0x1100, // 1100..11FF; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3801 |
0x1200, // 1200..139F; ETHIOPIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3802 |
0x13A0, // 13A0..13FF; CHEROKEE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3803 |
0x1400, // 1400..167F; CANADIAN_ABORIGINAL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3804 |
0x1680, // 1680..169F; OGHAM |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3805 |
0x16A0, // 16A0..16EA; RUNIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3806 |
0x16EB, // 16EB..16ED; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3807 |
0x16EE, // 16EE..16FF; RUNIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3808 |
0x1700, // 1700..171F; TAGALOG |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3809 |
0x1720, // 1720..1734; HANUNOO |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3810 |
0x1735, // 1735..173F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3811 |
0x1740, // 1740..175F; BUHID |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3812 |
0x1760, // 1760..177F; TAGBANWA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3813 |
0x1780, // 1780..17FF; KHMER |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3814 |
0x1800, // 1800..1801; MONGOLIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3815 |
0x1802, // 1802..1803; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3816 |
0x1804, // 1804..1804; MONGOLIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3817 |
0x1805, // 1805..1805; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3818 |
0x1806, // 1806..18AF; MONGOLIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3819 |
0x18B0, // 18B0..18FF; CANADIAN_ABORIGINAL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3820 |
0x1900, // 1900..194F; LIMBU |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3821 |
0x1950, // 1950..197F; TAI_LE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3822 |
0x1980, // 1980..19DF; NEW_TAI_LUE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3823 |
0x19E0, // 19E0..19FF; KHMER |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3824 |
0x1A00, // 1A00..1A1F; BUGINESE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3825 |
0x1A20, // 1A20..1AFF; TAI_THAM |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3826 |
0x1B00, // 1B00..1B7F; BALINESE |
7247 | 3827 |
0x1B80, // 1B80..1BBF; SUNDANESE |
3828 |
0x1BC0, // 1BC0..1BFF; BATAK |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3829 |
0x1C00, // 1C00..1C4F; LEPCHA |
12300 | 3830 |
0x1C50, // 1C50..1CBF; OL_CHIKI |
3831 |
0x1CC0, // 1CC0..1CCF; SUNDANESE |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3832 |
0x1CD0, // 1CD0..1CD2; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3833 |
0x1CD3, // 1CD3..1CD3; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3834 |
0x1CD4, // 1CD4..1CE0; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3835 |
0x1CE1, // 1CE1..1CE1; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3836 |
0x1CE2, // 1CE2..1CE8; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3837 |
0x1CE9, // 1CE9..1CEC; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3838 |
0x1CED, // 1CED..1CED; INHERITED |
12300 | 3839 |
0x1CEE, // 1CEE..1CF3; COMMON |
3840 |
0x1CF4, // 1CF4..1CF4; INHERITED |
|
3841 |
0x1CF5, // 1CF5..1CFF; COMMON |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3842 |
0x1D00, // 1D00..1D25; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3843 |
0x1D26, // 1D26..1D2A; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3844 |
0x1D2B, // 1D2B..1D2B; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3845 |
0x1D2C, // 1D2C..1D5C; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3846 |
0x1D5D, // 1D5D..1D61; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3847 |
0x1D62, // 1D62..1D65; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3848 |
0x1D66, // 1D66..1D6A; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3849 |
0x1D6B, // 1D6B..1D77; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3850 |
0x1D78, // 1D78..1D78; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3851 |
0x1D79, // 1D79..1DBE; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3852 |
0x1DBF, // 1DBF..1DBF; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3853 |
0x1DC0, // 1DC0..1DFF; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3854 |
0x1E00, // 1E00..1EFF; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3855 |
0x1F00, // 1F00..1FFF; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3856 |
0x2000, // 2000..200B; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3857 |
0x200C, // 200C..200D; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3858 |
0x200E, // 200E..2070; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3859 |
0x2071, // 2071..2073; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3860 |
0x2074, // 2074..207E; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3861 |
0x207F, // 207F..207F; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3862 |
0x2080, // 2080..208F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3863 |
0x2090, // 2090..209F; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3864 |
0x20A0, // 20A0..20CF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3865 |
0x20D0, // 20D0..20FF; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3866 |
0x2100, // 2100..2125; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3867 |
0x2126, // 2126..2126; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3868 |
0x2127, // 2127..2129; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3869 |
0x212A, // 212A..212B; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3870 |
0x212C, // 212C..2131; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3871 |
0x2132, // 2132..2132; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3872 |
0x2133, // 2133..214D; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3873 |
0x214E, // 214E..214E; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3874 |
0x214F, // 214F..215F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3875 |
0x2160, // 2160..2188; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3876 |
0x2189, // 2189..27FF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3877 |
0x2800, // 2800..28FF; BRAILLE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3878 |
0x2900, // 2900..2BFF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3879 |
0x2C00, // 2C00..2C5F; GLAGOLITIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3880 |
0x2C60, // 2C60..2C7F; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3881 |
0x2C80, // 2C80..2CFF; COPTIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3882 |
0x2D00, // 2D00..2D2F; GEORGIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3883 |
0x2D30, // 2D30..2D7F; TIFINAGH |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3884 |
0x2D80, // 2D80..2DDF; ETHIOPIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3885 |
0x2DE0, // 2DE0..2DFF; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3886 |
0x2E00, // 2E00..2E7F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3887 |
0x2E80, // 2E80..2FEF; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3888 |
0x2FF0, // 2FF0..3004; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3889 |
0x3005, // 3005..3005; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3890 |
0x3006, // 3006..3006; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3891 |
0x3007, // 3007..3007; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3892 |
0x3008, // 3008..3020; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3893 |
0x3021, // 3021..3029; HAN |
7247 | 3894 |
0x302A, // 302A..302D; INHERITED |
3895 |
0x302E, // 302E..302F; HANGUL |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3896 |
0x3030, // 3030..3037; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3897 |
0x3038, // 3038..303B; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3898 |
0x303C, // 303C..3040; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3899 |
0x3041, // 3041..3098; HIRAGANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3900 |
0x3099, // 3099..309A; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3901 |
0x309B, // 309B..309C; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3902 |
0x309D, // 309D..309F; HIRAGANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3903 |
0x30A0, // 30A0..30A0; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3904 |
0x30A1, // 30A1..30FA; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3905 |
0x30FB, // 30FB..30FC; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3906 |
0x30FD, // 30FD..3104; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3907 |
0x3105, // 3105..3130; BOPOMOFO |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3908 |
0x3131, // 3131..318F; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3909 |
0x3190, // 3190..319F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3910 |
0x31A0, // 31A0..31BF; BOPOMOFO |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3911 |
0x31C0, // 31C0..31EF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3912 |
0x31F0, // 31F0..31FF; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3913 |
0x3200, // 3200..321F; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3914 |
0x3220, // 3220..325F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3915 |
0x3260, // 3260..327E; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3916 |
0x327F, // 327F..32CF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3917 |
0x32D0, // 32D0..3357; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3918 |
0x3358, // 3358..33FF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3919 |
0x3400, // 3400..4DBF; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3920 |
0x4DC0, // 4DC0..4DFF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3921 |
0x4E00, // 4E00..9FFF; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3922 |
0xA000, // A000..A4CF; YI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3923 |
0xA4D0, // A4D0..A4FF; LISU |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3924 |
0xA500, // A500..A63F; VAI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3925 |
0xA640, // A640..A69F; CYRILLIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3926 |
0xA6A0, // A6A0..A6FF; BAMUM |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3927 |
0xA700, // A700..A721; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3928 |
0xA722, // A722..A787; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3929 |
0xA788, // A788..A78A; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3930 |
0xA78B, // A78B..A7FF; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3931 |
0xA800, // A800..A82F; SYLOTI_NAGRI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3932 |
0xA830, // A830..A83F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3933 |
0xA840, // A840..A87F; PHAGS_PA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3934 |
0xA880, // A880..A8DF; SAURASHTRA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3935 |
0xA8E0, // A8E0..A8FF; DEVANAGARI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3936 |
0xA900, // A900..A92F; KAYAH_LI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3937 |
0xA930, // A930..A95F; REJANG |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3938 |
0xA960, // A960..A97F; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3939 |
0xA980, // A980..A9FF; JAVANESE |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3940 |
0xAA00, // AA00..AA5F; CHAM |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3941 |
0xAA60, // AA60..AA7F; MYANMAR |
12300 | 3942 |
0xAA80, // AA80..AADF; TAI_VIET |
3943 |
0xAAE0, // AAE0..AB00; MEETEI_MAYEK |
|
7247 | 3944 |
0xAB01, // AB01..ABBF; ETHIOPIC |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3945 |
0xABC0, // ABC0..ABFF; MEETEI_MAYEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3946 |
0xAC00, // AC00..D7FB; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3947 |
0xD7FC, // D7FC..F8FF; UNKNOWN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3948 |
0xF900, // F900..FAFF; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3949 |
0xFB00, // FB00..FB12; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3950 |
0xFB13, // FB13..FB1C; ARMENIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3951 |
0xFB1D, // FB1D..FB4F; HEBREW |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3952 |
0xFB50, // FB50..FD3D; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3953 |
0xFD3E, // FD3E..FD4F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3954 |
0xFD50, // FD50..FDFC; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3955 |
0xFDFD, // FDFD..FDFF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3956 |
0xFE00, // FE00..FE0F; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3957 |
0xFE10, // FE10..FE1F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3958 |
0xFE20, // FE20..FE2F; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3959 |
0xFE30, // FE30..FE6F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3960 |
0xFE70, // FE70..FEFE; ARABIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3961 |
0xFEFF, // FEFF..FF20; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3962 |
0xFF21, // FF21..FF3A; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3963 |
0xFF3B, // FF3B..FF40; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3964 |
0xFF41, // FF41..FF5A; LATIN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3965 |
0xFF5B, // FF5B..FF65; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3966 |
0xFF66, // FF66..FF6F; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3967 |
0xFF70, // FF70..FF70; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3968 |
0xFF71, // FF71..FF9D; KATAKANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3969 |
0xFF9E, // FF9E..FF9F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3970 |
0xFFA0, // FFA0..FFDF; HANGUL |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3971 |
0xFFE0, // FFE0..FFFF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3972 |
0x10000, // 10000..100FF; LINEAR_B |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3973 |
0x10100, // 10100..1013F; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3974 |
0x10140, // 10140..1018F; GREEK |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3975 |
0x10190, // 10190..101FC; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3976 |
0x101FD, // 101FD..1027F; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3977 |
0x10280, // 10280..1029F; LYCIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3978 |
0x102A0, // 102A0..102FF; CARIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3979 |
0x10300, // 10300..1032F; OLD_ITALIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3980 |
0x10330, // 10330..1037F; GOTHIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3981 |
0x10380, // 10380..1039F; UGARITIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3982 |
0x103A0, // 103A0..103FF; OLD_PERSIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3983 |
0x10400, // 10400..1044F; DESERET |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3984 |
0x10450, // 10450..1047F; SHAVIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3985 |
0x10480, // 10480..107FF; OSMANYA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3986 |
0x10800, // 10800..1083F; CYPRIOT |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3987 |
0x10840, // 10840..108FF; IMPERIAL_ARAMAIC |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3988 |
0x10900, // 10900..1091F; PHOENICIAN |
12300 | 3989 |
0x10920, // 10920..1097F; LYDIAN |
3990 |
0x10980, // 10980..1099F; MEROITIC_HIEROGLYPHS |
|
3991 |
0x109A0, // 109A0..109FF; MEROITIC_CURSIVE |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3992 |
0x10A00, // 10A00..10A5F; KHAROSHTHI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3993 |
0x10A60, // 10A60..10AFF; OLD_SOUTH_ARABIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3994 |
0x10B00, // 10B00..10B3F; AVESTAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3995 |
0x10B40, // 10B40..10B5F; INSCRIPTIONAL_PARTHIAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3996 |
0x10B60, // 10B60..10BFF; INSCRIPTIONAL_PAHLAVI |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
3997 |
0x10C00, // 10C00..10E5F; OLD_TURKIC |
7247 | 3998 |
0x10E60, // 10E60..10FFF; ARABIC |
3999 |
0x11000, // 11000..1107F; BRAHMI |
|
12300 | 4000 |
0x11080, // 11080..110CF; KAITHI |
4001 |
0x110D0, // 110D0..110FF; SORA_SOMPENG |
|
4002 |
0x11100, // 11100..1117F; CHAKMA |
|
4003 |
0x11180, // 11180..1167F; SHARADA |
|
4004 |
0x11680, // 11680..116CF; TAKRI |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4005 |
0x12000, // 12000..12FFF; CUNEIFORM |
7247 | 4006 |
0x13000, // 13000..167FF; EGYPTIAN_HIEROGLYPHS |
4007 |
0x16800, // 16800..16A38; BAMUM |
|
12300 | 4008 |
0x16F00, // 16F00..16F9F; MIAO |
7247 | 4009 |
0x1B000, // 1B000..1B000; KATAKANA |
4010 |
0x1B001, // 1B001..1CFFF; HIRAGANA |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4011 |
0x1D000, // 1D000..1D166; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4012 |
0x1D167, // 1D167..1D169; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4013 |
0x1D16A, // 1D16A..1D17A; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4014 |
0x1D17B, // 1D17B..1D182; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4015 |
0x1D183, // 1D183..1D184; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4016 |
0x1D185, // 1D185..1D18B; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4017 |
0x1D18C, // 1D18C..1D1A9; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4018 |
0x1D1AA, // 1D1AA..1D1AD; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4019 |
0x1D1AE, // 1D1AE..1D1FF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4020 |
0x1D200, // 1D200..1D2FF; GREEK |
12300 | 4021 |
0x1D300, // 1D300..1EDFF; COMMON |
4022 |
0x1EE00, // 1EE00..1EFFF; ARABIC |
|
4023 |
0x1F000, // 1F000..1F1FF; COMMON |
|
7247 | 4024 |
0x1F200, // 1F200..1F200; HIRAGANA |
4025 |
0x1F201, // 1F210..1FFFF; COMMON |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4026 |
0x20000, // 20000..E0000; HAN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4027 |
0xE0001, // E0001..E00FF; COMMON |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4028 |
0xE0100, // E0100..E01EF; INHERITED |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4029 |
0xE01F0 // E01F0..10FFFF; UNKNOWN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4030 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4031 |
}; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4032 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4033 |
private static final UnicodeScript[] scripts = { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4034 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4035 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4036 |
COMMON, |
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 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4039 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4040 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4041 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4042 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4043 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4044 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4045 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4046 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4047 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4048 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4049 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4050 |
COMMON, |
7247 | 4051 |
BOPOMOFO, |
4052 |
COMMON, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4053 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4054 |
GREEK, |
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 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4057 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4058 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4059 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4060 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4061 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4062 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4063 |
COPTIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4064 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4065 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4066 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4067 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4068 |
ARMENIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4069 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4070 |
ARMENIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4071 |
HEBREW, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4072 |
ARABIC, |
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 |
ARABIC, |
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 |
ARABIC, |
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 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4079 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4080 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4081 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4082 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4083 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4084 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4085 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4086 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4087 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4088 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4089 |
SYRIAC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4090 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4091 |
THAANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4092 |
NKO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4093 |
SAMARITAN, |
7247 | 4094 |
MANDAIC, |
12300 | 4095 |
ARABIC, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4096 |
DEVANAGARI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4097 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4098 |
DEVANAGARI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4099 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4100 |
DEVANAGARI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4101 |
BENGALI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4102 |
GURMUKHI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4103 |
GUJARATI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4104 |
ORIYA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4105 |
TAMIL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4106 |
TELUGU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4107 |
KANNADA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4108 |
MALAYALAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4109 |
SINHALA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4110 |
THAI, |
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 |
THAI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4113 |
LAO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4114 |
TIBETAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4115 |
COMMON, |
7247 | 4116 |
TIBETAN, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4117 |
MYANMAR, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4118 |
GEORGIAN, |
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 |
GEORGIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4121 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4122 |
ETHIOPIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4123 |
CHEROKEE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4124 |
CANADIAN_ABORIGINAL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4125 |
OGHAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4126 |
RUNIC, |
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 |
RUNIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4129 |
TAGALOG, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4130 |
HANUNOO, |
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 |
BUHID, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4133 |
TAGBANWA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4134 |
KHMER, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4135 |
MONGOLIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4136 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4137 |
MONGOLIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4138 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4139 |
MONGOLIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4140 |
CANADIAN_ABORIGINAL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4141 |
LIMBU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4142 |
TAI_LE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4143 |
NEW_TAI_LUE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4144 |
KHMER, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4145 |
BUGINESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4146 |
TAI_THAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4147 |
BALINESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4148 |
SUNDANESE, |
7247 | 4149 |
BATAK, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4150 |
LEPCHA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4151 |
OL_CHIKI, |
12300 | 4152 |
SUNDANESE, |
4153 |
INHERITED, |
|
4154 |
COMMON, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4155 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4156 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4157 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4158 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4159 |
INHERITED, |
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 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4164 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4165 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4166 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4167 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4168 |
LATIN, |
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 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4171 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4172 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4173 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4174 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4175 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4176 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4177 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4178 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4179 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4180 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4181 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4182 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4183 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4184 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4185 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4186 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4187 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4188 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4189 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4190 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4191 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4192 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4193 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4194 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4195 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4196 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4197 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4198 |
BRAILLE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4199 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4200 |
GLAGOLITIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4201 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4202 |
COPTIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4203 |
GEORGIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4204 |
TIFINAGH, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4205 |
ETHIOPIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4206 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4207 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4208 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4209 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4210 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4211 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4212 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4213 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4214 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4215 |
INHERITED, |
7247 | 4216 |
HANGUL, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4217 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4218 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4219 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4220 |
HIRAGANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4221 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4222 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4223 |
HIRAGANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4224 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4225 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4226 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4227 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4228 |
BOPOMOFO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4229 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4230 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4231 |
BOPOMOFO, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4232 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4233 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4234 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4235 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4236 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4237 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4238 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4239 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4240 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4241 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4242 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4243 |
YI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4244 |
LISU, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4245 |
VAI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4246 |
CYRILLIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4247 |
BAMUM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4248 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4249 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4250 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4251 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4252 |
SYLOTI_NAGRI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4253 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4254 |
PHAGS_PA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4255 |
SAURASHTRA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4256 |
DEVANAGARI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4257 |
KAYAH_LI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4258 |
REJANG, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4259 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4260 |
JAVANESE, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4261 |
CHAM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4262 |
MYANMAR, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4263 |
TAI_VIET, |
12300 | 4264 |
MEETEI_MAYEK, |
7247 | 4265 |
ETHIOPIC, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4266 |
MEETEI_MAYEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4267 |
HANGUL, |
12300 | 4268 |
UNKNOWN , |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4269 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4270 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4271 |
ARMENIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4272 |
HEBREW, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4273 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4274 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4275 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4276 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4277 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4278 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4279 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4280 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4281 |
ARABIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4282 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4283 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4284 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4285 |
LATIN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4286 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4287 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4288 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4289 |
KATAKANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4290 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4291 |
HANGUL, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4292 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4293 |
LINEAR_B, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4294 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4295 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4296 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4297 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4298 |
LYCIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4299 |
CARIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4300 |
OLD_ITALIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4301 |
GOTHIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4302 |
UGARITIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4303 |
OLD_PERSIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4304 |
DESERET, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4305 |
SHAVIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4306 |
OSMANYA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4307 |
CYPRIOT, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4308 |
IMPERIAL_ARAMAIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4309 |
PHOENICIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4310 |
LYDIAN, |
12300 | 4311 |
MEROITIC_HIEROGLYPHS, |
4312 |
MEROITIC_CURSIVE, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4313 |
KHAROSHTHI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4314 |
OLD_SOUTH_ARABIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4315 |
AVESTAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4316 |
INSCRIPTIONAL_PARTHIAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4317 |
INSCRIPTIONAL_PAHLAVI, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4318 |
OLD_TURKIC, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4319 |
ARABIC, |
7247 | 4320 |
BRAHMI, |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4321 |
KAITHI, |
12300 | 4322 |
SORA_SOMPENG, |
4323 |
CHAKMA, |
|
4324 |
SHARADA, |
|
4325 |
TAKRI, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4326 |
CUNEIFORM, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4327 |
EGYPTIAN_HIEROGLYPHS, |
7247 | 4328 |
BAMUM, |
12300 | 4329 |
MIAO, |
7247 | 4330 |
KATAKANA, |
4331 |
HIRAGANA, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4332 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4333 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4334 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4335 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4336 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4337 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4338 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4339 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4340 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4341 |
GREEK, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4342 |
COMMON, |
12300 | 4343 |
ARABIC, |
4344 |
COMMON, |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4345 |
HIRAGANA, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4346 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4347 |
HAN, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4348 |
COMMON, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4349 |
INHERITED, |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4350 |
UNKNOWN |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4351 |
}; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4352 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4353 |
private static HashMap<String, Character.UnicodeScript> aliases; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4354 |
static { |
7803
56bc97d69d93
6880112: Project Coin: Port JDK core library code to use diamond operator
smarks
parents:
7247
diff
changeset
|
4355 |
aliases = new HashMap<>(128); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4356 |
aliases.put("ARAB", ARABIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4357 |
aliases.put("ARMI", IMPERIAL_ARAMAIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4358 |
aliases.put("ARMN", ARMENIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4359 |
aliases.put("AVST", AVESTAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4360 |
aliases.put("BALI", BALINESE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4361 |
aliases.put("BAMU", BAMUM); |
9250 | 4362 |
aliases.put("BATK", BATAK); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4363 |
aliases.put("BENG", BENGALI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4364 |
aliases.put("BOPO", BOPOMOFO); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4365 |
aliases.put("BRAI", BRAILLE); |
9250 | 4366 |
aliases.put("BRAH", BRAHMI); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4367 |
aliases.put("BUGI", BUGINESE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4368 |
aliases.put("BUHD", BUHID); |
12300 | 4369 |
aliases.put("CAKM", CHAKMA); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4370 |
aliases.put("CANS", CANADIAN_ABORIGINAL); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4371 |
aliases.put("CARI", CARIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4372 |
aliases.put("CHAM", CHAM); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4373 |
aliases.put("CHER", CHEROKEE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4374 |
aliases.put("COPT", COPTIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4375 |
aliases.put("CPRT", CYPRIOT); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4376 |
aliases.put("CYRL", CYRILLIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4377 |
aliases.put("DEVA", DEVANAGARI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4378 |
aliases.put("DSRT", DESERET); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4379 |
aliases.put("EGYP", EGYPTIAN_HIEROGLYPHS); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4380 |
aliases.put("ETHI", ETHIOPIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4381 |
aliases.put("GEOR", GEORGIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4382 |
aliases.put("GLAG", GLAGOLITIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4383 |
aliases.put("GOTH", GOTHIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4384 |
aliases.put("GREK", GREEK); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4385 |
aliases.put("GUJR", GUJARATI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4386 |
aliases.put("GURU", GURMUKHI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4387 |
aliases.put("HANG", HANGUL); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4388 |
aliases.put("HANI", HAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4389 |
aliases.put("HANO", HANUNOO); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4390 |
aliases.put("HEBR", HEBREW); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4391 |
aliases.put("HIRA", HIRAGANA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4392 |
// it appears we don't have the KATAKANA_OR_HIRAGANA |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4393 |
//aliases.put("HRKT", KATAKANA_OR_HIRAGANA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4394 |
aliases.put("ITAL", OLD_ITALIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4395 |
aliases.put("JAVA", JAVANESE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4396 |
aliases.put("KALI", KAYAH_LI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4397 |
aliases.put("KANA", KATAKANA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4398 |
aliases.put("KHAR", KHAROSHTHI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4399 |
aliases.put("KHMR", KHMER); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4400 |
aliases.put("KNDA", KANNADA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4401 |
aliases.put("KTHI", KAITHI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4402 |
aliases.put("LANA", TAI_THAM); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4403 |
aliases.put("LAOO", LAO); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4404 |
aliases.put("LATN", LATIN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4405 |
aliases.put("LEPC", LEPCHA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4406 |
aliases.put("LIMB", LIMBU); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4407 |
aliases.put("LINB", LINEAR_B); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4408 |
aliases.put("LISU", LISU); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4409 |
aliases.put("LYCI", LYCIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4410 |
aliases.put("LYDI", LYDIAN); |
9250 | 4411 |
aliases.put("MAND", MANDAIC); |
12300 | 4412 |
aliases.put("MERC", MEROITIC_CURSIVE); |
4413 |
aliases.put("MERO", MEROITIC_HIEROGLYPHS); |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4414 |
aliases.put("MLYM", MALAYALAM); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4415 |
aliases.put("MONG", MONGOLIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4416 |
aliases.put("MTEI", MEETEI_MAYEK); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4417 |
aliases.put("MYMR", MYANMAR); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4418 |
aliases.put("NKOO", NKO); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4419 |
aliases.put("OGAM", OGHAM); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4420 |
aliases.put("OLCK", OL_CHIKI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4421 |
aliases.put("ORKH", OLD_TURKIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4422 |
aliases.put("ORYA", ORIYA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4423 |
aliases.put("OSMA", OSMANYA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4424 |
aliases.put("PHAG", PHAGS_PA); |
12300 | 4425 |
aliases.put("PLRD", MIAO); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4426 |
aliases.put("PHLI", INSCRIPTIONAL_PAHLAVI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4427 |
aliases.put("PHNX", PHOENICIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4428 |
aliases.put("PRTI", INSCRIPTIONAL_PARTHIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4429 |
aliases.put("RJNG", REJANG); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4430 |
aliases.put("RUNR", RUNIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4431 |
aliases.put("SAMR", SAMARITAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4432 |
aliases.put("SARB", OLD_SOUTH_ARABIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4433 |
aliases.put("SAUR", SAURASHTRA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4434 |
aliases.put("SHAW", SHAVIAN); |
12300 | 4435 |
aliases.put("SHRD", SHARADA); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4436 |
aliases.put("SINH", SINHALA); |
12300 | 4437 |
aliases.put("SORA", SORA_SOMPENG); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4438 |
aliases.put("SUND", SUNDANESE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4439 |
aliases.put("SYLO", SYLOTI_NAGRI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4440 |
aliases.put("SYRC", SYRIAC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4441 |
aliases.put("TAGB", TAGBANWA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4442 |
aliases.put("TALE", TAI_LE); |
12300 | 4443 |
aliases.put("TAKR", TAKRI); |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4444 |
aliases.put("TALU", NEW_TAI_LUE); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4445 |
aliases.put("TAML", TAMIL); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4446 |
aliases.put("TAVT", TAI_VIET); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4447 |
aliases.put("TELU", TELUGU); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4448 |
aliases.put("TFNG", TIFINAGH); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4449 |
aliases.put("TGLG", TAGALOG); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4450 |
aliases.put("THAA", THAANA); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4451 |
aliases.put("THAI", THAI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4452 |
aliases.put("TIBT", TIBETAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4453 |
aliases.put("UGAR", UGARITIC); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4454 |
aliases.put("VAII", VAI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4455 |
aliases.put("XPEO", OLD_PERSIAN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4456 |
aliases.put("XSUX", CUNEIFORM); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4457 |
aliases.put("YIII", YI); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4458 |
aliases.put("ZINH", INHERITED); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4459 |
aliases.put("ZYYY", COMMON); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4460 |
aliases.put("ZZZZ", UNKNOWN); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4461 |
} |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4462 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4463 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4464 |
* Returns the enum constant representing the Unicode script of which |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4465 |
* the given character (Unicode code point) is assigned to. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4466 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4467 |
* @param codePoint the character (Unicode code point) in question. |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4468 |
* @return The {@code UnicodeScript} constant representing the |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4469 |
* Unicode script of which this character is assigned to. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4470 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4471 |
* @exception IllegalArgumentException if the specified |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4472 |
* {@code codePoint} is an invalid Unicode code point. |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4473 |
* @see Character#isValidCodePoint(int) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4474 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4475 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4476 |
public static UnicodeScript of(int codePoint) { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4477 |
if (!isValidCodePoint(codePoint)) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4478 |
throw new IllegalArgumentException(); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4479 |
int type = getType(codePoint); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4480 |
// leave SURROGATE and PRIVATE_USE for table lookup |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4481 |
if (type == UNASSIGNED) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4482 |
return UNKNOWN; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4483 |
int index = Arrays.binarySearch(scriptStarts, codePoint); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4484 |
if (index < 0) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4485 |
index = -index - 2; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4486 |
return scripts[index]; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4487 |
} |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4488 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4489 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4490 |
* Returns the UnicodeScript constant with the given Unicode script |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4491 |
* 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
|
4492 |
* determined by The Unicode Standard. The files Scripts<version>.txt |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4493 |
* and PropertyValueAliases<version>.txt define script names |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4494 |
* and the script name aliases for a particular version of the |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4495 |
* standard. The {@link Character} class specifies the version of |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4496 |
* the standard that it supports. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4497 |
* <p> |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4498 |
* Character case is ignored for all of the valid script names. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4499 |
* 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
|
4500 |
* case-insensitive string comparisons for script name validation. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4501 |
* <p> |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4502 |
* |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4503 |
* @param scriptName A {@code UnicodeScript} name. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4504 |
* @return The {@code UnicodeScript} constant identified |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4505 |
* by {@code scriptName} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4506 |
* @throws IllegalArgumentException if {@code scriptName} is an |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4507 |
* invalid name |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4508 |
* @throws NullPointerException if {@code scriptName} is null |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4509 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4510 |
public static final UnicodeScript forName(String scriptName) { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4511 |
scriptName = scriptName.toUpperCase(Locale.ENGLISH); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4512 |
//.replace(' ', '_')); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4513 |
UnicodeScript sc = aliases.get(scriptName); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4514 |
if (sc != null) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4515 |
return sc; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4516 |
return valueOf(scriptName); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4517 |
} |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4518 |
} |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4519 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
4520 |
/** |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4521 |
* The value of the {@code Character}. |
2 | 4522 |
* |
4523 |
* @serial |
|
4524 |
*/ |
|
4525 |
private final char value; |
|
4526 |
||
4527 |
/** use serialVersionUID from JDK 1.0.2 for interoperability */ |
|
4528 |
private static final long serialVersionUID = 3786198910865385080L; |
|
4529 |
||
4530 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4531 |
* Constructs a newly allocated {@code Character} object that |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4532 |
* represents the specified {@code char} value. |
2 | 4533 |
* |
4534 |
* @param value the value to be represented by the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4535 |
* {@code Character} object. |
2 | 4536 |
*/ |
4537 |
public Character(char value) { |
|
4538 |
this.value = value; |
|
4539 |
} |
|
4540 |
||
4541 |
private static class CharacterCache { |
|
4542 |
private CharacterCache(){} |
|
4543 |
||
4544 |
static final Character cache[] = new Character[127 + 1]; |
|
4545 |
||
4546 |
static { |
|
5990 | 4547 |
for (int i = 0; i < cache.length; i++) |
2 | 4548 |
cache[i] = new Character((char)i); |
4549 |
} |
|
4550 |
} |
|
4551 |
||
4552 |
/** |
|
4553 |
* Returns a <tt>Character</tt> instance representing the specified |
|
4554 |
* <tt>char</tt> value. |
|
4555 |
* If a new <tt>Character</tt> instance is not required, this method |
|
4556 |
* should generally be used in preference to the constructor |
|
4557 |
* {@link #Character(char)}, as this method is likely to yield |
|
4558 |
* significantly better space and time performance by caching |
|
4559 |
* frequently requested values. |
|
4560 |
* |
|
3719 | 4561 |
* This method will always cache values in the range {@code |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4562 |
* '\u005Cu0000'} to {@code '\u005Cu007F'}, inclusive, and may |
3719 | 4563 |
* 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
|
4564 |
* |
2 | 4565 |
* @param c a char value. |
4566 |
* @return a <tt>Character</tt> instance representing <tt>c</tt>. |
|
4567 |
* @since 1.5 |
|
4568 |
*/ |
|
4569 |
public static Character valueOf(char c) { |
|
5990 | 4570 |
if (c <= 127) { // must cache |
2 | 4571 |
return CharacterCache.cache[(int)c]; |
4572 |
} |
|
4573 |
return new Character(c); |
|
4574 |
} |
|
4575 |
||
4576 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4577 |
* Returns the value of this {@code Character} object. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4578 |
* @return the primitive {@code char} value represented by |
2 | 4579 |
* this object. |
4580 |
*/ |
|
4581 |
public char charValue() { |
|
4582 |
return value; |
|
4583 |
} |
|
4584 |
||
4585 |
/** |
|
3942
685e04a98396
4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents:
3719
diff
changeset
|
4586 |
* 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
|
4587 |
* of invoking {@code charValue()}. |
685e04a98396
4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents:
3719
diff
changeset
|
4588 |
* |
685e04a98396
4245470: algorithm of java.lang.Byte.hashCode() is not specified
martin
parents:
3719
diff
changeset
|
4589 |
* @return a hash code value for this {@code Character} |
2 | 4590 |
*/ |
14503
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4591 |
@Override |
2 | 4592 |
public int hashCode() { |
14503
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4593 |
return Character.hashCode(value); |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4594 |
} |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4595 |
|
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4596 |
/** |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4597 |
* Returns a hash code for a {@code char} value; compatible with |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4598 |
* {@code Character.hashCode()}. |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4599 |
* |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4600 |
* @since 1.8 |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4601 |
* |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4602 |
* @return a hash code value for a {@code char} value. |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4603 |
*/ |
0729d9e57ed5
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mduigou
parents:
14411
diff
changeset
|
4604 |
public static int hashCode(char value) { |
2 | 4605 |
return (int)value; |
4606 |
} |
|
4607 |
||
4608 |
/** |
|
4609 |
* Compares this object against the specified object. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4610 |
* The result is {@code true} if and only if the argument is not |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4611 |
* {@code null} and is a {@code Character} object that |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4612 |
* represents the same {@code char} value as this object. |
2 | 4613 |
* |
4614 |
* @param obj the object to compare with. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4615 |
* @return {@code true} if the objects are the same; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4616 |
* {@code false} otherwise. |
2 | 4617 |
*/ |
4618 |
public boolean equals(Object obj) { |
|
4619 |
if (obj instanceof Character) { |
|
4620 |
return value == ((Character)obj).charValue(); |
|
4621 |
} |
|
4622 |
return false; |
|
4623 |
} |
|
4624 |
||
4625 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4626 |
* Returns a {@code String} object representing this |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4627 |
* {@code Character}'s value. The result is a string of |
2 | 4628 |
* length 1 whose sole component is the primitive |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4629 |
* {@code char} value represented by this |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4630 |
* {@code Character} object. |
2 | 4631 |
* |
4632 |
* @return a string representation of this object. |
|
4633 |
*/ |
|
4634 |
public String toString() { |
|
4635 |
char buf[] = {value}; |
|
4636 |
return String.valueOf(buf); |
|
4637 |
} |
|
4638 |
||
4639 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4640 |
* Returns a {@code String} object representing the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4641 |
* specified {@code char}. The result is a string of length |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4642 |
* 1 consisting solely of the specified {@code char}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4643 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4644 |
* @param c the {@code char} to be converted |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4645 |
* @return the string representation of the specified {@code char} |
2 | 4646 |
* @since 1.4 |
4647 |
*/ |
|
4648 |
public static String toString(char c) { |
|
4649 |
return String.valueOf(c); |
|
4650 |
} |
|
4651 |
||
4652 |
/** |
|
3714 | 4653 |
* Determines whether the specified code point is a valid |
4654 |
* <a href="http://www.unicode.org/glossary/#code_point"> |
|
4655 |
* Unicode code point value</a>. |
|
2 | 4656 |
* |
4657 |
* @param codePoint the Unicode code point to be tested |
|
3714 | 4658 |
* @return {@code true} if the specified code point value is between |
4659 |
* {@link #MIN_CODE_POINT} and |
|
4660 |
* {@link #MAX_CODE_POINT} inclusive; |
|
4661 |
* {@code false} otherwise. |
|
2 | 4662 |
* @since 1.5 |
4663 |
*/ |
|
4664 |
public static boolean isValidCodePoint(int codePoint) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4665 |
// Optimized form of: |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4666 |
// codePoint >= MIN_CODE_POINT && codePoint <= MAX_CODE_POINT |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4667 |
int plane = codePoint >>> 16; |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4668 |
return plane < ((MAX_CODE_POINT + 1) >>> 16); |
2 | 4669 |
} |
4670 |
||
4671 |
/** |
|
4672 |
* Determines whether the specified character (Unicode code point) |
|
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4673 |
* is in the <a href="#BMP">Basic Multilingual Plane (BMP)</a>. |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4674 |
* Such code points can be represented using a single {@code char}. |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4675 |
* |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4676 |
* @param codePoint the character (Unicode code point) to be tested |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4677 |
* @return {@code true} if the specified code point is between |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4678 |
* {@link #MIN_VALUE} and {@link #MAX_VALUE} inclusive; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4679 |
* {@code false} otherwise. |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4680 |
* @since 1.7 |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4681 |
*/ |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4682 |
public static boolean isBmpCodePoint(int codePoint) { |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4683 |
return codePoint >>> 16 == 0; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4684 |
// Optimized form of: |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4685 |
// codePoint >= MIN_VALUE && codePoint <= MAX_VALUE |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4686 |
// We consistently use logical shift (>>>) to facilitate |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4687 |
// additional runtime optimizations. |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4688 |
} |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4689 |
|
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4690 |
/** |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
4691 |
* Determines whether the specified character (Unicode code point) |
3714 | 4692 |
* is in the <a href="#supplementary">supplementary character</a> range. |
2 | 4693 |
* |
4694 |
* @param codePoint the character (Unicode code point) to be tested |
|
3714 | 4695 |
* @return {@code true} if the specified code point is between |
4696 |
* {@link #MIN_SUPPLEMENTARY_CODE_POINT} and |
|
4697 |
* {@link #MAX_CODE_POINT} inclusive; |
|
4698 |
* {@code false} otherwise. |
|
2 | 4699 |
* @since 1.5 |
4700 |
*/ |
|
4701 |
public static boolean isSupplementaryCodePoint(int codePoint) { |
|
4702 |
return codePoint >= MIN_SUPPLEMENTARY_CODE_POINT |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4703 |
&& codePoint < MAX_CODE_POINT + 1; |
2 | 4704 |
} |
4705 |
||
4706 |
/** |
|
3714 | 4707 |
* Determines if the given {@code char} value is a |
4708 |
* <a href="http://www.unicode.org/glossary/#high_surrogate_code_unit"> |
|
4709 |
* Unicode high-surrogate code unit</a> |
|
4710 |
* (also known as <i>leading-surrogate code unit</i>). |
|
2 | 4711 |
* |
3714 | 4712 |
* <p>Such values do not represent characters by themselves, |
4713 |
* but are used in the representation of |
|
4714 |
* <a href="#supplementary">supplementary characters</a> |
|
4715 |
* in the UTF-16 encoding. |
|
2 | 4716 |
* |
3714 | 4717 |
* @param ch the {@code char} value to be tested. |
4718 |
* @return {@code true} if the {@code char} value is between |
|
4719 |
* {@link #MIN_HIGH_SURROGATE} and |
|
4720 |
* {@link #MAX_HIGH_SURROGATE} inclusive; |
|
4721 |
* {@code false} otherwise. |
|
5990 | 4722 |
* @see Character#isLowSurrogate(char) |
3714 | 4723 |
* @see Character.UnicodeBlock#of(int) |
4724 |
* @since 1.5 |
|
2 | 4725 |
*/ |
4726 |
public static boolean isHighSurrogate(char ch) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4727 |
// Help VM constant-fold; MAX_HIGH_SURROGATE + 1 == MIN_LOW_SURROGATE |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4728 |
return ch >= MIN_HIGH_SURROGATE && ch < (MAX_HIGH_SURROGATE + 1); |
2 | 4729 |
} |
4730 |
||
4731 |
/** |
|
3714 | 4732 |
* Determines if the given {@code char} value is a |
4733 |
* <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit"> |
|
4734 |
* Unicode low-surrogate code unit</a> |
|
4735 |
* (also known as <i>trailing-surrogate code unit</i>). |
|
2 | 4736 |
* |
3714 | 4737 |
* <p>Such values do not represent characters by themselves, |
4738 |
* but are used in the representation of |
|
4739 |
* <a href="#supplementary">supplementary characters</a> |
|
4740 |
* in the UTF-16 encoding. |
|
2 | 4741 |
* |
3714 | 4742 |
* @param ch the {@code char} value to be tested. |
4743 |
* @return {@code true} if the {@code char} value is between |
|
4744 |
* {@link #MIN_LOW_SURROGATE} and |
|
4745 |
* {@link #MAX_LOW_SURROGATE} inclusive; |
|
4746 |
* {@code false} otherwise. |
|
5990 | 4747 |
* @see Character#isHighSurrogate(char) |
3714 | 4748 |
* @since 1.5 |
2 | 4749 |
*/ |
4750 |
public static boolean isLowSurrogate(char ch) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4751 |
return ch >= MIN_LOW_SURROGATE && ch < (MAX_LOW_SURROGATE + 1); |
2 | 4752 |
} |
4753 |
||
4754 |
/** |
|
3714 | 4755 |
* Determines if the given {@code char} value is a Unicode |
4756 |
* <i>surrogate code unit</i>. |
|
4757 |
* |
|
4758 |
* <p>Such values do not represent characters by themselves, |
|
4759 |
* but are used in the representation of |
|
4760 |
* <a href="#supplementary">supplementary characters</a> |
|
4761 |
* in the UTF-16 encoding. |
|
4762 |
* |
|
4763 |
* <p>A char value is a surrogate code unit if and only if it is either |
|
4764 |
* a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or |
|
4765 |
* a {@linkplain #isHighSurrogate(char) high-surrogate code unit}. |
|
4766 |
* |
|
4767 |
* @param ch the {@code char} value to be tested. |
|
4768 |
* @return {@code true} if the {@code char} value is between |
|
4769 |
* {@link #MIN_SURROGATE} and |
|
4770 |
* {@link #MAX_SURROGATE} inclusive; |
|
4771 |
* {@code false} otherwise. |
|
4772 |
* @since 1.7 |
|
4773 |
*/ |
|
4774 |
public static boolean isSurrogate(char ch) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4775 |
return ch >= MIN_SURROGATE && ch < (MAX_SURROGATE + 1); |
3714 | 4776 |
} |
4777 |
||
4778 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4779 |
* Determines whether the specified pair of {@code char} |
3714 | 4780 |
* values is a valid |
4781 |
* <a href="http://www.unicode.org/glossary/#surrogate_pair"> |
|
4782 |
* Unicode surrogate pair</a>. |
|
4783 |
||
4784 |
* <p>This method is equivalent to the expression: |
|
2 | 4785 |
* <blockquote><pre> |
4786 |
* isHighSurrogate(high) && isLowSurrogate(low) |
|
4787 |
* </pre></blockquote> |
|
4788 |
* |
|
4789 |
* @param high the high-surrogate code value to be tested |
|
4790 |
* @param low the low-surrogate code value to be tested |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4791 |
* @return {@code true} if the specified high and |
2 | 4792 |
* low-surrogate code values represent a valid surrogate pair; |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4793 |
* {@code false} otherwise. |
2 | 4794 |
* @since 1.5 |
4795 |
*/ |
|
4796 |
public static boolean isSurrogatePair(char high, char low) { |
|
4797 |
return isHighSurrogate(high) && isLowSurrogate(low); |
|
4798 |
} |
|
4799 |
||
4800 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4801 |
* Determines the number of {@code char} values needed to |
2 | 4802 |
* represent the specified character (Unicode code point). If the |
4803 |
* specified character is equal to or greater than 0x10000, then |
|
4804 |
* the method returns 2. Otherwise, the method returns 1. |
|
4805 |
* |
|
4806 |
* <p>This method doesn't validate the specified character to be a |
|
4807 |
* valid Unicode code point. The caller must validate the |
|
4808 |
* character value using {@link #isValidCodePoint(int) isValidCodePoint} |
|
4809 |
* if necessary. |
|
4810 |
* |
|
4811 |
* @param codePoint the character (Unicode code point) to be tested. |
|
4812 |
* @return 2 if the character is a valid supplementary character; 1 otherwise. |
|
5990 | 4813 |
* @see Character#isSupplementaryCodePoint(int) |
2 | 4814 |
* @since 1.5 |
4815 |
*/ |
|
4816 |
public static int charCount(int codePoint) { |
|
5990 | 4817 |
return codePoint >= MIN_SUPPLEMENTARY_CODE_POINT ? 2 : 1; |
2 | 4818 |
} |
4819 |
||
4820 |
/** |
|
4821 |
* Converts the specified surrogate pair to its supplementary code |
|
4822 |
* point value. This method does not validate the specified |
|
4823 |
* surrogate pair. The caller must validate it using {@link |
|
4824 |
* #isSurrogatePair(char, char) isSurrogatePair} if necessary. |
|
4825 |
* |
|
4826 |
* @param high the high-surrogate code unit |
|
4827 |
* @param low the low-surrogate code unit |
|
4828 |
* @return the supplementary code point composed from the |
|
4829 |
* specified surrogate pair. |
|
4830 |
* @since 1.5 |
|
4831 |
*/ |
|
4832 |
public static int toCodePoint(char high, char low) { |
|
3323
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4833 |
// Optimized form of: |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4834 |
// return ((high - MIN_HIGH_SURROGATE) << 10) |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4835 |
// + (low - MIN_LOW_SURROGATE) |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4836 |
// + MIN_SUPPLEMENTARY_CODE_POINT; |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4837 |
return ((high << 10) + low) + (MIN_SUPPLEMENTARY_CODE_POINT |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4838 |
- (MIN_HIGH_SURROGATE << 10) |
29b6893c6188
6639443: Character.toCodePoint and Character.toSurrogates can be optimized
martin
parents:
3224
diff
changeset
|
4839 |
- MIN_LOW_SURROGATE); |
2 | 4840 |
} |
4841 |
||
4842 |
/** |
|
4843 |
* Returns the code point at the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4844 |
* {@code CharSequence}. If the {@code char} value at |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4845 |
* the given index in the {@code CharSequence} is in the |
2 | 4846 |
* high-surrogate range, the following index is less than the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4847 |
* length of the {@code CharSequence}, and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4848 |
* {@code char} value at the following index is in the |
2 | 4849 |
* low-surrogate range, then the supplementary code point |
4850 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4851 |
* the {@code char} value at the given index is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4852 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4853 |
* @param seq a sequence of {@code char} values (Unicode code |
2 | 4854 |
* units) |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4855 |
* @param index the index to the {@code char} values (Unicode |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4856 |
* code units) in {@code seq} to be converted |
2 | 4857 |
* @return the Unicode code point at the given index |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4858 |
* @exception NullPointerException if {@code seq} is null. |
2 | 4859 |
* @exception IndexOutOfBoundsException if the value |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4860 |
* {@code index} is negative or not less than |
2 | 4861 |
* {@link CharSequence#length() seq.length()}. |
4862 |
* @since 1.5 |
|
4863 |
*/ |
|
4864 |
public static int codePointAt(CharSequence seq, int index) { |
|
4865 |
char c1 = seq.charAt(index++); |
|
4866 |
if (isHighSurrogate(c1)) { |
|
4867 |
if (index < seq.length()) { |
|
4868 |
char c2 = seq.charAt(index); |
|
4869 |
if (isLowSurrogate(c2)) { |
|
4870 |
return toCodePoint(c1, c2); |
|
4871 |
} |
|
4872 |
} |
|
4873 |
} |
|
4874 |
return c1; |
|
4875 |
} |
|
4876 |
||
4877 |
/** |
|
4878 |
* Returns the code point at the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4879 |
* {@code char} array. If the {@code char} value at |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4880 |
* the given index in the {@code char} array is in the |
2 | 4881 |
* high-surrogate range, the following index is less than the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4882 |
* length of the {@code char} array, and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4883 |
* {@code char} value at the following index is in the |
2 | 4884 |
* low-surrogate range, then the supplementary code point |
4885 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4886 |
* the {@code char} value at the given index is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4887 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4888 |
* @param a the {@code char} array |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4889 |
* @param index the index to the {@code char} values (Unicode |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4890 |
* code units) in the {@code char} array to be converted |
2 | 4891 |
* @return the Unicode code point at the given index |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4892 |
* @exception NullPointerException if {@code a} is null. |
2 | 4893 |
* @exception IndexOutOfBoundsException if the value |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4894 |
* {@code index} is negative or not less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4895 |
* the length of the {@code char} array. |
2 | 4896 |
* @since 1.5 |
4897 |
*/ |
|
4898 |
public static int codePointAt(char[] a, int index) { |
|
4899 |
return codePointAtImpl(a, index, a.length); |
|
4900 |
} |
|
4901 |
||
4902 |
/** |
|
4903 |
* Returns the code point at the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4904 |
* {@code char} array, where only array elements with |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4905 |
* {@code index} less than {@code limit} can be used. If |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4906 |
* the {@code char} value at the given index in the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4907 |
* {@code char} array is in the high-surrogate range, the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4908 |
* following index is less than the {@code limit}, and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4909 |
* {@code char} value at the following index is in the |
2 | 4910 |
* low-surrogate range, then the supplementary code point |
4911 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4912 |
* the {@code char} value at the given index is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4913 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4914 |
* @param a the {@code char} array |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4915 |
* @param index the index to the {@code char} values (Unicode |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4916 |
* code units) in the {@code char} array to be converted |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4917 |
* @param limit the index after the last array element that |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4918 |
* can be used in the {@code char} array |
2 | 4919 |
* @return the Unicode code point at the given index |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4920 |
* @exception NullPointerException if {@code a} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4921 |
* @exception IndexOutOfBoundsException if the {@code index} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4922 |
* argument is negative or not less than the {@code limit} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4923 |
* argument, or if the {@code limit} argument is negative or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4924 |
* greater than the length of the {@code char} array. |
2 | 4925 |
* @since 1.5 |
4926 |
*/ |
|
4927 |
public static int codePointAt(char[] a, int index, int limit) { |
|
4928 |
if (index >= limit || limit < 0 || limit > a.length) { |
|
4929 |
throw new IndexOutOfBoundsException(); |
|
4930 |
} |
|
4931 |
return codePointAtImpl(a, index, limit); |
|
4932 |
} |
|
4933 |
||
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
4934 |
// throws ArrayIndexOutofBoundsException if index out of bounds |
2 | 4935 |
static int codePointAtImpl(char[] a, int index, int limit) { |
4936 |
char c1 = a[index++]; |
|
4937 |
if (isHighSurrogate(c1)) { |
|
4938 |
if (index < limit) { |
|
4939 |
char c2 = a[index]; |
|
4940 |
if (isLowSurrogate(c2)) { |
|
4941 |
return toCodePoint(c1, c2); |
|
4942 |
} |
|
4943 |
} |
|
4944 |
} |
|
4945 |
return c1; |
|
4946 |
} |
|
4947 |
||
4948 |
/** |
|
4949 |
* Returns the code point preceding the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4950 |
* {@code CharSequence}. If the {@code char} value at |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4951 |
* {@code (index - 1)} in the {@code CharSequence} is in |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4952 |
* the low-surrogate range, {@code (index - 2)} is not |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4953 |
* negative, and the {@code char} value at {@code (index - 2)} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4954 |
* in the {@code CharSequence} is in the |
2 | 4955 |
* high-surrogate range, then the supplementary code point |
4956 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4957 |
* the {@code char} value at {@code (index - 1)} is |
2 | 4958 |
* returned. |
4959 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4960 |
* @param seq the {@code CharSequence} instance |
2 | 4961 |
* @param index the index following the code point that should be returned |
4962 |
* @return the Unicode code point value before the given index. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4963 |
* @exception NullPointerException if {@code seq} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4964 |
* @exception IndexOutOfBoundsException if the {@code index} |
2 | 4965 |
* argument is less than 1 or greater than {@link |
4966 |
* CharSequence#length() seq.length()}. |
|
4967 |
* @since 1.5 |
|
4968 |
*/ |
|
4969 |
public static int codePointBefore(CharSequence seq, int index) { |
|
4970 |
char c2 = seq.charAt(--index); |
|
4971 |
if (isLowSurrogate(c2)) { |
|
4972 |
if (index > 0) { |
|
4973 |
char c1 = seq.charAt(--index); |
|
4974 |
if (isHighSurrogate(c1)) { |
|
4975 |
return toCodePoint(c1, c2); |
|
4976 |
} |
|
4977 |
} |
|
4978 |
} |
|
4979 |
return c2; |
|
4980 |
} |
|
4981 |
||
4982 |
/** |
|
4983 |
* Returns the code point preceding the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4984 |
* {@code char} array. If the {@code char} value at |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4985 |
* {@code (index - 1)} in the {@code char} array is in |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4986 |
* the low-surrogate range, {@code (index - 2)} is not |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4987 |
* negative, and the {@code char} value at {@code (index - 2)} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4988 |
* in the {@code char} array is in the |
2 | 4989 |
* high-surrogate range, then the supplementary code point |
4990 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4991 |
* the {@code char} value at {@code (index - 1)} is |
2 | 4992 |
* returned. |
4993 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4994 |
* @param a the {@code char} array |
2 | 4995 |
* @param index the index following the code point that should be returned |
4996 |
* @return the Unicode code point value before the given index. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4997 |
* @exception NullPointerException if {@code a} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
4998 |
* @exception IndexOutOfBoundsException if the {@code index} |
2 | 4999 |
* argument is less than 1 or greater than the length of the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5000 |
* {@code char} array |
2 | 5001 |
* @since 1.5 |
5002 |
*/ |
|
5003 |
public static int codePointBefore(char[] a, int index) { |
|
5004 |
return codePointBeforeImpl(a, index, 0); |
|
5005 |
} |
|
5006 |
||
5007 |
/** |
|
5008 |
* Returns the code point preceding the given index of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5009 |
* {@code char} array, where only array elements with |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5010 |
* {@code index} greater than or equal to {@code start} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5011 |
* can be used. If the {@code char} value at {@code (index - 1)} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5012 |
* in the {@code char} array is in the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5013 |
* low-surrogate range, {@code (index - 2)} is not less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5014 |
* {@code start}, and the {@code char} value at |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5015 |
* {@code (index - 2)} in the {@code char} array is in |
2 | 5016 |
* the high-surrogate range, then the supplementary code point |
5017 |
* corresponding to this surrogate pair is returned. Otherwise, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5018 |
* the {@code char} value at {@code (index - 1)} is |
2 | 5019 |
* returned. |
5020 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5021 |
* @param a the {@code char} array |
2 | 5022 |
* @param index the index following the code point that should be returned |
5023 |
* @param start the index of the first array element in the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5024 |
* {@code char} array |
2 | 5025 |
* @return the Unicode code point value before the given index. |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5026 |
* @exception NullPointerException if {@code a} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5027 |
* @exception IndexOutOfBoundsException if the {@code index} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5028 |
* argument is not greater than the {@code start} argument or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5029 |
* is greater than the length of the {@code char} array, or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5030 |
* if the {@code start} argument is negative or not less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5031 |
* the length of the {@code char} array. |
2 | 5032 |
* @since 1.5 |
5033 |
*/ |
|
5034 |
public static int codePointBefore(char[] a, int index, int start) { |
|
5035 |
if (index <= start || start < 0 || start >= a.length) { |
|
5036 |
throw new IndexOutOfBoundsException(); |
|
5037 |
} |
|
5038 |
return codePointBeforeImpl(a, index, start); |
|
5039 |
} |
|
5040 |
||
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5041 |
// throws ArrayIndexOutofBoundsException if index-1 out of bounds |
2 | 5042 |
static int codePointBeforeImpl(char[] a, int index, int start) { |
5043 |
char c2 = a[--index]; |
|
5044 |
if (isLowSurrogate(c2)) { |
|
5045 |
if (index > start) { |
|
5046 |
char c1 = a[--index]; |
|
5047 |
if (isHighSurrogate(c1)) { |
|
5048 |
return toCodePoint(c1, c2); |
|
5049 |
} |
|
5050 |
} |
|
5051 |
} |
|
5052 |
return c2; |
|
5053 |
} |
|
5054 |
||
5055 |
/** |
|
5991
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5056 |
* Returns the leading surrogate (a |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5057 |
* <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
|
5058 |
* high surrogate code unit</a>) of the |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5059 |
* <a href="http://www.unicode.org/glossary/#surrogate_pair"> |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5060 |
* surrogate pair</a> |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5061 |
* representing the specified supplementary character (Unicode |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5062 |
* 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
|
5063 |
* is not a |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5064 |
* <a href="Character.html#supplementary">supplementary character</a>, |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5065 |
* an unspecified {@code char} is returned. |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5066 |
* |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5067 |
* <p>If |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5068 |
* {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)} |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5069 |
* is {@code true}, then |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5070 |
* {@link #isHighSurrogate isHighSurrogate}{@code (highSurrogate(x))} and |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5071 |
* {@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
|
5072 |
* are also always {@code true}. |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5073 |
* |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5074 |
* @param codePoint a supplementary character (Unicode code point) |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5075 |
* @return the leading surrogate code unit used to represent the |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5076 |
* character in the UTF-16 encoding |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5077 |
* @since 1.7 |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5078 |
*/ |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5079 |
public static char highSurrogate(int codePoint) { |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5080 |
return (char) ((codePoint >>> 10) |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5081 |
+ (MIN_HIGH_SURROGATE - (MIN_SUPPLEMENTARY_CODE_POINT >>> 10))); |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5082 |
} |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5083 |
|
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5084 |
/** |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5085 |
* Returns the trailing surrogate (a |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5086 |
* <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
|
5087 |
* low surrogate code unit</a>) of the |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5088 |
* <a href="http://www.unicode.org/glossary/#surrogate_pair"> |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5089 |
* surrogate pair</a> |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5090 |
* representing the specified supplementary character (Unicode |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5091 |
* 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
|
5092 |
* is not a |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5093 |
* <a href="Character.html#supplementary">supplementary character</a>, |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5094 |
* an unspecified {@code char} is returned. |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5095 |
* |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5096 |
* <p>If |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5097 |
* {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)} |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5098 |
* is {@code true}, then |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5099 |
* {@link #isLowSurrogate isLowSurrogate}{@code (lowSurrogate(x))} and |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5100 |
* {@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
|
5101 |
* are also always {@code true}. |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5102 |
* |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5103 |
* @param codePoint a supplementary character (Unicode code point) |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5104 |
* @return the trailing surrogate code unit used to represent the |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5105 |
* character in the UTF-16 encoding |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5106 |
* @since 1.7 |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5107 |
*/ |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5108 |
public static char lowSurrogate(int codePoint) { |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5109 |
return (char) ((codePoint & 0x3ff) + MIN_LOW_SURROGATE); |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5110 |
} |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5111 |
|
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5112 |
/** |
2 | 5113 |
* Converts the specified character (Unicode code point) to its |
5114 |
* UTF-16 representation. If the specified code point is a BMP |
|
5115 |
* (Basic Multilingual Plane or Plane 0) value, the same value is |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5116 |
* stored in {@code dst[dstIndex]}, and 1 is returned. If the |
2 | 5117 |
* specified code point is a supplementary character, its |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5118 |
* surrogate values are stored in {@code dst[dstIndex]} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5119 |
* (high-surrogate) and {@code dst[dstIndex+1]} |
2 | 5120 |
* (low-surrogate), and 2 is returned. |
5121 |
* |
|
5122 |
* @param codePoint the character (Unicode code point) to be converted. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5123 |
* @param dst an array of {@code char} in which the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5124 |
* {@code codePoint}'s UTF-16 value is stored. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5125 |
* @param dstIndex the start index into the {@code dst} |
2 | 5126 |
* array where the converted value is stored. |
5127 |
* @return 1 if the code point is a BMP code point, 2 if the |
|
5128 |
* code point is a supplementary code point. |
|
5129 |
* @exception IllegalArgumentException if the specified |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5130 |
* {@code codePoint} is not a valid Unicode code point. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5131 |
* @exception NullPointerException if the specified {@code dst} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5132 |
* @exception IndexOutOfBoundsException if {@code dstIndex} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5133 |
* is negative or not less than {@code dst.length}, or if |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5134 |
* {@code dst} at {@code dstIndex} doesn't have enough |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5135 |
* array element(s) to store the resulting {@code char} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5136 |
* value(s). (If {@code dstIndex} is equal to |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5137 |
* {@code dst.length-1} and the specified |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5138 |
* {@code codePoint} is a supplementary character, the |
2 | 5139 |
* high-surrogate value is not stored in |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5140 |
* {@code dst[dstIndex]}.) |
2 | 5141 |
* @since 1.5 |
5142 |
*/ |
|
5143 |
public static int toChars(int codePoint, char[] dst, int dstIndex) { |
|
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5144 |
if (isBmpCodePoint(codePoint)) { |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5145 |
dst[dstIndex] = (char) codePoint; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5146 |
return 1; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5147 |
} else if (isValidCodePoint(codePoint)) { |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5148 |
toSurrogates(codePoint, dst, dstIndex); |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5149 |
return 2; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5150 |
} else { |
2 | 5151 |
throw new IllegalArgumentException(); |
5152 |
} |
|
5153 |
} |
|
5154 |
||
5155 |
/** |
|
5156 |
* Converts the specified character (Unicode code point) to its |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5157 |
* UTF-16 representation stored in a {@code char} array. If |
2 | 5158 |
* the specified code point is a BMP (Basic Multilingual Plane or |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5159 |
* Plane 0) value, the resulting {@code char} array has |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5160 |
* the same value as {@code codePoint}. If the specified code |
2 | 5161 |
* point is a supplementary code point, the resulting |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5162 |
* {@code char} array has the corresponding surrogate pair. |
2 | 5163 |
* |
5164 |
* @param codePoint a Unicode code point |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5165 |
* @return a {@code char} array having |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5166 |
* {@code codePoint}'s UTF-16 representation. |
2 | 5167 |
* @exception IllegalArgumentException if the specified |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5168 |
* {@code codePoint} is not a valid Unicode code point. |
2 | 5169 |
* @since 1.5 |
5170 |
*/ |
|
5171 |
public static char[] toChars(int codePoint) { |
|
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5172 |
if (isBmpCodePoint(codePoint)) { |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5173 |
return new char[] { (char) codePoint }; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5174 |
} else if (isValidCodePoint(codePoint)) { |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5175 |
char[] result = new char[2]; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5176 |
toSurrogates(codePoint, result, 0); |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5177 |
return result; |
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
5178 |
} else { |
2 | 5179 |
throw new IllegalArgumentException(); |
5180 |
} |
|
5181 |
} |
|
5182 |
||
5183 |
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
|
5184 |
// We write elements "backwards" to guarantee all-or-nothing |
5991
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5185 |
dst[index+1] = lowSurrogate(codePoint); |
288afdbbca28
6933322: Add methods highSurrogate(), lowSurrogate() to class Character
martin
parents:
5990
diff
changeset
|
5186 |
dst[index] = highSurrogate(codePoint); |
2 | 5187 |
} |
5188 |
||
5189 |
/** |
|
5190 |
* Returns the number of Unicode code points in the text range of |
|
5191 |
* the specified char sequence. The text range begins at the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5192 |
* specified {@code beginIndex} and extends to the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5193 |
* {@code char} at index {@code endIndex - 1}. Thus the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5194 |
* length (in {@code char}s) of the text range is |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5195 |
* {@code endIndex-beginIndex}. Unpaired surrogates within |
2 | 5196 |
* the text range count as one code point each. |
5197 |
* |
|
5198 |
* @param seq the char sequence |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5199 |
* @param beginIndex the index to the first {@code char} of |
2 | 5200 |
* the text range. |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5201 |
* @param endIndex the index after the last {@code char} of |
2 | 5202 |
* the text range. |
5203 |
* @return the number of Unicode code points in the specified text |
|
5204 |
* range |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5205 |
* @exception NullPointerException if {@code seq} is null. |
2 | 5206 |
* @exception IndexOutOfBoundsException if the |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5207 |
* {@code beginIndex} is negative, or {@code endIndex} |
2 | 5208 |
* is larger than the length of the given sequence, or |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5209 |
* {@code beginIndex} is larger than {@code endIndex}. |
2 | 5210 |
* @since 1.5 |
5211 |
*/ |
|
5212 |
public static int codePointCount(CharSequence seq, int beginIndex, int endIndex) { |
|
5213 |
int length = seq.length(); |
|
5214 |
if (beginIndex < 0 || endIndex > length || beginIndex > endIndex) { |
|
5215 |
throw new IndexOutOfBoundsException(); |
|
5216 |
} |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5217 |
int n = endIndex - beginIndex; |
2 | 5218 |
for (int i = beginIndex; i < endIndex; ) { |
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5219 |
if (isHighSurrogate(seq.charAt(i++)) && i < endIndex && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5220 |
isLowSurrogate(seq.charAt(i))) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5221 |
n--; |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5222 |
i++; |
2 | 5223 |
} |
5224 |
} |
|
5225 |
return n; |
|
5226 |
} |
|
5227 |
||
5228 |
/** |
|
5229 |
* Returns the number of Unicode code points in a subarray of the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5230 |
* {@code char} array argument. The {@code offset} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5231 |
* argument is the index of the first {@code char} of the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5232 |
* subarray and the {@code count} argument specifies the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5233 |
* length of the subarray in {@code char}s. Unpaired |
2 | 5234 |
* surrogates within the subarray count as one code point each. |
5235 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5236 |
* @param a the {@code char} array |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5237 |
* @param offset the index of the first {@code char} in the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5238 |
* given {@code char} array |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5239 |
* @param count the length of the subarray in {@code char}s |
2 | 5240 |
* @return the number of Unicode code points in the specified subarray |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5241 |
* @exception NullPointerException if {@code a} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5242 |
* @exception IndexOutOfBoundsException if {@code offset} or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5243 |
* {@code count} is negative, or if {@code offset + |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5244 |
* count} is larger than the length of the given array. |
2 | 5245 |
* @since 1.5 |
5246 |
*/ |
|
5247 |
public static int codePointCount(char[] a, int offset, int count) { |
|
5248 |
if (count > a.length - offset || offset < 0 || count < 0) { |
|
5249 |
throw new IndexOutOfBoundsException(); |
|
5250 |
} |
|
5251 |
return codePointCountImpl(a, offset, count); |
|
5252 |
} |
|
5253 |
||
5254 |
static int codePointCountImpl(char[] a, int offset, int count) { |
|
5255 |
int endIndex = offset + count; |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5256 |
int n = count; |
2 | 5257 |
for (int i = offset; i < endIndex; ) { |
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5258 |
if (isHighSurrogate(a[i++]) && i < endIndex && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5259 |
isLowSurrogate(a[i])) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5260 |
n--; |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5261 |
i++; |
2 | 5262 |
} |
5263 |
} |
|
5264 |
return n; |
|
5265 |
} |
|
5266 |
||
5267 |
/** |
|
5268 |
* Returns the index within the given char sequence that is offset |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5269 |
* from the given {@code index} by {@code codePointOffset} |
2 | 5270 |
* code points. Unpaired surrogates within the text range given by |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5271 |
* {@code index} and {@code codePointOffset} count as |
2 | 5272 |
* one code point each. |
5273 |
* |
|
5274 |
* @param seq the char sequence |
|
5275 |
* @param index the index to be offset |
|
5276 |
* @param codePointOffset the offset in code points |
|
5277 |
* @return the index within the char sequence |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5278 |
* @exception NullPointerException if {@code seq} is null. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5279 |
* @exception IndexOutOfBoundsException if {@code index} |
2 | 5280 |
* is negative or larger then the length of the char sequence, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5281 |
* or if {@code codePointOffset} is positive and the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5282 |
* subsequence starting with {@code index} has fewer than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5283 |
* {@code codePointOffset} code points, or if |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5284 |
* {@code codePointOffset} is negative and the subsequence |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5285 |
* before {@code index} has fewer than the absolute value |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5286 |
* of {@code codePointOffset} code points. |
2 | 5287 |
* @since 1.5 |
5288 |
*/ |
|
5289 |
public static int offsetByCodePoints(CharSequence seq, int index, |
|
5290 |
int codePointOffset) { |
|
5291 |
int length = seq.length(); |
|
5292 |
if (index < 0 || index > length) { |
|
5293 |
throw new IndexOutOfBoundsException(); |
|
5294 |
} |
|
5295 |
||
5296 |
int x = index; |
|
5297 |
if (codePointOffset >= 0) { |
|
5298 |
int i; |
|
5299 |
for (i = 0; x < length && i < codePointOffset; i++) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5300 |
if (isHighSurrogate(seq.charAt(x++)) && x < length && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5301 |
isLowSurrogate(seq.charAt(x))) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5302 |
x++; |
2 | 5303 |
} |
5304 |
} |
|
5305 |
if (i < codePointOffset) { |
|
5306 |
throw new IndexOutOfBoundsException(); |
|
5307 |
} |
|
5308 |
} else { |
|
5309 |
int i; |
|
5310 |
for (i = codePointOffset; x > 0 && i < 0; i++) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5311 |
if (isLowSurrogate(seq.charAt(--x)) && x > 0 && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5312 |
isHighSurrogate(seq.charAt(x-1))) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5313 |
x--; |
2 | 5314 |
} |
5315 |
} |
|
5316 |
if (i < 0) { |
|
5317 |
throw new IndexOutOfBoundsException(); |
|
5318 |
} |
|
5319 |
} |
|
5320 |
return x; |
|
5321 |
} |
|
5322 |
||
5323 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5324 |
* Returns the index within the given {@code char} subarray |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5325 |
* that is offset from the given {@code index} by |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5326 |
* {@code codePointOffset} code points. The |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5327 |
* {@code start} and {@code count} arguments specify a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5328 |
* subarray of the {@code char} array. Unpaired surrogates |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5329 |
* within the text range given by {@code index} and |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5330 |
* {@code codePointOffset} count as one code point each. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5331 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5332 |
* @param a the {@code char} array |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5333 |
* @param start the index of the first {@code char} of the |
2 | 5334 |
* subarray |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5335 |
* @param count the length of the subarray in {@code char}s |
2 | 5336 |
* @param index the index to be offset |
5337 |
* @param codePointOffset the offset in code points |
|
5338 |
* @return the index within the subarray |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5339 |
* @exception NullPointerException if {@code a} is null. |
2 | 5340 |
* @exception IndexOutOfBoundsException |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5341 |
* if {@code start} or {@code count} is negative, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5342 |
* or if {@code start + count} is larger than the length of |
2 | 5343 |
* the given array, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5344 |
* or if {@code index} is less than {@code start} or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5345 |
* larger then {@code start + count}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5346 |
* or if {@code codePointOffset} is positive and the text range |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5347 |
* starting with {@code index} and ending with {@code start + count - 1} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5348 |
* has fewer than {@code codePointOffset} code |
2 | 5349 |
* points, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5350 |
* or if {@code codePointOffset} is negative and the text range |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5351 |
* starting with {@code start} and ending with {@code index - 1} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5352 |
* has fewer than the absolute value of |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5353 |
* {@code codePointOffset} code points. |
2 | 5354 |
* @since 1.5 |
5355 |
*/ |
|
5356 |
public static int offsetByCodePoints(char[] a, int start, int count, |
|
5357 |
int index, int codePointOffset) { |
|
5358 |
if (count > a.length-start || start < 0 || count < 0 |
|
5359 |
|| index < start || index > start+count) { |
|
5360 |
throw new IndexOutOfBoundsException(); |
|
5361 |
} |
|
5362 |
return offsetByCodePointsImpl(a, start, count, index, codePointOffset); |
|
5363 |
} |
|
5364 |
||
5365 |
static int offsetByCodePointsImpl(char[]a, int start, int count, |
|
5366 |
int index, int codePointOffset) { |
|
5367 |
int x = index; |
|
5368 |
if (codePointOffset >= 0) { |
|
5369 |
int limit = start + count; |
|
5370 |
int i; |
|
5371 |
for (i = 0; x < limit && i < codePointOffset; i++) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5372 |
if (isHighSurrogate(a[x++]) && x < limit && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5373 |
isLowSurrogate(a[x])) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5374 |
x++; |
2 | 5375 |
} |
5376 |
} |
|
5377 |
if (i < codePointOffset) { |
|
5378 |
throw new IndexOutOfBoundsException(); |
|
5379 |
} |
|
5380 |
} else { |
|
5381 |
int i; |
|
5382 |
for (i = codePointOffset; x > start && i < 0; i++) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5383 |
if (isLowSurrogate(a[--x]) && x > start && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5384 |
isHighSurrogate(a[x-1])) { |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
5385 |
x--; |
2 | 5386 |
} |
5387 |
} |
|
5388 |
if (i < 0) { |
|
5389 |
throw new IndexOutOfBoundsException(); |
|
5390 |
} |
|
5391 |
} |
|
5392 |
return x; |
|
5393 |
} |
|
5394 |
||
5990 | 5395 |
/** |
2 | 5396 |
* Determines if the specified character is a lowercase character. |
5397 |
* <p> |
|
5398 |
* A character is lowercase if its general category type, provided |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5399 |
* by {@code Character.getType(ch)}, is |
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5400 |
* {@code LOWERCASE_LETTER}, or it has contributory property |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5401 |
* Other_Lowercase as defined by the Unicode Standard. |
2 | 5402 |
* <p> |
5403 |
* The following are examples of lowercase characters: |
|
5404 |
* <p><blockquote><pre> |
|
5405 |
* 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 |
|
5406 |
* '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6' |
|
5407 |
* '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE' |
|
5408 |
* '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6' |
|
5409 |
* '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF' |
|
5410 |
* </pre></blockquote> |
|
5411 |
* <p> Many other Unicode characters are lowercase too. |
|
5412 |
* |
|
5413 |
* <p><b>Note:</b> This method cannot handle <a |
|
5414 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5415 |
* all Unicode characters, including supplementary characters, use |
|
5416 |
* the {@link #isLowerCase(int)} method. |
|
5417 |
* |
|
5418 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5419 |
* @return {@code true} if the character is lowercase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5420 |
* {@code false} otherwise. |
5990 | 5421 |
* @see Character#isLowerCase(char) |
5422 |
* @see Character#isTitleCase(char) |
|
5423 |
* @see Character#toLowerCase(char) |
|
5424 |
* @see Character#getType(char) |
|
2 | 5425 |
*/ |
5426 |
public static boolean isLowerCase(char ch) { |
|
5427 |
return isLowerCase((int)ch); |
|
5428 |
} |
|
5429 |
||
5430 |
/** |
|
5431 |
* Determines if the specified character (Unicode code point) is a |
|
5432 |
* lowercase character. |
|
5433 |
* <p> |
|
5434 |
* A character is lowercase if its general category type, provided |
|
5435 |
* by {@link Character#getType getType(codePoint)}, is |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5436 |
* {@code LOWERCASE_LETTER}, or it has contributory property |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5437 |
* Other_Lowercase as defined by the Unicode Standard. |
2 | 5438 |
* <p> |
5439 |
* The following are examples of lowercase characters: |
|
5440 |
* <p><blockquote><pre> |
|
5441 |
* 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 |
|
5442 |
* '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6' |
|
5443 |
* '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE' |
|
5444 |
* '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6' |
|
5445 |
* '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF' |
|
5446 |
* </pre></blockquote> |
|
5447 |
* <p> Many other Unicode characters are lowercase too. |
|
5448 |
* |
|
5449 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5450 |
* @return {@code true} if the character is lowercase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5451 |
* {@code false} otherwise. |
5990 | 5452 |
* @see Character#isLowerCase(int) |
5453 |
* @see Character#isTitleCase(int) |
|
5454 |
* @see Character#toLowerCase(int) |
|
5455 |
* @see Character#getType(int) |
|
2 | 5456 |
* @since 1.5 |
5457 |
*/ |
|
5458 |
public static boolean isLowerCase(int codePoint) { |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5459 |
return getType(codePoint) == Character.LOWERCASE_LETTER || |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5460 |
CharacterData.of(codePoint).isOtherLowercase(codePoint); |
2 | 5461 |
} |
5462 |
||
5990 | 5463 |
/** |
2 | 5464 |
* Determines if the specified character is an uppercase character. |
5465 |
* <p> |
|
5466 |
* A character is uppercase if its general category type, provided by |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5467 |
* {@code Character.getType(ch)}, is {@code UPPERCASE_LETTER}. |
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5468 |
* or it has contributory property Other_Uppercase as defined by the Unicode Standard. |
2 | 5469 |
* <p> |
5470 |
* The following are examples of uppercase characters: |
|
5471 |
* <p><blockquote><pre> |
|
5472 |
* 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 |
|
5473 |
* '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7' |
|
5474 |
* '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF' |
|
5475 |
* '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8' |
|
5476 |
* '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE' |
|
5477 |
* </pre></blockquote> |
|
5478 |
* <p> Many other Unicode characters are uppercase too.<p> |
|
5479 |
* |
|
5480 |
* <p><b>Note:</b> This method cannot handle <a |
|
5481 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5482 |
* all Unicode characters, including supplementary characters, use |
|
5483 |
* the {@link #isUpperCase(int)} method. |
|
5484 |
* |
|
5485 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5486 |
* @return {@code true} if the character is uppercase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5487 |
* {@code false} otherwise. |
5990 | 5488 |
* @see Character#isLowerCase(char) |
5489 |
* @see Character#isTitleCase(char) |
|
5490 |
* @see Character#toUpperCase(char) |
|
5491 |
* @see Character#getType(char) |
|
2 | 5492 |
* @since 1.0 |
5493 |
*/ |
|
5494 |
public static boolean isUpperCase(char ch) { |
|
5495 |
return isUpperCase((int)ch); |
|
5496 |
} |
|
5497 |
||
5498 |
/** |
|
5499 |
* Determines if the specified character (Unicode code point) is an uppercase character. |
|
5500 |
* <p> |
|
5501 |
* A character is uppercase if its general category type, provided by |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5502 |
* {@link Character#getType(int) getType(codePoint)}, is {@code UPPERCASE_LETTER}, |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5503 |
* or it has contributory property Other_Uppercase as defined by the Unicode Standard. |
2 | 5504 |
* <p> |
5505 |
* The following are examples of uppercase characters: |
|
5506 |
* <p><blockquote><pre> |
|
5507 |
* 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 |
|
5508 |
* '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7' |
|
5509 |
* '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF' |
|
5510 |
* '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8' |
|
5511 |
* '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE' |
|
5512 |
* </pre></blockquote> |
|
5513 |
* <p> Many other Unicode characters are uppercase too.<p> |
|
5514 |
* |
|
5515 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5516 |
* @return {@code true} if the character is uppercase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5517 |
* {@code false} otherwise. |
5990 | 5518 |
* @see Character#isLowerCase(int) |
5519 |
* @see Character#isTitleCase(int) |
|
5520 |
* @see Character#toUpperCase(int) |
|
5521 |
* @see Character#getType(int) |
|
2 | 5522 |
* @since 1.5 |
5523 |
*/ |
|
5524 |
public static boolean isUpperCase(int codePoint) { |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5525 |
return getType(codePoint) == Character.UPPERCASE_LETTER || |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5526 |
CharacterData.of(codePoint).isOtherUppercase(codePoint); |
2 | 5527 |
} |
5528 |
||
5529 |
/** |
|
5530 |
* Determines if the specified character is a titlecase character. |
|
5531 |
* <p> |
|
5532 |
* A character is a titlecase character if its general |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5533 |
* category type, provided by {@code Character.getType(ch)}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5534 |
* is {@code TITLECASE_LETTER}. |
2 | 5535 |
* <p> |
5536 |
* Some characters look like pairs of Latin letters. For example, there |
|
5537 |
* is an uppercase letter that looks like "LJ" and has a corresponding |
|
5538 |
* lowercase letter that looks like "lj". A third form, which looks like "Lj", |
|
5539 |
* is the appropriate form to use when rendering a word in lowercase |
|
5540 |
* with initial capitals, as for a book title. |
|
5541 |
* <p> |
|
5542 |
* These are some of the Unicode characters for which this method returns |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5543 |
* {@code true}: |
2 | 5544 |
* <ul> |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5545 |
* <li>{@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5546 |
* <li>{@code LATIN CAPITAL LETTER L WITH SMALL LETTER J} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5547 |
* <li>{@code LATIN CAPITAL LETTER N WITH SMALL LETTER J} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5548 |
* <li>{@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z} |
2 | 5549 |
* </ul> |
5550 |
* <p> Many other Unicode characters are titlecase too.<p> |
|
5551 |
* |
|
5552 |
* <p><b>Note:</b> This method cannot handle <a |
|
5553 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5554 |
* all Unicode characters, including supplementary characters, use |
|
5555 |
* the {@link #isTitleCase(int)} method. |
|
5556 |
* |
|
5557 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5558 |
* @return {@code true} if the character is titlecase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5559 |
* {@code false} otherwise. |
5990 | 5560 |
* @see Character#isLowerCase(char) |
5561 |
* @see Character#isUpperCase(char) |
|
5562 |
* @see Character#toTitleCase(char) |
|
5563 |
* @see Character#getType(char) |
|
2 | 5564 |
* @since 1.0.2 |
5565 |
*/ |
|
5566 |
public static boolean isTitleCase(char ch) { |
|
5567 |
return isTitleCase((int)ch); |
|
5568 |
} |
|
5569 |
||
5570 |
/** |
|
5571 |
* Determines if the specified character (Unicode code point) is a titlecase character. |
|
5572 |
* <p> |
|
5573 |
* A character is a titlecase character if its general |
|
5574 |
* category type, provided by {@link Character#getType(int) getType(codePoint)}, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5575 |
* is {@code TITLECASE_LETTER}. |
2 | 5576 |
* <p> |
5577 |
* Some characters look like pairs of Latin letters. For example, there |
|
5578 |
* is an uppercase letter that looks like "LJ" and has a corresponding |
|
5579 |
* lowercase letter that looks like "lj". A third form, which looks like "Lj", |
|
5580 |
* is the appropriate form to use when rendering a word in lowercase |
|
5581 |
* with initial capitals, as for a book title. |
|
5582 |
* <p> |
|
5583 |
* These are some of the Unicode characters for which this method returns |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5584 |
* {@code true}: |
2 | 5585 |
* <ul> |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5586 |
* <li>{@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5587 |
* <li>{@code LATIN CAPITAL LETTER L WITH SMALL LETTER J} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5588 |
* <li>{@code LATIN CAPITAL LETTER N WITH SMALL LETTER J} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5589 |
* <li>{@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z} |
2 | 5590 |
* </ul> |
5591 |
* <p> Many other Unicode characters are titlecase too.<p> |
|
5592 |
* |
|
5593 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5594 |
* @return {@code true} if the character is titlecase; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5595 |
* {@code false} otherwise. |
5990 | 5596 |
* @see Character#isLowerCase(int) |
5597 |
* @see Character#isUpperCase(int) |
|
5598 |
* @see Character#toTitleCase(int) |
|
5599 |
* @see Character#getType(int) |
|
2 | 5600 |
* @since 1.5 |
5601 |
*/ |
|
5602 |
public static boolean isTitleCase(int codePoint) { |
|
5603 |
return getType(codePoint) == Character.TITLECASE_LETTER; |
|
5604 |
} |
|
5605 |
||
5606 |
/** |
|
5607 |
* Determines if the specified character is a digit. |
|
5608 |
* <p> |
|
5609 |
* A character is a digit if its general category type, provided |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5610 |
* by {@code Character.getType(ch)}, is |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5611 |
* {@code DECIMAL_DIGIT_NUMBER}. |
2 | 5612 |
* <p> |
5613 |
* Some Unicode character ranges that contain digits: |
|
5614 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5615 |
* <li>{@code '\u005Cu0030'} through {@code '\u005Cu0039'}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5616 |
* ISO-LATIN-1 digits ({@code '0'} through {@code '9'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5617 |
* <li>{@code '\u005Cu0660'} through {@code '\u005Cu0669'}, |
2 | 5618 |
* Arabic-Indic digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5619 |
* <li>{@code '\u005Cu06F0'} through {@code '\u005Cu06F9'}, |
2 | 5620 |
* Extended Arabic-Indic digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5621 |
* <li>{@code '\u005Cu0966'} through {@code '\u005Cu096F'}, |
2 | 5622 |
* Devanagari digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5623 |
* <li>{@code '\u005CuFF10'} through {@code '\u005CuFF19'}, |
2 | 5624 |
* Fullwidth digits |
5625 |
* </ul> |
|
5626 |
* |
|
5627 |
* Many other character ranges contain digits as well. |
|
5628 |
* |
|
5629 |
* <p><b>Note:</b> This method cannot handle <a |
|
5630 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5631 |
* all Unicode characters, including supplementary characters, use |
|
5632 |
* the {@link #isDigit(int)} method. |
|
5633 |
* |
|
5634 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5635 |
* @return {@code true} if the character is a digit; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5636 |
* {@code false} otherwise. |
5990 | 5637 |
* @see Character#digit(char, int) |
5638 |
* @see Character#forDigit(int, int) |
|
5639 |
* @see Character#getType(char) |
|
2 | 5640 |
*/ |
5641 |
public static boolean isDigit(char ch) { |
|
5642 |
return isDigit((int)ch); |
|
5643 |
} |
|
5644 |
||
5645 |
/** |
|
5646 |
* Determines if the specified character (Unicode code point) is a digit. |
|
5647 |
* <p> |
|
5648 |
* A character is a digit if its general category type, provided |
|
5649 |
* by {@link Character#getType(int) getType(codePoint)}, is |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5650 |
* {@code DECIMAL_DIGIT_NUMBER}. |
2 | 5651 |
* <p> |
5652 |
* Some Unicode character ranges that contain digits: |
|
5653 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5654 |
* <li>{@code '\u005Cu0030'} through {@code '\u005Cu0039'}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5655 |
* ISO-LATIN-1 digits ({@code '0'} through {@code '9'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5656 |
* <li>{@code '\u005Cu0660'} through {@code '\u005Cu0669'}, |
2 | 5657 |
* Arabic-Indic digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5658 |
* <li>{@code '\u005Cu06F0'} through {@code '\u005Cu06F9'}, |
2 | 5659 |
* Extended Arabic-Indic digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5660 |
* <li>{@code '\u005Cu0966'} through {@code '\u005Cu096F'}, |
2 | 5661 |
* Devanagari digits |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5662 |
* <li>{@code '\u005CuFF10'} through {@code '\u005CuFF19'}, |
2 | 5663 |
* Fullwidth digits |
5664 |
* </ul> |
|
5665 |
* |
|
5666 |
* Many other character ranges contain digits as well. |
|
5667 |
* |
|
5668 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5669 |
* @return {@code true} if the character is a digit; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5670 |
* {@code false} otherwise. |
5990 | 5671 |
* @see Character#forDigit(int, int) |
5672 |
* @see Character#getType(int) |
|
2 | 5673 |
* @since 1.5 |
5674 |
*/ |
|
5675 |
public static boolean isDigit(int codePoint) { |
|
5676 |
return getType(codePoint) == Character.DECIMAL_DIGIT_NUMBER; |
|
5677 |
} |
|
5678 |
||
5679 |
/** |
|
5680 |
* Determines if a character is defined in Unicode. |
|
5681 |
* <p> |
|
5682 |
* A character is defined if at least one of the following is true: |
|
5683 |
* <ul> |
|
5684 |
* <li>It has an entry in the UnicodeData file. |
|
5685 |
* <li>It has a value in a range defined by the UnicodeData file. |
|
5686 |
* </ul> |
|
5687 |
* |
|
5688 |
* <p><b>Note:</b> This method cannot handle <a |
|
5689 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5690 |
* all Unicode characters, including supplementary characters, use |
|
5691 |
* the {@link #isDefined(int)} method. |
|
5692 |
* |
|
5693 |
* @param ch the character to be tested |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5694 |
* @return {@code true} if the character has a defined meaning |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5695 |
* in Unicode; {@code false} otherwise. |
5990 | 5696 |
* @see Character#isDigit(char) |
5697 |
* @see Character#isLetter(char) |
|
5698 |
* @see Character#isLetterOrDigit(char) |
|
5699 |
* @see Character#isLowerCase(char) |
|
5700 |
* @see Character#isTitleCase(char) |
|
5701 |
* @see Character#isUpperCase(char) |
|
2 | 5702 |
* @since 1.0.2 |
5703 |
*/ |
|
5704 |
public static boolean isDefined(char ch) { |
|
5705 |
return isDefined((int)ch); |
|
5706 |
} |
|
5707 |
||
5708 |
/** |
|
5709 |
* Determines if a character (Unicode code point) is defined in Unicode. |
|
5710 |
* <p> |
|
5711 |
* A character is defined if at least one of the following is true: |
|
5712 |
* <ul> |
|
5713 |
* <li>It has an entry in the UnicodeData file. |
|
5714 |
* <li>It has a value in a range defined by the UnicodeData file. |
|
5715 |
* </ul> |
|
5716 |
* |
|
5717 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5718 |
* @return {@code true} if the character has a defined meaning |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5719 |
* in Unicode; {@code false} otherwise. |
5990 | 5720 |
* @see Character#isDigit(int) |
5721 |
* @see Character#isLetter(int) |
|
5722 |
* @see Character#isLetterOrDigit(int) |
|
5723 |
* @see Character#isLowerCase(int) |
|
5724 |
* @see Character#isTitleCase(int) |
|
5725 |
* @see Character#isUpperCase(int) |
|
2 | 5726 |
* @since 1.5 |
5727 |
*/ |
|
5728 |
public static boolean isDefined(int codePoint) { |
|
5729 |
return getType(codePoint) != Character.UNASSIGNED; |
|
5730 |
} |
|
5731 |
||
5732 |
/** |
|
5733 |
* Determines if the specified character is a letter. |
|
5734 |
* <p> |
|
5735 |
* A character is considered to be a letter if its general |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5736 |
* category type, provided by {@code Character.getType(ch)}, |
2 | 5737 |
* is any of the following: |
5738 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5739 |
* <li> {@code UPPERCASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5740 |
* <li> {@code LOWERCASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5741 |
* <li> {@code TITLECASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5742 |
* <li> {@code MODIFIER_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5743 |
* <li> {@code OTHER_LETTER} |
2 | 5744 |
* </ul> |
5745 |
* |
|
5746 |
* Not all letters have case. Many characters are |
|
5747 |
* letters but are neither uppercase nor lowercase nor titlecase. |
|
5748 |
* |
|
5749 |
* <p><b>Note:</b> This method cannot handle <a |
|
5750 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5751 |
* all Unicode characters, including supplementary characters, use |
|
5752 |
* the {@link #isLetter(int)} method. |
|
5753 |
* |
|
5754 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5755 |
* @return {@code true} if the character is a letter; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5756 |
* {@code false} otherwise. |
5990 | 5757 |
* @see Character#isDigit(char) |
5758 |
* @see Character#isJavaIdentifierStart(char) |
|
5759 |
* @see Character#isJavaLetter(char) |
|
5760 |
* @see Character#isJavaLetterOrDigit(char) |
|
5761 |
* @see Character#isLetterOrDigit(char) |
|
5762 |
* @see Character#isLowerCase(char) |
|
5763 |
* @see Character#isTitleCase(char) |
|
5764 |
* @see Character#isUnicodeIdentifierStart(char) |
|
5765 |
* @see Character#isUpperCase(char) |
|
2 | 5766 |
*/ |
5767 |
public static boolean isLetter(char ch) { |
|
5768 |
return isLetter((int)ch); |
|
5769 |
} |
|
5770 |
||
5771 |
/** |
|
5772 |
* Determines if the specified character (Unicode code point) is a letter. |
|
5773 |
* <p> |
|
5774 |
* A character is considered to be a letter if its general |
|
5775 |
* category type, provided by {@link Character#getType(int) getType(codePoint)}, |
|
5776 |
* is any of the following: |
|
5777 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5778 |
* <li> {@code UPPERCASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5779 |
* <li> {@code LOWERCASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5780 |
* <li> {@code TITLECASE_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5781 |
* <li> {@code MODIFIER_LETTER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5782 |
* <li> {@code OTHER_LETTER} |
2 | 5783 |
* </ul> |
5784 |
* |
|
5785 |
* Not all letters have case. Many characters are |
|
5786 |
* letters but are neither uppercase nor lowercase nor titlecase. |
|
5787 |
* |
|
5788 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5789 |
* @return {@code true} if the character is a letter; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5790 |
* {@code false} otherwise. |
5990 | 5791 |
* @see Character#isDigit(int) |
5792 |
* @see Character#isJavaIdentifierStart(int) |
|
5793 |
* @see Character#isLetterOrDigit(int) |
|
5794 |
* @see Character#isLowerCase(int) |
|
5795 |
* @see Character#isTitleCase(int) |
|
5796 |
* @see Character#isUnicodeIdentifierStart(int) |
|
5797 |
* @see Character#isUpperCase(int) |
|
2 | 5798 |
* @since 1.5 |
5799 |
*/ |
|
5800 |
public static boolean isLetter(int codePoint) { |
|
5801 |
return ((((1 << Character.UPPERCASE_LETTER) | |
|
5802 |
(1 << Character.LOWERCASE_LETTER) | |
|
5803 |
(1 << Character.TITLECASE_LETTER) | |
|
5804 |
(1 << Character.MODIFIER_LETTER) | |
|
5805 |
(1 << Character.OTHER_LETTER)) >> getType(codePoint)) & 1) |
|
5806 |
!= 0; |
|
5807 |
} |
|
5808 |
||
5809 |
/** |
|
5810 |
* Determines if the specified character is a letter or digit. |
|
5811 |
* <p> |
|
5812 |
* A character is considered to be a letter or digit if either |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5813 |
* {@code Character.isLetter(char ch)} or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5814 |
* {@code Character.isDigit(char ch)} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5815 |
* {@code true} for the character. |
2 | 5816 |
* |
5817 |
* <p><b>Note:</b> This method cannot handle <a |
|
5818 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5819 |
* all Unicode characters, including supplementary characters, use |
|
5820 |
* the {@link #isLetterOrDigit(int)} method. |
|
5821 |
* |
|
5822 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5823 |
* @return {@code true} if the character is a letter or digit; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5824 |
* {@code false} otherwise. |
5990 | 5825 |
* @see Character#isDigit(char) |
5826 |
* @see Character#isJavaIdentifierPart(char) |
|
5827 |
* @see Character#isJavaLetter(char) |
|
5828 |
* @see Character#isJavaLetterOrDigit(char) |
|
5829 |
* @see Character#isLetter(char) |
|
5830 |
* @see Character#isUnicodeIdentifierPart(char) |
|
2 | 5831 |
* @since 1.0.2 |
5832 |
*/ |
|
5833 |
public static boolean isLetterOrDigit(char ch) { |
|
5834 |
return isLetterOrDigit((int)ch); |
|
5835 |
} |
|
5836 |
||
5837 |
/** |
|
5838 |
* Determines if the specified character (Unicode code point) is a letter or digit. |
|
5839 |
* <p> |
|
5840 |
* A character is considered to be a letter or digit if either |
|
5841 |
* {@link #isLetter(int) isLetter(codePoint)} or |
|
5842 |
* {@link #isDigit(int) isDigit(codePoint)} returns |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5843 |
* {@code true} for the character. |
2 | 5844 |
* |
5845 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5846 |
* @return {@code true} if the character is a letter or digit; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5847 |
* {@code false} otherwise. |
5990 | 5848 |
* @see Character#isDigit(int) |
5849 |
* @see Character#isJavaIdentifierPart(int) |
|
5850 |
* @see Character#isLetter(int) |
|
5851 |
* @see Character#isUnicodeIdentifierPart(int) |
|
2 | 5852 |
* @since 1.5 |
5853 |
*/ |
|
5854 |
public static boolean isLetterOrDigit(int codePoint) { |
|
5855 |
return ((((1 << Character.UPPERCASE_LETTER) | |
|
5856 |
(1 << Character.LOWERCASE_LETTER) | |
|
5857 |
(1 << Character.TITLECASE_LETTER) | |
|
5858 |
(1 << Character.MODIFIER_LETTER) | |
|
5859 |
(1 << Character.OTHER_LETTER) | |
|
5860 |
(1 << Character.DECIMAL_DIGIT_NUMBER)) >> getType(codePoint)) & 1) |
|
5861 |
!= 0; |
|
5862 |
} |
|
5863 |
||
5864 |
/** |
|
5865 |
* Determines if the specified character is permissible as the first |
|
5866 |
* character in a Java identifier. |
|
5867 |
* <p> |
|
5868 |
* A character may start a Java identifier if and only if |
|
5869 |
* one of the following is true: |
|
5870 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5871 |
* <li> {@link #isLetter(char) isLetter(ch)} returns {@code true} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5872 |
* <li> {@link #getType(char) getType(ch)} returns {@code LETTER_NUMBER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5873 |
* <li> {@code ch} is a currency symbol (such as {@code '$'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5874 |
* <li> {@code ch} is a connecting punctuation character (such as {@code '_'}). |
2 | 5875 |
* </ul> |
5876 |
* |
|
5877 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5878 |
* @return {@code true} if the character may start a Java |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5879 |
* identifier; {@code false} otherwise. |
5990 | 5880 |
* @see Character#isJavaLetterOrDigit(char) |
5881 |
* @see Character#isJavaIdentifierStart(char) |
|
5882 |
* @see Character#isJavaIdentifierPart(char) |
|
5883 |
* @see Character#isLetter(char) |
|
5884 |
* @see Character#isLetterOrDigit(char) |
|
5885 |
* @see Character#isUnicodeIdentifierStart(char) |
|
2 | 5886 |
* @since 1.02 |
5887 |
* @deprecated Replaced by isJavaIdentifierStart(char). |
|
5888 |
*/ |
|
5889 |
@Deprecated |
|
5890 |
public static boolean isJavaLetter(char ch) { |
|
5891 |
return isJavaIdentifierStart(ch); |
|
5892 |
} |
|
5893 |
||
5894 |
/** |
|
5895 |
* Determines if the specified character may be part of a Java |
|
5896 |
* identifier as other than the first character. |
|
5897 |
* <p> |
|
5898 |
* A character may be part of a Java identifier if and only if any |
|
5899 |
* of the following are true: |
|
5900 |
* <ul> |
|
5901 |
* <li> it is a letter |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5902 |
* <li> it is a currency symbol (such as {@code '$'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5903 |
* <li> it is a connecting punctuation character (such as {@code '_'}) |
2 | 5904 |
* <li> it is a digit |
5905 |
* <li> it is a numeric letter (such as a Roman numeral character) |
|
5906 |
* <li> it is a combining mark |
|
5907 |
* <li> it is a non-spacing mark |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5908 |
* <li> {@code isIdentifierIgnorable} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5909 |
* {@code true} for the character. |
2 | 5910 |
* </ul> |
5911 |
* |
|
5912 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5913 |
* @return {@code true} if the character may be part of a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5914 |
* Java identifier; {@code false} otherwise. |
5990 | 5915 |
* @see Character#isJavaLetter(char) |
5916 |
* @see Character#isJavaIdentifierStart(char) |
|
5917 |
* @see Character#isJavaIdentifierPart(char) |
|
5918 |
* @see Character#isLetter(char) |
|
5919 |
* @see Character#isLetterOrDigit(char) |
|
5920 |
* @see Character#isUnicodeIdentifierPart(char) |
|
5921 |
* @see Character#isIdentifierIgnorable(char) |
|
2 | 5922 |
* @since 1.02 |
5923 |
* @deprecated Replaced by isJavaIdentifierPart(char). |
|
5924 |
*/ |
|
5925 |
@Deprecated |
|
5926 |
public static boolean isJavaLetterOrDigit(char ch) { |
|
5927 |
return isJavaIdentifierPart(ch); |
|
5928 |
} |
|
5929 |
||
5930 |
/** |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5931 |
* Determines if the specified character (Unicode code point) is an alphabet. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5932 |
* <p> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5933 |
* A character is considered to be alphabetic if its general category type, |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5934 |
* provided by {@link Character#getType(int) getType(codePoint)}, is any of |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5935 |
* the following: |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5936 |
* <ul> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5937 |
* <li> <code>UPPERCASE_LETTER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5938 |
* <li> <code>LOWERCASE_LETTER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5939 |
* <li> <code>TITLECASE_LETTER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5940 |
* <li> <code>MODIFIER_LETTER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5941 |
* <li> <code>OTHER_LETTER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5942 |
* <li> <code>LETTER_NUMBER</code> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5943 |
* </ul> |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5944 |
* or it has contributory property Other_Alphabetic as defined by the |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5945 |
* Unicode Standard. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5946 |
* |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5947 |
* @param codePoint the character (Unicode code point) to be tested. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5948 |
* @return <code>true</code> if the character is a Unicode alphabet |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5949 |
* character, <code>false</code> otherwise. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5950 |
* @since 1.7 |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5951 |
*/ |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5952 |
public static boolean isAlphabetic(int codePoint) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5953 |
return (((((1 << Character.UPPERCASE_LETTER) | |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5954 |
(1 << Character.LOWERCASE_LETTER) | |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5955 |
(1 << Character.TITLECASE_LETTER) | |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5956 |
(1 << Character.MODIFIER_LETTER) | |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5957 |
(1 << Character.OTHER_LETTER) | |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5958 |
(1 << Character.LETTER_NUMBER)) >> getType(codePoint)) & 1) != 0) || |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5959 |
CharacterData.of(codePoint).isOtherAlphabetic(codePoint); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5960 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5961 |
|
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5962 |
/** |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5963 |
* Determines if the specified character (Unicode code point) is a CJKV |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5964 |
* (Chinese, Japanese, Korean and Vietnamese) ideograph, as defined by |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5965 |
* the Unicode Standard. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5966 |
* |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5967 |
* @param codePoint the character (Unicode code point) to be tested. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5968 |
* @return <code>true</code> if the character is a Unicode ideograph |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5969 |
* character, <code>false</code> otherwise. |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5970 |
* @since 1.7 |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5971 |
*/ |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5972 |
public static boolean isIdeographic(int codePoint) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5973 |
return CharacterData.of(codePoint).isIdeographic(codePoint); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5974 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5975 |
|
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
5976 |
/** |
2 | 5977 |
* Determines if the specified character is |
5978 |
* permissible as the first character in a Java identifier. |
|
5979 |
* <p> |
|
5980 |
* A character may start a Java identifier if and only if |
|
5981 |
* one of the following conditions is true: |
|
5982 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5983 |
* <li> {@link #isLetter(char) isLetter(ch)} returns {@code true} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5984 |
* <li> {@link #getType(char) getType(ch)} returns {@code LETTER_NUMBER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5985 |
* <li> {@code ch} is a currency symbol (such as {@code '$'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5986 |
* <li> {@code ch} is a connecting punctuation character (such as {@code '_'}). |
2 | 5987 |
* </ul> |
5988 |
* |
|
5989 |
* <p><b>Note:</b> This method cannot handle <a |
|
5990 |
* href="#supplementary"> supplementary characters</a>. To support |
|
5991 |
* all Unicode characters, including supplementary characters, use |
|
5992 |
* the {@link #isJavaIdentifierStart(int)} method. |
|
5993 |
* |
|
5994 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5995 |
* @return {@code true} if the character may start a Java identifier; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
5996 |
* {@code false} otherwise. |
5990 | 5997 |
* @see Character#isJavaIdentifierPart(char) |
5998 |
* @see Character#isLetter(char) |
|
5999 |
* @see Character#isUnicodeIdentifierStart(char) |
|
2 | 6000 |
* @see javax.lang.model.SourceVersion#isIdentifier(CharSequence) |
6001 |
* @since 1.1 |
|
6002 |
*/ |
|
6003 |
public static boolean isJavaIdentifierStart(char ch) { |
|
6004 |
return isJavaIdentifierStart((int)ch); |
|
6005 |
} |
|
6006 |
||
6007 |
/** |
|
6008 |
* Determines if the character (Unicode code point) is |
|
6009 |
* permissible as the first character in a Java identifier. |
|
6010 |
* <p> |
|
6011 |
* A character may start a Java identifier if and only if |
|
6012 |
* one of the following conditions is true: |
|
6013 |
* <ul> |
|
6014 |
* <li> {@link #isLetter(int) isLetter(codePoint)} |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6015 |
* returns {@code true} |
2 | 6016 |
* <li> {@link #getType(int) getType(codePoint)} |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6017 |
* returns {@code LETTER_NUMBER} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6018 |
* <li> the referenced character is a currency symbol (such as {@code '$'}) |
2 | 6019 |
* <li> the referenced character is a connecting punctuation character |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6020 |
* (such as {@code '_'}). |
2 | 6021 |
* </ul> |
6022 |
* |
|
6023 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6024 |
* @return {@code true} if the character may start a Java identifier; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6025 |
* {@code false} otherwise. |
5990 | 6026 |
* @see Character#isJavaIdentifierPart(int) |
6027 |
* @see Character#isLetter(int) |
|
6028 |
* @see Character#isUnicodeIdentifierStart(int) |
|
2 | 6029 |
* @see javax.lang.model.SourceVersion#isIdentifier(CharSequence) |
6030 |
* @since 1.5 |
|
6031 |
*/ |
|
6032 |
public static boolean isJavaIdentifierStart(int codePoint) { |
|
6033 |
return CharacterData.of(codePoint).isJavaIdentifierStart(codePoint); |
|
6034 |
} |
|
6035 |
||
6036 |
/** |
|
6037 |
* Determines if the specified character may be part of a Java |
|
6038 |
* identifier as other than the first character. |
|
6039 |
* <p> |
|
6040 |
* A character may be part of a Java identifier if any of the following |
|
6041 |
* are true: |
|
6042 |
* <ul> |
|
6043 |
* <li> it is a letter |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6044 |
* <li> it is a currency symbol (such as {@code '$'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6045 |
* <li> it is a connecting punctuation character (such as {@code '_'}) |
2 | 6046 |
* <li> it is a digit |
6047 |
* <li> it is a numeric letter (such as a Roman numeral character) |
|
6048 |
* <li> it is a combining mark |
|
6049 |
* <li> it is a non-spacing mark |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6050 |
* <li> {@code isIdentifierIgnorable} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6051 |
* {@code true} for the character |
2 | 6052 |
* </ul> |
6053 |
* |
|
6054 |
* <p><b>Note:</b> This method cannot handle <a |
|
6055 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6056 |
* all Unicode characters, including supplementary characters, use |
|
6057 |
* the {@link #isJavaIdentifierPart(int)} method. |
|
6058 |
* |
|
6059 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6060 |
* @return {@code true} if the character may be part of a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6061 |
* Java identifier; {@code false} otherwise. |
5990 | 6062 |
* @see Character#isIdentifierIgnorable(char) |
6063 |
* @see Character#isJavaIdentifierStart(char) |
|
6064 |
* @see Character#isLetterOrDigit(char) |
|
6065 |
* @see Character#isUnicodeIdentifierPart(char) |
|
2 | 6066 |
* @see javax.lang.model.SourceVersion#isIdentifier(CharSequence) |
6067 |
* @since 1.1 |
|
6068 |
*/ |
|
6069 |
public static boolean isJavaIdentifierPart(char ch) { |
|
6070 |
return isJavaIdentifierPart((int)ch); |
|
6071 |
} |
|
6072 |
||
6073 |
/** |
|
6074 |
* Determines if the character (Unicode code point) may be part of a Java |
|
6075 |
* identifier as other than the first character. |
|
6076 |
* <p> |
|
6077 |
* A character may be part of a Java identifier if any of the following |
|
6078 |
* are true: |
|
6079 |
* <ul> |
|
6080 |
* <li> it is a letter |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6081 |
* <li> it is a currency symbol (such as {@code '$'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6082 |
* <li> it is a connecting punctuation character (such as {@code '_'}) |
2 | 6083 |
* <li> it is a digit |
6084 |
* <li> it is a numeric letter (such as a Roman numeral character) |
|
6085 |
* <li> it is a combining mark |
|
6086 |
* <li> it is a non-spacing mark |
|
6087 |
* <li> {@link #isIdentifierIgnorable(int) |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6088 |
* isIdentifierIgnorable(codePoint)} returns {@code true} for |
2 | 6089 |
* the character |
6090 |
* </ul> |
|
6091 |
* |
|
6092 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6093 |
* @return {@code true} if the character may be part of a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6094 |
* Java identifier; {@code false} otherwise. |
5990 | 6095 |
* @see Character#isIdentifierIgnorable(int) |
6096 |
* @see Character#isJavaIdentifierStart(int) |
|
6097 |
* @see Character#isLetterOrDigit(int) |
|
6098 |
* @see Character#isUnicodeIdentifierPart(int) |
|
2 | 6099 |
* @see javax.lang.model.SourceVersion#isIdentifier(CharSequence) |
6100 |
* @since 1.5 |
|
6101 |
*/ |
|
6102 |
public static boolean isJavaIdentifierPart(int codePoint) { |
|
6103 |
return CharacterData.of(codePoint).isJavaIdentifierPart(codePoint); |
|
6104 |
} |
|
6105 |
||
6106 |
/** |
|
6107 |
* Determines if the specified character is permissible as the |
|
6108 |
* first character in a Unicode identifier. |
|
6109 |
* <p> |
|
6110 |
* A character may start a Unicode identifier if and only if |
|
6111 |
* one of the following conditions is true: |
|
6112 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6113 |
* <li> {@link #isLetter(char) isLetter(ch)} returns {@code true} |
2 | 6114 |
* <li> {@link #getType(char) getType(ch)} returns |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6115 |
* {@code LETTER_NUMBER}. |
2 | 6116 |
* </ul> |
6117 |
* |
|
6118 |
* <p><b>Note:</b> This method cannot handle <a |
|
6119 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6120 |
* all Unicode characters, including supplementary characters, use |
|
6121 |
* the {@link #isUnicodeIdentifierStart(int)} method. |
|
6122 |
* |
|
6123 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6124 |
* @return {@code true} if the character may start a Unicode |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6125 |
* identifier; {@code false} otherwise. |
5990 | 6126 |
* @see Character#isJavaIdentifierStart(char) |
6127 |
* @see Character#isLetter(char) |
|
6128 |
* @see Character#isUnicodeIdentifierPart(char) |
|
2 | 6129 |
* @since 1.1 |
6130 |
*/ |
|
6131 |
public static boolean isUnicodeIdentifierStart(char ch) { |
|
6132 |
return isUnicodeIdentifierStart((int)ch); |
|
6133 |
} |
|
6134 |
||
6135 |
/** |
|
6136 |
* Determines if the specified character (Unicode code point) is permissible as the |
|
6137 |
* first character in a Unicode identifier. |
|
6138 |
* <p> |
|
6139 |
* A character may start a Unicode identifier if and only if |
|
6140 |
* one of the following conditions is true: |
|
6141 |
* <ul> |
|
6142 |
* <li> {@link #isLetter(int) isLetter(codePoint)} |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6143 |
* returns {@code true} |
2 | 6144 |
* <li> {@link #getType(int) getType(codePoint)} |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6145 |
* returns {@code LETTER_NUMBER}. |
2 | 6146 |
* </ul> |
6147 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6148 |
* @return {@code true} if the character may start a Unicode |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6149 |
* identifier; {@code false} otherwise. |
5990 | 6150 |
* @see Character#isJavaIdentifierStart(int) |
6151 |
* @see Character#isLetter(int) |
|
6152 |
* @see Character#isUnicodeIdentifierPart(int) |
|
2 | 6153 |
* @since 1.5 |
6154 |
*/ |
|
6155 |
public static boolean isUnicodeIdentifierStart(int codePoint) { |
|
6156 |
return CharacterData.of(codePoint).isUnicodeIdentifierStart(codePoint); |
|
6157 |
} |
|
6158 |
||
6159 |
/** |
|
6160 |
* Determines if the specified character may be part of a Unicode |
|
6161 |
* identifier as other than the first character. |
|
6162 |
* <p> |
|
6163 |
* A character may be part of a Unicode identifier if and only if |
|
6164 |
* one of the following statements is true: |
|
6165 |
* <ul> |
|
6166 |
* <li> it is a letter |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6167 |
* <li> it is a connecting punctuation character (such as {@code '_'}) |
2 | 6168 |
* <li> it is a digit |
6169 |
* <li> it is a numeric letter (such as a Roman numeral character) |
|
6170 |
* <li> it is a combining mark |
|
6171 |
* <li> it is a non-spacing mark |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6172 |
* <li> {@code isIdentifierIgnorable} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6173 |
* {@code true} for this character. |
2 | 6174 |
* </ul> |
6175 |
* |
|
6176 |
* <p><b>Note:</b> This method cannot handle <a |
|
6177 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6178 |
* all Unicode characters, including supplementary characters, use |
|
6179 |
* the {@link #isUnicodeIdentifierPart(int)} method. |
|
6180 |
* |
|
6181 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6182 |
* @return {@code true} if the character may be part of a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6183 |
* Unicode identifier; {@code false} otherwise. |
5990 | 6184 |
* @see Character#isIdentifierIgnorable(char) |
6185 |
* @see Character#isJavaIdentifierPart(char) |
|
6186 |
* @see Character#isLetterOrDigit(char) |
|
6187 |
* @see Character#isUnicodeIdentifierStart(char) |
|
2 | 6188 |
* @since 1.1 |
6189 |
*/ |
|
6190 |
public static boolean isUnicodeIdentifierPart(char ch) { |
|
6191 |
return isUnicodeIdentifierPart((int)ch); |
|
6192 |
} |
|
6193 |
||
6194 |
/** |
|
6195 |
* Determines if the specified character (Unicode code point) may be part of a Unicode |
|
6196 |
* identifier as other than the first character. |
|
6197 |
* <p> |
|
6198 |
* A character may be part of a Unicode identifier if and only if |
|
6199 |
* one of the following statements is true: |
|
6200 |
* <ul> |
|
6201 |
* <li> it is a letter |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6202 |
* <li> it is a connecting punctuation character (such as {@code '_'}) |
2 | 6203 |
* <li> it is a digit |
6204 |
* <li> it is a numeric letter (such as a Roman numeral character) |
|
6205 |
* <li> it is a combining mark |
|
6206 |
* <li> it is a non-spacing mark |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6207 |
* <li> {@code isIdentifierIgnorable} returns |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6208 |
* {@code true} for this character. |
2 | 6209 |
* </ul> |
6210 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6211 |
* @return {@code true} if the character may be part of a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6212 |
* Unicode identifier; {@code false} otherwise. |
5990 | 6213 |
* @see Character#isIdentifierIgnorable(int) |
6214 |
* @see Character#isJavaIdentifierPart(int) |
|
6215 |
* @see Character#isLetterOrDigit(int) |
|
6216 |
* @see Character#isUnicodeIdentifierStart(int) |
|
2 | 6217 |
* @since 1.5 |
6218 |
*/ |
|
6219 |
public static boolean isUnicodeIdentifierPart(int codePoint) { |
|
6220 |
return CharacterData.of(codePoint).isUnicodeIdentifierPart(codePoint); |
|
6221 |
} |
|
6222 |
||
6223 |
/** |
|
6224 |
* Determines if the specified character should be regarded as |
|
6225 |
* an ignorable character in a Java identifier or a Unicode identifier. |
|
6226 |
* <p> |
|
6227 |
* The following Unicode characters are ignorable in a Java identifier |
|
6228 |
* or a Unicode identifier: |
|
6229 |
* <ul> |
|
6230 |
* <li>ISO control characters that are not whitespace |
|
6231 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6232 |
* <li>{@code '\u005Cu0000'} through {@code '\u005Cu0008'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6233 |
* <li>{@code '\u005Cu000E'} through {@code '\u005Cu001B'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6234 |
* <li>{@code '\u005Cu007F'} through {@code '\u005Cu009F'} |
2 | 6235 |
* </ul> |
6236 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6237 |
* <li>all characters that have the {@code FORMAT} general |
2 | 6238 |
* category value |
6239 |
* </ul> |
|
6240 |
* |
|
6241 |
* <p><b>Note:</b> This method cannot handle <a |
|
6242 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6243 |
* all Unicode characters, including supplementary characters, use |
|
6244 |
* the {@link #isIdentifierIgnorable(int)} method. |
|
6245 |
* |
|
6246 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6247 |
* @return {@code true} if the character is an ignorable control |
2 | 6248 |
* character that may be part of a Java or Unicode identifier; |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6249 |
* {@code false} otherwise. |
5990 | 6250 |
* @see Character#isJavaIdentifierPart(char) |
6251 |
* @see Character#isUnicodeIdentifierPart(char) |
|
2 | 6252 |
* @since 1.1 |
6253 |
*/ |
|
6254 |
public static boolean isIdentifierIgnorable(char ch) { |
|
6255 |
return isIdentifierIgnorable((int)ch); |
|
6256 |
} |
|
6257 |
||
6258 |
/** |
|
6259 |
* Determines if the specified character (Unicode code point) should be regarded as |
|
6260 |
* an ignorable character in a Java identifier or a Unicode identifier. |
|
6261 |
* <p> |
|
6262 |
* The following Unicode characters are ignorable in a Java identifier |
|
6263 |
* or a Unicode identifier: |
|
6264 |
* <ul> |
|
6265 |
* <li>ISO control characters that are not whitespace |
|
6266 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6267 |
* <li>{@code '\u005Cu0000'} through {@code '\u005Cu0008'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6268 |
* <li>{@code '\u005Cu000E'} through {@code '\u005Cu001B'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6269 |
* <li>{@code '\u005Cu007F'} through {@code '\u005Cu009F'} |
2 | 6270 |
* </ul> |
6271 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6272 |
* <li>all characters that have the {@code FORMAT} general |
2 | 6273 |
* category value |
6274 |
* </ul> |
|
6275 |
* |
|
6276 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6277 |
* @return {@code true} if the character is an ignorable control |
2 | 6278 |
* character that may be part of a Java or Unicode identifier; |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6279 |
* {@code false} otherwise. |
5990 | 6280 |
* @see Character#isJavaIdentifierPart(int) |
6281 |
* @see Character#isUnicodeIdentifierPart(int) |
|
2 | 6282 |
* @since 1.5 |
6283 |
*/ |
|
6284 |
public static boolean isIdentifierIgnorable(int codePoint) { |
|
6285 |
return CharacterData.of(codePoint).isIdentifierIgnorable(codePoint); |
|
6286 |
} |
|
6287 |
||
6288 |
/** |
|
6289 |
* Converts the character argument to lowercase using case |
|
6290 |
* mapping information from the UnicodeData file. |
|
6291 |
* <p> |
|
6292 |
* Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6293 |
* {@code Character.isLowerCase(Character.toLowerCase(ch))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6294 |
* does not always return {@code true} for some ranges of |
2 | 6295 |
* characters, particularly those that are symbols or ideographs. |
6296 |
* |
|
5990 | 6297 |
* <p>In general, {@link String#toLowerCase()} should be used to map |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6298 |
* characters to lowercase. {@code String} case mapping methods |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6299 |
* have several benefits over {@code Character} case mapping methods. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6300 |
* {@code String} case mapping methods can perform locale-sensitive |
2 | 6301 |
* mappings, context-sensitive mappings, and 1:M character mappings, whereas |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6302 |
* the {@code Character} case mapping methods cannot. |
2 | 6303 |
* |
6304 |
* <p><b>Note:</b> This method cannot handle <a |
|
6305 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6306 |
* all Unicode characters, including supplementary characters, use |
|
6307 |
* the {@link #toLowerCase(int)} method. |
|
6308 |
* |
|
6309 |
* @param ch the character to be converted. |
|
6310 |
* @return the lowercase equivalent of the character, if any; |
|
6311 |
* otherwise, the character itself. |
|
5990 | 6312 |
* @see Character#isLowerCase(char) |
6313 |
* @see String#toLowerCase() |
|
2 | 6314 |
*/ |
6315 |
public static char toLowerCase(char ch) { |
|
6316 |
return (char)toLowerCase((int)ch); |
|
6317 |
} |
|
6318 |
||
6319 |
/** |
|
6320 |
* Converts the character (Unicode code point) argument to |
|
6321 |
* lowercase using case mapping information from the UnicodeData |
|
6322 |
* file. |
|
6323 |
* |
|
6324 |
* <p> Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6325 |
* {@code Character.isLowerCase(Character.toLowerCase(codePoint))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6326 |
* does not always return {@code true} for some ranges of |
2 | 6327 |
* characters, particularly those that are symbols or ideographs. |
6328 |
* |
|
5990 | 6329 |
* <p>In general, {@link String#toLowerCase()} should be used to map |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6330 |
* characters to lowercase. {@code String} case mapping methods |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6331 |
* have several benefits over {@code Character} case mapping methods. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6332 |
* {@code String} case mapping methods can perform locale-sensitive |
2 | 6333 |
* mappings, context-sensitive mappings, and 1:M character mappings, whereas |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6334 |
* the {@code Character} case mapping methods cannot. |
2 | 6335 |
* |
6336 |
* @param codePoint the character (Unicode code point) to be converted. |
|
6337 |
* @return the lowercase equivalent of the character (Unicode code |
|
6338 |
* point), if any; otherwise, the character itself. |
|
5990 | 6339 |
* @see Character#isLowerCase(int) |
6340 |
* @see String#toLowerCase() |
|
2 | 6341 |
* |
6342 |
* @since 1.5 |
|
6343 |
*/ |
|
6344 |
public static int toLowerCase(int codePoint) { |
|
6345 |
return CharacterData.of(codePoint).toLowerCase(codePoint); |
|
6346 |
} |
|
6347 |
||
6348 |
/** |
|
6349 |
* Converts the character argument to uppercase using case mapping |
|
6350 |
* information from the UnicodeData file. |
|
6351 |
* <p> |
|
6352 |
* Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6353 |
* {@code Character.isUpperCase(Character.toUpperCase(ch))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6354 |
* does not always return {@code true} for some ranges of |
2 | 6355 |
* characters, particularly those that are symbols or ideographs. |
6356 |
* |
|
5990 | 6357 |
* <p>In general, {@link String#toUpperCase()} should be used to map |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6358 |
* characters to uppercase. {@code String} case mapping methods |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6359 |
* have several benefits over {@code Character} case mapping methods. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6360 |
* {@code String} case mapping methods can perform locale-sensitive |
2 | 6361 |
* mappings, context-sensitive mappings, and 1:M character mappings, whereas |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6362 |
* the {@code Character} case mapping methods cannot. |
2 | 6363 |
* |
6364 |
* <p><b>Note:</b> This method cannot handle <a |
|
6365 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6366 |
* all Unicode characters, including supplementary characters, use |
|
6367 |
* the {@link #toUpperCase(int)} method. |
|
6368 |
* |
|
6369 |
* @param ch the character to be converted. |
|
6370 |
* @return the uppercase equivalent of the character, if any; |
|
6371 |
* otherwise, the character itself. |
|
5990 | 6372 |
* @see Character#isUpperCase(char) |
6373 |
* @see String#toUpperCase() |
|
2 | 6374 |
*/ |
6375 |
public static char toUpperCase(char ch) { |
|
6376 |
return (char)toUpperCase((int)ch); |
|
6377 |
} |
|
6378 |
||
6379 |
/** |
|
6380 |
* Converts the character (Unicode code point) argument to |
|
6381 |
* uppercase using case mapping information from the UnicodeData |
|
6382 |
* file. |
|
6383 |
* |
|
6384 |
* <p>Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6385 |
* {@code Character.isUpperCase(Character.toUpperCase(codePoint))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6386 |
* does not always return {@code true} for some ranges of |
2 | 6387 |
* characters, particularly those that are symbols or ideographs. |
6388 |
* |
|
5990 | 6389 |
* <p>In general, {@link String#toUpperCase()} should be used to map |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6390 |
* characters to uppercase. {@code String} case mapping methods |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6391 |
* have several benefits over {@code Character} case mapping methods. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6392 |
* {@code String} case mapping methods can perform locale-sensitive |
2 | 6393 |
* mappings, context-sensitive mappings, and 1:M character mappings, whereas |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6394 |
* the {@code Character} case mapping methods cannot. |
2 | 6395 |
* |
6396 |
* @param codePoint the character (Unicode code point) to be converted. |
|
6397 |
* @return the uppercase equivalent of the character, if any; |
|
6398 |
* otherwise, the character itself. |
|
5990 | 6399 |
* @see Character#isUpperCase(int) |
6400 |
* @see String#toUpperCase() |
|
2 | 6401 |
* |
6402 |
* @since 1.5 |
|
6403 |
*/ |
|
6404 |
public static int toUpperCase(int codePoint) { |
|
6405 |
return CharacterData.of(codePoint).toUpperCase(codePoint); |
|
6406 |
} |
|
6407 |
||
6408 |
/** |
|
6409 |
* Converts the character argument to titlecase using case mapping |
|
6410 |
* information from the UnicodeData file. If a character has no |
|
6411 |
* explicit titlecase mapping and is not itself a titlecase char |
|
6412 |
* according to UnicodeData, then the uppercase mapping is |
|
6413 |
* returned as an equivalent titlecase mapping. If the |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6414 |
* {@code char} argument is already a titlecase |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6415 |
* {@code char}, the same {@code char} value will be |
2 | 6416 |
* returned. |
6417 |
* <p> |
|
6418 |
* Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6419 |
* {@code Character.isTitleCase(Character.toTitleCase(ch))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6420 |
* does not always return {@code true} for some ranges of |
2 | 6421 |
* characters. |
6422 |
* |
|
6423 |
* <p><b>Note:</b> This method cannot handle <a |
|
6424 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6425 |
* all Unicode characters, including supplementary characters, use |
|
6426 |
* the {@link #toTitleCase(int)} method. |
|
6427 |
* |
|
6428 |
* @param ch the character to be converted. |
|
6429 |
* @return the titlecase equivalent of the character, if any; |
|
6430 |
* otherwise, the character itself. |
|
5990 | 6431 |
* @see Character#isTitleCase(char) |
6432 |
* @see Character#toLowerCase(char) |
|
6433 |
* @see Character#toUpperCase(char) |
|
2 | 6434 |
* @since 1.0.2 |
6435 |
*/ |
|
6436 |
public static char toTitleCase(char ch) { |
|
6437 |
return (char)toTitleCase((int)ch); |
|
6438 |
} |
|
6439 |
||
6440 |
/** |
|
6441 |
* Converts the character (Unicode code point) argument to titlecase using case mapping |
|
6442 |
* information from the UnicodeData file. If a character has no |
|
6443 |
* explicit titlecase mapping and is not itself a titlecase char |
|
6444 |
* according to UnicodeData, then the uppercase mapping is |
|
6445 |
* returned as an equivalent titlecase mapping. If the |
|
6446 |
* character argument is already a titlecase |
|
6447 |
* character, the same character value will be |
|
6448 |
* returned. |
|
6449 |
* |
|
6450 |
* <p>Note that |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6451 |
* {@code Character.isTitleCase(Character.toTitleCase(codePoint))} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6452 |
* does not always return {@code true} for some ranges of |
2 | 6453 |
* characters. |
6454 |
* |
|
6455 |
* @param codePoint the character (Unicode code point) to be converted. |
|
6456 |
* @return the titlecase equivalent of the character, if any; |
|
6457 |
* otherwise, the character itself. |
|
5990 | 6458 |
* @see Character#isTitleCase(int) |
6459 |
* @see Character#toLowerCase(int) |
|
6460 |
* @see Character#toUpperCase(int) |
|
2 | 6461 |
* @since 1.5 |
6462 |
*/ |
|
6463 |
public static int toTitleCase(int codePoint) { |
|
6464 |
return CharacterData.of(codePoint).toTitleCase(codePoint); |
|
6465 |
} |
|
6466 |
||
6467 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6468 |
* Returns the numeric value of the character {@code ch} in the |
2 | 6469 |
* specified radix. |
6470 |
* <p> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6471 |
* If the radix is not in the range {@code MIN_RADIX} ≤ |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6472 |
* {@code radix} ≤ {@code MAX_RADIX} or if the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6473 |
* value of {@code ch} is not a valid digit in the specified |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6474 |
* radix, {@code -1} is returned. A character is a valid digit |
2 | 6475 |
* if at least one of the following is true: |
6476 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6477 |
* <li>The method {@code isDigit} is {@code true} of the character |
2 | 6478 |
* and the Unicode decimal digit value of the character (or its |
6479 |
* single-character decomposition) is less than the specified radix. |
|
6480 |
* In this case the decimal digit value is returned. |
|
6481 |
* <li>The character is one of the uppercase Latin letters |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6482 |
* {@code 'A'} through {@code 'Z'} and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6483 |
* {@code radix + 'A' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6484 |
* In this case, {@code ch - 'A' + 10} |
2 | 6485 |
* is returned. |
6486 |
* <li>The character is one of the lowercase Latin letters |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6487 |
* {@code 'a'} through {@code 'z'} and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6488 |
* {@code radix + 'a' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6489 |
* In this case, {@code ch - 'a' + 10} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6490 |
* is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6491 |
* <li>The character is one of the fullwidth uppercase Latin letters A |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6492 |
* ({@code '\u005CuFF21'}) through Z ({@code '\u005CuFF3A'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6493 |
* and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6494 |
* {@code radix + '\u005CuFF21' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6495 |
* In this case, {@code ch - '\u005CuFF21' + 10} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6496 |
* is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6497 |
* <li>The character is one of the fullwidth lowercase Latin letters a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6498 |
* ({@code '\u005CuFF41'}) through z ({@code '\u005CuFF5A'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6499 |
* and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6500 |
* {@code radix + '\u005CuFF41' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6501 |
* In this case, {@code ch - '\u005CuFF41' + 10} |
2 | 6502 |
* is returned. |
6503 |
* </ul> |
|
6504 |
* |
|
6505 |
* <p><b>Note:</b> This method cannot handle <a |
|
6506 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6507 |
* all Unicode characters, including supplementary characters, use |
|
6508 |
* the {@link #digit(int, int)} method. |
|
6509 |
* |
|
6510 |
* @param ch the character to be converted. |
|
6511 |
* @param radix the radix. |
|
6512 |
* @return the numeric value represented by the character in the |
|
6513 |
* specified radix. |
|
5990 | 6514 |
* @see Character#forDigit(int, int) |
6515 |
* @see Character#isDigit(char) |
|
2 | 6516 |
*/ |
6517 |
public static int digit(char ch, int radix) { |
|
6518 |
return digit((int)ch, radix); |
|
6519 |
} |
|
6520 |
||
6521 |
/** |
|
6522 |
* Returns the numeric value of the specified character (Unicode |
|
6523 |
* code point) in the specified radix. |
|
6524 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6525 |
* <p>If the radix is not in the range {@code MIN_RADIX} ≤ |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6526 |
* {@code radix} ≤ {@code MAX_RADIX} or if the |
2 | 6527 |
* character is not a valid digit in the specified |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6528 |
* radix, {@code -1} is returned. A character is a valid digit |
2 | 6529 |
* if at least one of the following is true: |
6530 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6531 |
* <li>The method {@link #isDigit(int) isDigit(codePoint)} is {@code true} of the character |
2 | 6532 |
* and the Unicode decimal digit value of the character (or its |
6533 |
* single-character decomposition) is less than the specified radix. |
|
6534 |
* In this case the decimal digit value is returned. |
|
6535 |
* <li>The character is one of the uppercase Latin letters |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6536 |
* {@code 'A'} through {@code 'Z'} and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6537 |
* {@code radix + 'A' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6538 |
* In this case, {@code codePoint - 'A' + 10} |
2 | 6539 |
* is returned. |
6540 |
* <li>The character is one of the lowercase Latin letters |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6541 |
* {@code 'a'} through {@code 'z'} and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6542 |
* {@code radix + 'a' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6543 |
* In this case, {@code codePoint - 'a' + 10} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6544 |
* is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6545 |
* <li>The character is one of the fullwidth uppercase Latin letters A |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6546 |
* ({@code '\u005CuFF21'}) through Z ({@code '\u005CuFF3A'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6547 |
* and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6548 |
* {@code radix + '\u005CuFF21' - 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6549 |
* In this case, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6550 |
* {@code codePoint - '\u005CuFF21' + 10} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6551 |
* is returned. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6552 |
* <li>The character is one of the fullwidth lowercase Latin letters a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6553 |
* ({@code '\u005CuFF41'}) through z ({@code '\u005CuFF5A'}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6554 |
* and its code is less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6555 |
* {@code radix + '\u005CuFF41'- 10}. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6556 |
* In this case, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6557 |
* {@code codePoint - '\u005CuFF41' + 10} |
2 | 6558 |
* is returned. |
6559 |
* </ul> |
|
6560 |
* |
|
6561 |
* @param codePoint the character (Unicode code point) to be converted. |
|
6562 |
* @param radix the radix. |
|
6563 |
* @return the numeric value represented by the character in the |
|
6564 |
* specified radix. |
|
5990 | 6565 |
* @see Character#forDigit(int, int) |
6566 |
* @see Character#isDigit(int) |
|
2 | 6567 |
* @since 1.5 |
6568 |
*/ |
|
6569 |
public static int digit(int codePoint, int radix) { |
|
6570 |
return CharacterData.of(codePoint).digit(codePoint, radix); |
|
6571 |
} |
|
6572 |
||
6573 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6574 |
* Returns the {@code int} value that the specified Unicode |
2 | 6575 |
* character represents. For example, the character |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6576 |
* {@code '\u005Cu216C'} (the roman numeral fifty) will return |
2 | 6577 |
* an int with a value of 50. |
6578 |
* <p> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6579 |
* The letters A-Z in their uppercase ({@code '\u005Cu0041'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6580 |
* {@code '\u005Cu005A'}), lowercase |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6581 |
* ({@code '\u005Cu0061'} through {@code '\u005Cu007A'}), and |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6582 |
* full width variant ({@code '\u005CuFF21'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6583 |
* {@code '\u005CuFF3A'} and {@code '\u005CuFF41'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6584 |
* {@code '\u005CuFF5A'}) forms have numeric values from 10 |
2 | 6585 |
* through 35. This is independent of the Unicode specification, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6586 |
* which does not assign numeric values to these {@code char} |
2 | 6587 |
* values. |
6588 |
* <p> |
|
6589 |
* If the character does not have a numeric value, then -1 is returned. |
|
6590 |
* If the character has a numeric value that cannot be represented as a |
|
6591 |
* nonnegative integer (for example, a fractional value), then -2 |
|
6592 |
* is returned. |
|
6593 |
* |
|
6594 |
* <p><b>Note:</b> This method cannot handle <a |
|
6595 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6596 |
* all Unicode characters, including supplementary characters, use |
|
6597 |
* the {@link #getNumericValue(int)} method. |
|
6598 |
* |
|
6599 |
* @param ch the character to be converted. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6600 |
* @return the numeric value of the character, as a nonnegative {@code int} |
2 | 6601 |
* value; -2 if the character has a numeric value that is not a |
6602 |
* nonnegative integer; -1 if the character has no numeric value. |
|
5990 | 6603 |
* @see Character#forDigit(int, int) |
6604 |
* @see Character#isDigit(char) |
|
2 | 6605 |
* @since 1.1 |
6606 |
*/ |
|
6607 |
public static int getNumericValue(char ch) { |
|
6608 |
return getNumericValue((int)ch); |
|
6609 |
} |
|
6610 |
||
6611 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6612 |
* Returns the {@code int} value that the specified |
2 | 6613 |
* character (Unicode code point) represents. For example, the character |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6614 |
* {@code '\u005Cu216C'} (the Roman numeral fifty) will return |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6615 |
* an {@code int} with a value of 50. |
2 | 6616 |
* <p> |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6617 |
* The letters A-Z in their uppercase ({@code '\u005Cu0041'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6618 |
* {@code '\u005Cu005A'}), lowercase |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6619 |
* ({@code '\u005Cu0061'} through {@code '\u005Cu007A'}), and |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6620 |
* full width variant ({@code '\u005CuFF21'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6621 |
* {@code '\u005CuFF3A'} and {@code '\u005CuFF41'} through |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6622 |
* {@code '\u005CuFF5A'}) forms have numeric values from 10 |
2 | 6623 |
* through 35. This is independent of the Unicode specification, |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6624 |
* which does not assign numeric values to these {@code char} |
2 | 6625 |
* values. |
6626 |
* <p> |
|
6627 |
* If the character does not have a numeric value, then -1 is returned. |
|
6628 |
* If the character has a numeric value that cannot be represented as a |
|
6629 |
* nonnegative integer (for example, a fractional value), then -2 |
|
6630 |
* is returned. |
|
6631 |
* |
|
6632 |
* @param codePoint the character (Unicode code point) to be converted. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6633 |
* @return the numeric value of the character, as a nonnegative {@code int} |
2 | 6634 |
* value; -2 if the character has a numeric value that is not a |
6635 |
* nonnegative integer; -1 if the character has no numeric value. |
|
5990 | 6636 |
* @see Character#forDigit(int, int) |
6637 |
* @see Character#isDigit(int) |
|
2 | 6638 |
* @since 1.5 |
6639 |
*/ |
|
6640 |
public static int getNumericValue(int codePoint) { |
|
6641 |
return CharacterData.of(codePoint).getNumericValue(codePoint); |
|
6642 |
} |
|
6643 |
||
6644 |
/** |
|
6645 |
* Determines if the specified character is ISO-LATIN-1 white space. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6646 |
* This method returns {@code true} for the following five |
2 | 6647 |
* characters only: |
6648 |
* <table> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6649 |
* <tr><td>{@code '\t'}</td> <td>{@code U+0009}</td> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6650 |
* <td>{@code HORIZONTAL TABULATION}</td></tr> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6651 |
* <tr><td>{@code '\n'}</td> <td>{@code U+000A}</td> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6652 |
* <td>{@code NEW LINE}</td></tr> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6653 |
* <tr><td>{@code '\f'}</td> <td>{@code U+000C}</td> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6654 |
* <td>{@code FORM FEED}</td></tr> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6655 |
* <tr><td>{@code '\r'}</td> <td>{@code U+000D}</td> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6656 |
* <td>{@code CARRIAGE RETURN}</td></tr> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6657 |
* <tr><td>{@code ' '}</td> <td>{@code U+0020}</td> |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6658 |
* <td>{@code SPACE}</td></tr> |
2 | 6659 |
* </table> |
6660 |
* |
|
6661 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6662 |
* @return {@code true} if the character is ISO-LATIN-1 white |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6663 |
* space; {@code false} otherwise. |
5990 | 6664 |
* @see Character#isSpaceChar(char) |
6665 |
* @see Character#isWhitespace(char) |
|
2 | 6666 |
* @deprecated Replaced by isWhitespace(char). |
6667 |
*/ |
|
6668 |
@Deprecated |
|
6669 |
public static boolean isSpace(char ch) { |
|
6670 |
return (ch <= 0x0020) && |
|
6671 |
(((((1L << 0x0009) | |
|
6672 |
(1L << 0x000A) | |
|
6673 |
(1L << 0x000C) | |
|
6674 |
(1L << 0x000D) | |
|
6675 |
(1L << 0x0020)) >> ch) & 1L) != 0); |
|
6676 |
} |
|
6677 |
||
6678 |
||
6679 |
/** |
|
6680 |
* Determines if the specified character is a Unicode space character. |
|
6681 |
* A character is considered to be a space character if and only if |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
6682 |
* it is specified to be a space character by the Unicode Standard. This |
2 | 6683 |
* method returns true if the character's general category type is any of |
6684 |
* the following: |
|
6685 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6686 |
* <li> {@code SPACE_SEPARATOR} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6687 |
* <li> {@code LINE_SEPARATOR} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6688 |
* <li> {@code PARAGRAPH_SEPARATOR} |
2 | 6689 |
* </ul> |
6690 |
* |
|
6691 |
* <p><b>Note:</b> This method cannot handle <a |
|
6692 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6693 |
* all Unicode characters, including supplementary characters, use |
|
6694 |
* the {@link #isSpaceChar(int)} method. |
|
6695 |
* |
|
6696 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6697 |
* @return {@code true} if the character is a space character; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6698 |
* {@code false} otherwise. |
5990 | 6699 |
* @see Character#isWhitespace(char) |
2 | 6700 |
* @since 1.1 |
6701 |
*/ |
|
6702 |
public static boolean isSpaceChar(char ch) { |
|
6703 |
return isSpaceChar((int)ch); |
|
6704 |
} |
|
6705 |
||
6706 |
/** |
|
6707 |
* Determines if the specified character (Unicode code point) is a |
|
6708 |
* Unicode space character. A character is considered to be a |
|
6709 |
* space character if and only if it is specified to be a space |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
6710 |
* character by the Unicode Standard. This method returns true if |
2 | 6711 |
* the character's general category type is any of the following: |
6712 |
* |
|
6713 |
* <ul> |
|
6714 |
* <li> {@link #SPACE_SEPARATOR} |
|
6715 |
* <li> {@link #LINE_SEPARATOR} |
|
6716 |
* <li> {@link #PARAGRAPH_SEPARATOR} |
|
6717 |
* </ul> |
|
6718 |
* |
|
6719 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6720 |
* @return {@code true} if the character is a space character; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6721 |
* {@code false} otherwise. |
5990 | 6722 |
* @see Character#isWhitespace(int) |
2 | 6723 |
* @since 1.5 |
6724 |
*/ |
|
6725 |
public static boolean isSpaceChar(int codePoint) { |
|
6726 |
return ((((1 << Character.SPACE_SEPARATOR) | |
|
6727 |
(1 << Character.LINE_SEPARATOR) | |
|
6728 |
(1 << Character.PARAGRAPH_SEPARATOR)) >> getType(codePoint)) & 1) |
|
6729 |
!= 0; |
|
6730 |
} |
|
6731 |
||
6732 |
/** |
|
6733 |
* Determines if the specified character is white space according to Java. |
|
6734 |
* A character is a Java whitespace character if and only if it satisfies |
|
6735 |
* one of the following criteria: |
|
6736 |
* <ul> |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6737 |
* <li> It is a Unicode space character ({@code SPACE_SEPARATOR}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6738 |
* {@code LINE_SEPARATOR}, or {@code PARAGRAPH_SEPARATOR}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6739 |
* but is not also a non-breaking space ({@code '\u005Cu00A0'}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6740 |
* {@code '\u005Cu2007'}, {@code '\u005Cu202F'}). |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6741 |
* <li> It is {@code '\u005Ct'}, U+0009 HORIZONTAL TABULATION. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6742 |
* <li> It is {@code '\u005Cn'}, U+000A LINE FEED. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6743 |
* <li> It is {@code '\u005Cu000B'}, U+000B VERTICAL TABULATION. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6744 |
* <li> It is {@code '\u005Cf'}, U+000C FORM FEED. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6745 |
* <li> It is {@code '\u005Cr'}, U+000D CARRIAGE RETURN. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6746 |
* <li> It is {@code '\u005Cu001C'}, U+001C FILE SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6747 |
* <li> It is {@code '\u005Cu001D'}, U+001D GROUP SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6748 |
* <li> It is {@code '\u005Cu001E'}, U+001E RECORD SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6749 |
* <li> It is {@code '\u005Cu001F'}, U+001F UNIT SEPARATOR. |
2 | 6750 |
* </ul> |
6751 |
* |
|
6752 |
* <p><b>Note:</b> This method cannot handle <a |
|
6753 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6754 |
* all Unicode characters, including supplementary characters, use |
|
6755 |
* the {@link #isWhitespace(int)} method. |
|
6756 |
* |
|
6757 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6758 |
* @return {@code true} if the character is a Java whitespace |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6759 |
* character; {@code false} otherwise. |
5990 | 6760 |
* @see Character#isSpaceChar(char) |
2 | 6761 |
* @since 1.1 |
6762 |
*/ |
|
6763 |
public static boolean isWhitespace(char ch) { |
|
6764 |
return isWhitespace((int)ch); |
|
6765 |
} |
|
6766 |
||
6767 |
/** |
|
6768 |
* Determines if the specified character (Unicode code point) is |
|
6769 |
* white space according to Java. A character is a Java |
|
6770 |
* whitespace character if and only if it satisfies one of the |
|
6771 |
* following criteria: |
|
6772 |
* <ul> |
|
6773 |
* <li> It is a Unicode space character ({@link #SPACE_SEPARATOR}, |
|
6774 |
* {@link #LINE_SEPARATOR}, or {@link #PARAGRAPH_SEPARATOR}) |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6775 |
* but is not also a non-breaking space ({@code '\u005Cu00A0'}, |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6776 |
* {@code '\u005Cu2007'}, {@code '\u005Cu202F'}). |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6777 |
* <li> It is {@code '\u005Ct'}, U+0009 HORIZONTAL TABULATION. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6778 |
* <li> It is {@code '\u005Cn'}, U+000A LINE FEED. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6779 |
* <li> It is {@code '\u005Cu000B'}, U+000B VERTICAL TABULATION. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6780 |
* <li> It is {@code '\u005Cf'}, U+000C FORM FEED. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6781 |
* <li> It is {@code '\u005Cr'}, U+000D CARRIAGE RETURN. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6782 |
* <li> It is {@code '\u005Cu001C'}, U+001C FILE SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6783 |
* <li> It is {@code '\u005Cu001D'}, U+001D GROUP SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6784 |
* <li> It is {@code '\u005Cu001E'}, U+001E RECORD SEPARATOR. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6785 |
* <li> It is {@code '\u005Cu001F'}, U+001F UNIT SEPARATOR. |
2 | 6786 |
* </ul> |
6787 |
* <p> |
|
6788 |
* |
|
6789 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6790 |
* @return {@code true} if the character is a Java whitespace |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6791 |
* character; {@code false} otherwise. |
5990 | 6792 |
* @see Character#isSpaceChar(int) |
2 | 6793 |
* @since 1.5 |
6794 |
*/ |
|
6795 |
public static boolean isWhitespace(int codePoint) { |
|
6796 |
return CharacterData.of(codePoint).isWhitespace(codePoint); |
|
6797 |
} |
|
6798 |
||
6799 |
/** |
|
6800 |
* Determines if the specified character is an ISO control |
|
6801 |
* character. A character is considered to be an ISO control |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6802 |
* character if its code is in the range {@code '\u005Cu0000'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6803 |
* through {@code '\u005Cu001F'} or in the range |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6804 |
* {@code '\u005Cu007F'} through {@code '\u005Cu009F'}. |
2 | 6805 |
* |
6806 |
* <p><b>Note:</b> This method cannot handle <a |
|
6807 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6808 |
* all Unicode characters, including supplementary characters, use |
|
6809 |
* the {@link #isISOControl(int)} method. |
|
6810 |
* |
|
6811 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6812 |
* @return {@code true} if the character is an ISO control character; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6813 |
* {@code false} otherwise. |
2 | 6814 |
* |
5990 | 6815 |
* @see Character#isSpaceChar(char) |
6816 |
* @see Character#isWhitespace(char) |
|
2 | 6817 |
* @since 1.1 |
6818 |
*/ |
|
6819 |
public static boolean isISOControl(char ch) { |
|
6820 |
return isISOControl((int)ch); |
|
6821 |
} |
|
6822 |
||
6823 |
/** |
|
6824 |
* Determines if the referenced character (Unicode code point) is an ISO control |
|
6825 |
* character. A character is considered to be an ISO control |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6826 |
* character if its code is in the range {@code '\u005Cu0000'} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6827 |
* through {@code '\u005Cu001F'} or in the range |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6828 |
* {@code '\u005Cu007F'} through {@code '\u005Cu009F'}. |
2 | 6829 |
* |
6830 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6831 |
* @return {@code true} if the character is an ISO control character; |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6832 |
* {@code false} otherwise. |
5990 | 6833 |
* @see Character#isSpaceChar(int) |
6834 |
* @see Character#isWhitespace(int) |
|
2 | 6835 |
* @since 1.5 |
6836 |
*/ |
|
6837 |
public static boolean isISOControl(int codePoint) { |
|
5985
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
6838 |
// Optimized form of: |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
6839 |
// (codePoint >= 0x00 && codePoint <= 0x1F) || |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
6840 |
// (codePoint >= 0x7F && codePoint <= 0x9F); |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
6841 |
return codePoint <= 0x9F && |
f98ac682b34c
6934268: Better implementation of Character.isValidCodePoint
martin
parents:
5627
diff
changeset
|
6842 |
(codePoint >= 0x7F || (codePoint >>> 5 == 0)); |
2 | 6843 |
} |
6844 |
||
6845 |
/** |
|
6846 |
* Returns a value indicating a character's general category. |
|
6847 |
* |
|
6848 |
* <p><b>Note:</b> This method cannot handle <a |
|
6849 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6850 |
* all Unicode characters, including supplementary characters, use |
|
6851 |
* the {@link #getType(int)} method. |
|
6852 |
* |
|
6853 |
* @param ch the character to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6854 |
* @return a value of type {@code int} representing the |
2 | 6855 |
* character's general category. |
5990 | 6856 |
* @see Character#COMBINING_SPACING_MARK |
6857 |
* @see Character#CONNECTOR_PUNCTUATION |
|
6858 |
* @see Character#CONTROL |
|
6859 |
* @see Character#CURRENCY_SYMBOL |
|
6860 |
* @see Character#DASH_PUNCTUATION |
|
6861 |
* @see Character#DECIMAL_DIGIT_NUMBER |
|
6862 |
* @see Character#ENCLOSING_MARK |
|
6863 |
* @see Character#END_PUNCTUATION |
|
6864 |
* @see Character#FINAL_QUOTE_PUNCTUATION |
|
6865 |
* @see Character#FORMAT |
|
6866 |
* @see Character#INITIAL_QUOTE_PUNCTUATION |
|
6867 |
* @see Character#LETTER_NUMBER |
|
6868 |
* @see Character#LINE_SEPARATOR |
|
6869 |
* @see Character#LOWERCASE_LETTER |
|
6870 |
* @see Character#MATH_SYMBOL |
|
6871 |
* @see Character#MODIFIER_LETTER |
|
6872 |
* @see Character#MODIFIER_SYMBOL |
|
6873 |
* @see Character#NON_SPACING_MARK |
|
6874 |
* @see Character#OTHER_LETTER |
|
6875 |
* @see Character#OTHER_NUMBER |
|
6876 |
* @see Character#OTHER_PUNCTUATION |
|
6877 |
* @see Character#OTHER_SYMBOL |
|
6878 |
* @see Character#PARAGRAPH_SEPARATOR |
|
6879 |
* @see Character#PRIVATE_USE |
|
6880 |
* @see Character#SPACE_SEPARATOR |
|
6881 |
* @see Character#START_PUNCTUATION |
|
6882 |
* @see Character#SURROGATE |
|
6883 |
* @see Character#TITLECASE_LETTER |
|
6884 |
* @see Character#UNASSIGNED |
|
6885 |
* @see Character#UPPERCASE_LETTER |
|
2 | 6886 |
* @since 1.1 |
6887 |
*/ |
|
6888 |
public static int getType(char ch) { |
|
6889 |
return getType((int)ch); |
|
6890 |
} |
|
6891 |
||
6892 |
/** |
|
6893 |
* Returns a value indicating a character's general category. |
|
6894 |
* |
|
6895 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6896 |
* @return a value of type {@code int} representing the |
2 | 6897 |
* character's general category. |
6898 |
* @see Character#COMBINING_SPACING_MARK COMBINING_SPACING_MARK |
|
6899 |
* @see Character#CONNECTOR_PUNCTUATION CONNECTOR_PUNCTUATION |
|
6900 |
* @see Character#CONTROL CONTROL |
|
6901 |
* @see Character#CURRENCY_SYMBOL CURRENCY_SYMBOL |
|
6902 |
* @see Character#DASH_PUNCTUATION DASH_PUNCTUATION |
|
6903 |
* @see Character#DECIMAL_DIGIT_NUMBER DECIMAL_DIGIT_NUMBER |
|
6904 |
* @see Character#ENCLOSING_MARK ENCLOSING_MARK |
|
6905 |
* @see Character#END_PUNCTUATION END_PUNCTUATION |
|
6906 |
* @see Character#FINAL_QUOTE_PUNCTUATION FINAL_QUOTE_PUNCTUATION |
|
6907 |
* @see Character#FORMAT FORMAT |
|
6908 |
* @see Character#INITIAL_QUOTE_PUNCTUATION INITIAL_QUOTE_PUNCTUATION |
|
6909 |
* @see Character#LETTER_NUMBER LETTER_NUMBER |
|
6910 |
* @see Character#LINE_SEPARATOR LINE_SEPARATOR |
|
6911 |
* @see Character#LOWERCASE_LETTER LOWERCASE_LETTER |
|
6912 |
* @see Character#MATH_SYMBOL MATH_SYMBOL |
|
6913 |
* @see Character#MODIFIER_LETTER MODIFIER_LETTER |
|
6914 |
* @see Character#MODIFIER_SYMBOL MODIFIER_SYMBOL |
|
6915 |
* @see Character#NON_SPACING_MARK NON_SPACING_MARK |
|
6916 |
* @see Character#OTHER_LETTER OTHER_LETTER |
|
6917 |
* @see Character#OTHER_NUMBER OTHER_NUMBER |
|
6918 |
* @see Character#OTHER_PUNCTUATION OTHER_PUNCTUATION |
|
6919 |
* @see Character#OTHER_SYMBOL OTHER_SYMBOL |
|
6920 |
* @see Character#PARAGRAPH_SEPARATOR PARAGRAPH_SEPARATOR |
|
6921 |
* @see Character#PRIVATE_USE PRIVATE_USE |
|
6922 |
* @see Character#SPACE_SEPARATOR SPACE_SEPARATOR |
|
6923 |
* @see Character#START_PUNCTUATION START_PUNCTUATION |
|
6924 |
* @see Character#SURROGATE SURROGATE |
|
6925 |
* @see Character#TITLECASE_LETTER TITLECASE_LETTER |
|
6926 |
* @see Character#UNASSIGNED UNASSIGNED |
|
6927 |
* @see Character#UPPERCASE_LETTER UPPERCASE_LETTER |
|
6928 |
* @since 1.5 |
|
6929 |
*/ |
|
6930 |
public static int getType(int codePoint) { |
|
6931 |
return CharacterData.of(codePoint).getType(codePoint); |
|
6932 |
} |
|
6933 |
||
6934 |
/** |
|
6935 |
* Determines the character representation for a specific digit in |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6936 |
* the specified radix. If the value of {@code radix} is not a |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6937 |
* valid radix, or the value of {@code digit} is not a valid |
2 | 6938 |
* digit in the specified radix, the null character |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6939 |
* ({@code '\u005Cu0000'}) is returned. |
2 | 6940 |
* <p> |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6941 |
* The {@code radix} argument is valid if it is greater than or |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6942 |
* equal to {@code MIN_RADIX} and less than or equal to |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6943 |
* {@code MAX_RADIX}. The {@code digit} argument is valid if |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6944 |
* {@code 0 <= digit < radix}. |
2 | 6945 |
* <p> |
6946 |
* If the digit is less than 10, then |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6947 |
* {@code '0' + digit} is returned. Otherwise, the value |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6948 |
* {@code 'a' + digit - 10} is returned. |
2 | 6949 |
* |
6950 |
* @param digit the number to convert to a character. |
|
6951 |
* @param radix the radix. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6952 |
* @return the {@code char} representation of the specified digit |
2 | 6953 |
* in the specified radix. |
5990 | 6954 |
* @see Character#MIN_RADIX |
6955 |
* @see Character#MAX_RADIX |
|
6956 |
* @see Character#digit(char, int) |
|
2 | 6957 |
*/ |
6958 |
public static char forDigit(int digit, int radix) { |
|
6959 |
if ((digit >= radix) || (digit < 0)) { |
|
6960 |
return '\0'; |
|
6961 |
} |
|
6962 |
if ((radix < Character.MIN_RADIX) || (radix > Character.MAX_RADIX)) { |
|
6963 |
return '\0'; |
|
6964 |
} |
|
6965 |
if (digit < 10) { |
|
6966 |
return (char)('0' + digit); |
|
6967 |
} |
|
6968 |
return (char)('a' - 10 + digit); |
|
6969 |
} |
|
6970 |
||
6971 |
/** |
|
6972 |
* Returns the Unicode directionality property for the given |
|
6973 |
* character. Character directionality is used to calculate the |
|
6974 |
* visual ordering of text. The directionality value of undefined |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6975 |
* {@code char} values is {@code DIRECTIONALITY_UNDEFINED}. |
2 | 6976 |
* |
6977 |
* <p><b>Note:</b> This method cannot handle <a |
|
6978 |
* href="#supplementary"> supplementary characters</a>. To support |
|
6979 |
* all Unicode characters, including supplementary characters, use |
|
6980 |
* the {@link #getDirectionality(int)} method. |
|
6981 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6982 |
* @param ch {@code char} for which the directionality property |
2 | 6983 |
* is requested. |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
6984 |
* @return the directionality property of the {@code char} value. |
2 | 6985 |
* |
6986 |
* @see Character#DIRECTIONALITY_UNDEFINED |
|
6987 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT |
|
6988 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT |
|
6989 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC |
|
6990 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER |
|
6991 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR |
|
6992 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR |
|
6993 |
* @see Character#DIRECTIONALITY_ARABIC_NUMBER |
|
6994 |
* @see Character#DIRECTIONALITY_COMMON_NUMBER_SEPARATOR |
|
6995 |
* @see Character#DIRECTIONALITY_NONSPACING_MARK |
|
6996 |
* @see Character#DIRECTIONALITY_BOUNDARY_NEUTRAL |
|
6997 |
* @see Character#DIRECTIONALITY_PARAGRAPH_SEPARATOR |
|
6998 |
* @see Character#DIRECTIONALITY_SEGMENT_SEPARATOR |
|
6999 |
* @see Character#DIRECTIONALITY_WHITESPACE |
|
7000 |
* @see Character#DIRECTIONALITY_OTHER_NEUTRALS |
|
7001 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING |
|
7002 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE |
|
7003 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING |
|
7004 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE |
|
7005 |
* @see Character#DIRECTIONALITY_POP_DIRECTIONAL_FORMAT |
|
7006 |
* @since 1.4 |
|
7007 |
*/ |
|
7008 |
public static byte getDirectionality(char ch) { |
|
7009 |
return getDirectionality((int)ch); |
|
7010 |
} |
|
7011 |
||
7012 |
/** |
|
7013 |
* Returns the Unicode directionality property for the given |
|
7014 |
* character (Unicode code point). Character directionality is |
|
7015 |
* used to calculate the visual ordering of text. The |
|
7016 |
* directionality value of undefined character is {@link |
|
7017 |
* #DIRECTIONALITY_UNDEFINED}. |
|
7018 |
* |
|
7019 |
* @param codePoint the character (Unicode code point) for which |
|
7020 |
* the directionality property is requested. |
|
7021 |
* @return the directionality property of the character. |
|
7022 |
* |
|
7023 |
* @see Character#DIRECTIONALITY_UNDEFINED DIRECTIONALITY_UNDEFINED |
|
7024 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT DIRECTIONALITY_LEFT_TO_RIGHT |
|
7025 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT DIRECTIONALITY_RIGHT_TO_LEFT |
|
7026 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC |
|
7027 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER DIRECTIONALITY_EUROPEAN_NUMBER |
|
7028 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR |
|
7029 |
* @see Character#DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR |
|
7030 |
* @see Character#DIRECTIONALITY_ARABIC_NUMBER DIRECTIONALITY_ARABIC_NUMBER |
|
7031 |
* @see Character#DIRECTIONALITY_COMMON_NUMBER_SEPARATOR DIRECTIONALITY_COMMON_NUMBER_SEPARATOR |
|
7032 |
* @see Character#DIRECTIONALITY_NONSPACING_MARK DIRECTIONALITY_NONSPACING_MARK |
|
7033 |
* @see Character#DIRECTIONALITY_BOUNDARY_NEUTRAL DIRECTIONALITY_BOUNDARY_NEUTRAL |
|
7034 |
* @see Character#DIRECTIONALITY_PARAGRAPH_SEPARATOR DIRECTIONALITY_PARAGRAPH_SEPARATOR |
|
7035 |
* @see Character#DIRECTIONALITY_SEGMENT_SEPARATOR DIRECTIONALITY_SEGMENT_SEPARATOR |
|
7036 |
* @see Character#DIRECTIONALITY_WHITESPACE DIRECTIONALITY_WHITESPACE |
|
7037 |
* @see Character#DIRECTIONALITY_OTHER_NEUTRALS DIRECTIONALITY_OTHER_NEUTRALS |
|
7038 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING |
|
7039 |
* @see Character#DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE |
|
7040 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING |
|
7041 |
* @see Character#DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE |
|
7042 |
* @see Character#DIRECTIONALITY_POP_DIRECTIONAL_FORMAT DIRECTIONALITY_POP_DIRECTIONAL_FORMAT |
|
7043 |
* @since 1.5 |
|
7044 |
*/ |
|
7045 |
public static byte getDirectionality(int codePoint) { |
|
7046 |
return CharacterData.of(codePoint).getDirectionality(codePoint); |
|
7047 |
} |
|
7048 |
||
7049 |
/** |
|
7050 |
* Determines whether the character is mirrored according to the |
|
7051 |
* Unicode specification. Mirrored characters should have their |
|
7052 |
* glyphs horizontally mirrored when displayed in text that is |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7053 |
* right-to-left. For example, {@code '\u005Cu0028'} LEFT |
2 | 7054 |
* PARENTHESIS is semantically defined to be an <i>opening |
7055 |
* parenthesis</i>. This will appear as a "(" in text that is |
|
7056 |
* left-to-right but as a ")" in text that is right-to-left. |
|
7057 |
* |
|
7058 |
* <p><b>Note:</b> This method cannot handle <a |
|
7059 |
* href="#supplementary"> supplementary characters</a>. To support |
|
7060 |
* all Unicode characters, including supplementary characters, use |
|
7061 |
* the {@link #isMirrored(int)} method. |
|
7062 |
* |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7063 |
* @param ch {@code char} for which the mirrored property is requested |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7064 |
* @return {@code true} if the char is mirrored, {@code false} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7065 |
* if the {@code char} is not mirrored or is not defined. |
2 | 7066 |
* @since 1.4 |
7067 |
*/ |
|
7068 |
public static boolean isMirrored(char ch) { |
|
7069 |
return isMirrored((int)ch); |
|
7070 |
} |
|
7071 |
||
7072 |
/** |
|
7073 |
* Determines whether the specified character (Unicode code point) |
|
7074 |
* is mirrored according to the Unicode specification. Mirrored |
|
7075 |
* characters should have their glyphs horizontally mirrored when |
|
7076 |
* displayed in text that is right-to-left. For example, |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7077 |
* {@code '\u005Cu0028'} LEFT PARENTHESIS is semantically |
2 | 7078 |
* defined to be an <i>opening parenthesis</i>. This will appear |
7079 |
* as a "(" in text that is left-to-right but as a ")" in text |
|
7080 |
* that is right-to-left. |
|
7081 |
* |
|
7082 |
* @param codePoint the character (Unicode code point) to be tested. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7083 |
* @return {@code true} if the character is mirrored, {@code false} |
2 | 7084 |
* if the character is not mirrored or is not defined. |
7085 |
* @since 1.5 |
|
7086 |
*/ |
|
7087 |
public static boolean isMirrored(int codePoint) { |
|
7088 |
return CharacterData.of(codePoint).isMirrored(codePoint); |
|
7089 |
} |
|
7090 |
||
7091 |
/** |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7092 |
* Compares two {@code Character} objects numerically. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7093 |
* |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7094 |
* @param anotherCharacter the {@code Character} to be compared. |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7095 |
|
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7096 |
* @return the value {@code 0} if the argument {@code Character} |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7097 |
* is equal to this {@code Character}; a value less than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7098 |
* {@code 0} if this {@code Character} is numerically less |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7099 |
* than the {@code Character} argument; and a value greater than |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7100 |
* {@code 0} if this {@code Character} is numerically greater |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7101 |
* than the {@code Character} argument (unsigned comparison). |
2 | 7102 |
* Note that this is strictly a numerical comparison; it is not |
7103 |
* locale-dependent. |
|
7104 |
* @since 1.2 |
|
7105 |
*/ |
|
7106 |
public int compareTo(Character anotherCharacter) { |
|
3943
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7107 |
return compare(this.value, anotherCharacter.value); |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7108 |
} |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7109 |
|
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7110 |
/** |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7111 |
* Compares two {@code char} values numerically. |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7112 |
* 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
|
7113 |
* <pre> |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7114 |
* 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
|
7115 |
* </pre> |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7116 |
* |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7117 |
* @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
|
7118 |
* @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
|
7119 |
* @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
|
7120 |
* 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
|
7121 |
* 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
|
7122 |
* @since 1.7 |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7123 |
*/ |
11abf5578222
6582946: Add suite of compare(T, T) methods for ints, longs etc
martin
parents:
3942
diff
changeset
|
7124 |
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
|
7125 |
return x - y; |
2 | 7126 |
} |
7127 |
||
7128 |
/** |
|
7129 |
* Converts the character (Unicode code point) argument to uppercase using |
|
7130 |
* information from the UnicodeData file. |
|
7131 |
* <p> |
|
7132 |
* |
|
7133 |
* @param codePoint the character (Unicode code point) to be converted. |
|
7134 |
* @return either the uppercase equivalent of the character, if |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7135 |
* any, or an error flag ({@code Character.ERROR}) |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7136 |
* that indicates that a 1:M {@code char} mapping exists. |
5990 | 7137 |
* @see Character#isLowerCase(char) |
7138 |
* @see Character#isUpperCase(char) |
|
7139 |
* @see Character#toLowerCase(char) |
|
7140 |
* @see Character#toTitleCase(char) |
|
2 | 7141 |
* @since 1.4 |
7142 |
*/ |
|
7143 |
static int toUpperCaseEx(int codePoint) { |
|
7144 |
assert isValidCodePoint(codePoint); |
|
7145 |
return CharacterData.of(codePoint).toUpperCaseEx(codePoint); |
|
7146 |
} |
|
7147 |
||
7148 |
/** |
|
7149 |
* Converts the character (Unicode code point) argument to uppercase using case |
|
7150 |
* mapping information from the SpecialCasing file in the Unicode |
|
7151 |
* specification. If a character has no explicit uppercase |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7152 |
* mapping, then the {@code char} itself is returned in the |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7153 |
* {@code char[]}. |
2 | 7154 |
* |
7155 |
* @param codePoint the character (Unicode code point) to be converted. |
|
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7156 |
* @return a {@code char[]} with the uppercased character. |
2 | 7157 |
* @since 1.4 |
7158 |
*/ |
|
7159 |
static char[] toUpperCaseCharArray(int codePoint) { |
|
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
7160 |
// As of Unicode 6.0, 1:M uppercasings only happen in the BMP. |
5986
04eb44085c00
6934265: Add public method Character.isBmpCodePoint
martin
parents:
5985
diff
changeset
|
7161 |
assert isBmpCodePoint(codePoint); |
2 | 7162 |
return CharacterData.of(codePoint).toUpperCaseCharArray(codePoint); |
7163 |
} |
|
7164 |
||
7165 |
/** |
|
7166 |
* The number of bits used to represent a <tt>char</tt> value in unsigned |
|
3714 | 7167 |
* binary form, constant {@code 16}. |
2 | 7168 |
* |
7169 |
* @since 1.5 |
|
7170 |
*/ |
|
7171 |
public static final int SIZE = 16; |
|
7172 |
||
7173 |
/** |
|
7174 |
* Returns the value obtained by reversing the order of the bytes in the |
|
7175 |
* specified <tt>char</tt> value. |
|
7176 |
* |
|
7177 |
* @return the value obtained by reversing (or, equivalently, swapping) |
|
7178 |
* the bytes in the specified <tt>char</tt> value. |
|
7179 |
* @since 1.5 |
|
7180 |
*/ |
|
7181 |
public static char reverseBytes(char ch) { |
|
7182 |
return (char) (((ch & 0xFF00) >> 8) | (ch << 8)); |
|
7183 |
} |
|
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7184 |
|
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7185 |
/** |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7186 |
* Returns the Unicode name of the specified character |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7187 |
* {@code codePoint}, or null if the code point is |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7188 |
* {@link #UNASSIGNED unassigned}. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7189 |
* <p> |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7190 |
* Note: if the specified character is not assigned a name by |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7191 |
* the <i>UnicodeData</i> file (part of the Unicode Character |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7192 |
* Database maintained by the Unicode Consortium), the returned |
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
9275
diff
changeset
|
7193 |
* name is the same as the result of expression. |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7194 |
* |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7195 |
* <blockquote>{@code |
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7196 |
* Character.UnicodeBlock.of(codePoint).toString().replace('_', ' ') |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7197 |
* + " " |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7198 |
* + Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7199 |
* |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7200 |
* }</blockquote> |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7201 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7202 |
* @param codePoint the character (Unicode code point) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7203 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7204 |
* @return the Unicode name of the specified character, or null if |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7205 |
* the code point is unassigned. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7206 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7207 |
* @exception IllegalArgumentException if the specified |
8953
36044fa404c6
4715085: [Ch] Doc: java.lang.Character.digit documentation unclear regarding fullwidth characters
peytoia
parents:
7809
diff
changeset
|
7208 |
* {@code codePoint} is not a valid Unicode |
5610
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7209 |
* code point. |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7210 |
* |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7211 |
* @since 1.7 |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7212 |
*/ |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7213 |
public static String getName(int codePoint) { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7214 |
if (!isValidCodePoint(codePoint)) { |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7215 |
throw new IllegalArgumentException(); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7216 |
} |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7217 |
String name = CharacterName.get(codePoint); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7218 |
if (name != null) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7219 |
return name; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7220 |
if (getType(codePoint) == UNASSIGNED) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7221 |
return null; |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7222 |
UnicodeBlock block = UnicodeBlock.of(codePoint); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7223 |
if (block != null) |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7224 |
return block.toString().replace('_', ' ') + " " |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7225 |
+ Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7226 |
// should never come here |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7227 |
return Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH); |
fd2427610c7f
6945564: Unicode script support in Character class
sherman
parents:
3943
diff
changeset
|
7228 |
} |
2 | 7229 |
} |