THE PACKAGE JAVA.LANG
java.lang.Character
20.5
20.5.12
public static boolean isUpperCase(char ch)
The result is
true
if and only if the character argument is an uppercase character.
A character is considered to be uppercase if and only if all of the following are
true:
The character
ch
is not in the range
\u2000
through
\u2FFF
.
The Unicode attribute table does not specify a mapping to uppercase for this
character (the purpose of this requirement is to exclude titlecase characters).
At least one of the following is true:
N
The Unicode attribute table specifies a mapping to lowercase for this char
acter.
N
The name for the character in the Unicode attribute table contains the words
CAPITAL LETTER
or the words
CAPITAL LIGATURE
.
It follows, then, that for Unicode 1.1.5 as corrected above, the uppercase Uni
code characters are exactly those with codes in the following list, which contains
both single codes and inclusive ranges:
0041
005A
,
00C0
00D6
,
00D8
00DE
,
0100
0136
(evens only),
0139
0147
(odds only),
014A
0178
(evens only),
0179
017D
(odds only),
0181
0182
,
0184
,
0186
,
0187
,
0189
018B
,
018E
0191
,
0193
0194
,
0196
0198
,
019C
019D
,
019F
01A0
,
01A2
,
01A4
,
01A7
,
01A9
,
01AC
,
01AE
,
01AF
,
01B1
01B3
,
01B5
,
01B7
,
01B8
,
01BC
,
01C4
,
01C7
,
01CA
,
01CD
01DB
(odds
only),
01DE
01EE
(evens only),
01F1
,
01F4
,
01FA
0216
(evens only),
0386
,
0388
038A
,
038C
,
038E
,
038F
,
0391
03A1
,
03A3
03AB
,
03E2
03EE
(evens only),
0401
040C
,
040E
042F
,
0460
0480
(evens only),
0490
04BE
(evens only),
04C1
,
04C3
,
04C7
,
04CB
,
04D0
04EA
(evens only),
04EE
04F4
(evens only),
04F8
,
0531
0556
,
10A0
10C5
,
1E00
1E94
(evens only),
1EA0
1EF8
(evens
only),
1F08
1F0F
,
1F18
1F1D
,
1F28
1F2F
,
1F38
1F3F
,
1F48
1F4D
,
1F59
1F5F
(odds only),
1F68
1F6F
,
1F88
1F8F
,
1F98
1F9F
,
1FA8
1FAF
,
1FB8
1FBC
,
1FC8
1FCC
,
1FD8
1FDB
,
1FE8
1FEC
,
1FF8
1FFC
,
FF21
FF3A
.
Of the first 128 Unicode characters, exactly 26 are considered to be upper
case:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
[This specification for the method
isUpperCase
is scheduled for introduction
in Java version 1.1, either as defined here, or updated for Unicode 2.0; see 20.5.
In previous versions of Java, this method returns
false
for all arguments larger
than
\u00FF
.]
477
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved