THE PACKAGE JAVA.LANG
java.lang.Character
20.5
[This specification for the method
toUpperCase
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 its argument for all arguments
larger than
\u00FE
. Note that although
\u00FF
is a lowercase character, its upper
case equivalent is
\u0178
;
toUpperCase
in versions of Java prior to version 1.1
simply do not consistently handle or use Unicode character codes above
\u00FF
.]
20.5.22
public static char toTitleCase(char ch)
If the character
ch
has a titlecase equivalent specified in the Unicode attribute
table, then that titlecase equivalent character is returned; otherwise, the argument
ch
is returned.
Note that the method
isTitleCase
( 20.5.13) will not necessarily return
true
when given the result of the
toTitleCase
method. The Unicode attribute
table always has the titlecase attribute equal to the uppercase attribute for charac
ters that have uppercase equivalents but no separate titlecase form.
Example:
Character.toTitleCase( a )
returns
A
Example:
Character.toTitleCase( Q )
returns
Q
Example:
Character.toTitleCase( lj )
returns
Lj
where
lj
is the
Unicode character
\u01C9
and
Lj
is its titlecase equivalent character
\u01C8
.
[This method is scheduled for introduction in Java version 1.1.]
20.5.23
public static int digit(char ch, int radix)
Returns the numeric value of the character
ch
considered as a digit in the specified
radix. If the value of
radix
is not a valid radix, or the character
ch
is not a valid
digit in the specified radix, then
1
is returned.
A radix is valid if and only if its value is not less than
Character.MIN_RADIX
( 20.5.3) and not greater than
Character.MAX_RADIX
( 20.5.4).
A character is a valid digit if and only if one of the following is true:
The method
isDigit
returns
true
for the character, and the decimal digit
value of the character, as specified in the Unicode attribute table, is less than
the specified radix. In this case, the decimal digit value is returned.
The character is one of the uppercase Latin letters
A
Z
(
\u0041
\u005A
)
and its code is less than
radix+ A 10
. In this case
ch A +10
is returned.
The character is one of the lowercase Latin letters
a
z
(
\u0061
\u007A
)
and its code is less than
radix+ a 10
. In this case
ch a +10
is returned.
485
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