Methods Summary |
---|
static DefaultCaseConverter | caseConverter()
if (cc != null) {
return cc;
}
String ccName = "?";
try {
/* Get the default encoding name */
ccName = System.getProperty("java.lang.Character.caseConverter");
if (ccName == null) {
ccName = "com.sun.cldc.i18n.uclc.DefaultCaseConverter";
}
/* Using the decoder names lookup a class to implement the reader */
Class clazz = Class.forName(ccName);
/* Return a new instance */
cc = (DefaultCaseConverter)clazz.newInstance();
} catch (Exception x) {
throw new RuntimeException("Cannot find case converter class "+ccName+" -> "+x.getMessage());
}
return cc;
|
public char | charValue()Returns the value of this Character object.
return value;
|
public static int | digit(char ch, int radix)Returns the numeric value of the character ch in the
specified radix.
return caseConverter().digit(ch, radix);
|
public boolean | equals(java.lang.Object obj)Compares this object against the specified object.
The result is true if and only if the argument is not
null and is a Character object that
represents the same char value as this object.
if (obj instanceof Character) {
return value == ((Character)obj).charValue();
}
return false;
|
public int | hashCode()Returns a hash code for this Character.
return (int)value;
|
public static boolean | isDigit(char ch)Determines if the specified character is a digit.
return caseConverter().isDigit(ch);
|
public static boolean | isLowerCase(char ch)Determines if the specified character is a lowercase character.
Note that by default CLDC only supports
the ISO Latin-1 range of characters.
Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF),
the following are lowercase:
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
\u00DF \u00E0 \u00E1 \u00E2 \u00E3 \u00E4 \u00E5 \u00E6 \u00E7
\u00E8 \u00E9 \u00EA \u00EB \u00EC \u00ED \u00EE \u00EF \u00F0
\u00F1 \u00F2 \u00F3 \u00F4 \u00F5 \u00F6 \u00F8 \u00F9 \u00FA
\u00FB \u00FC \u00FD \u00FE \u00FF
return caseConverter().isLowerCase(ch);
|
public static boolean | isUpperCase(char ch)Determines if the specified character is an uppercase character.
Note that by default CLDC only supports
the ISO Latin-1 range of characters.
Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF),
the following are uppercase:
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
\u00C0 \u00C1 \u00C2 \u00C3 \u00C4 \u00C5 \u00C6 \u00C7
\u00C8 \u00C9 \u00CA \u00CB \u00CC \u00CD \u00CE \u00CF \u00D0
\u00D1 \u00D2 \u00D3 \u00D4 \u00D5 \u00D6 \u00D8 \u00D9 \u00DA
\u00DB \u00DC \u00DD \u00DE
return caseConverter().isUpperCase(ch);
|
public static char | toLowerCase(char ch)The given character is mapped to its lowercase equivalent; if the
character has no lowercase equivalent, the character itself is
returned.
Note that by default CLDC only supports
the ISO Latin-1 range of characters.
return caseConverter().toLowerCase(ch);
|
public java.lang.String | toString()Returns a String object representing this character's value.
Converts this Character object to a string. The
result is a string whose length is 1 . The string's
sole component is the primitive char value represented
by this object.
char buf[] = {value};
return String.valueOf(buf);
|
public static char | toUpperCase(char ch)Converts the character argument to uppercase; if the
character has no uppercase equivalent, the character itself is
returned.
Note that by default CLDC only supports
the ISO Latin-1 range of characters.
return caseConverter().toUpperCase(ch);
|