📄 character.html
字号:
\u00D1 \u00D2 \u00D3 \u00D4 \u00D5 \u00D6 \u00D8 \u00D9 \u00DA \u00DB \u00DC \u00DD \u00DE </pre></blockquote> <p> Many other Unicode characters are uppercase, too.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is uppercase; <code>false</code> otherwise.<DT><B>Since: </B><DD>1.0</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isLowerCase(char)"><CODE>isLowerCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isTitleCase(char)"><CODE>isTitleCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#toUpperCase(char)"><CODE>toUpperCase(char)</CODE></A></DL></DD></DL><HR><A NAME="isTitleCase(char)"><!-- --></A><H3>isTitleCase</H3><PRE>public static boolean <B>isTitleCase</B>(char ch)</PRE><DL><DD>Determines if the specified character is a titlecase character. A character is considered to be titlecase if and only if it is specified to be titlecase by the Unicode 2.0 standard (category "Lt" in the Unicode specification data file). <p> The printed representations of four Unicode characters look like pairs of Latin letters. For example, there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form, which looks like "Lj", is the appropriate form to use when rendering a word in lowercase with initial capitals, as for a book title. <p> These are the Unicode characters for which this method returns <code>true</code>: <ul> <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON</code> <li><code>LATIN CAPITAL LETTER L WITH SMALL LETTER J</code> <li><code>LATIN CAPITAL LETTER N WITH SMALL LETTER J</code> <li><code>LATIN CAPITAL LETTER D WITH SMALL LETTER Z</code> </ul><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is titlecase; <code>false</code> otherwise.<DT><B>Since: </B><DD>JDK1.0.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isLowerCase(char)"><CODE>isLowerCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUpperCase(char)"><CODE>isUpperCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#toTitleCase(char)"><CODE>toTitleCase(char)</CODE></A></DL></DD></DL><HR><A NAME="isDigit(char)"><!-- --></A><H3>isDigit</H3><PRE>public static boolean <B>isDigit</B>(char ch)</PRE><DL><DD>Determines if the specified character is a digit. A character is considered to be a digit if it is not in the range <code>'\u2000' <= ch <= '\u2FFF'</code> and its Unicode name contains the word "<code>DIGIT</code>". For a more complete specification that encompasses all Unicode characters that are defined as digits, see Gosling, Joy, and Steele, <i>The Java Language Specification</i>. <p> These are the ranges of Unicode characters that are considered digits: <table> <tr><td>0x0030 through 0x0039</td> <td>ISO-LATIN-1 digits ('0' through '9')</td></tr> <tr><td>0x0660 through 0x0669</td> <td>Arabic-Indic digits</td></tr> <tr><td>0x06F0 through 0x06F9</td> <td>Extended Arabic-Indic digits</td></tr> <tr><td>0x0966 through 0x096F</td> <td>Devanagari digits</td></tr> <tr><td>0x09E6 through 0x09EF</td> <td>Bengali digits</td></tr> <tr><td>0x0A66 through 0x0A6F</td> <td>Gurmukhi digits</td></tr> <tr><td>0x0AE6 through 0x0AEF</td> <td>Gujarati digits</td></tr> <tr><td>0x0B66 through 0x0B6F</td> <td>Oriya digits</td></tr> <tr><td>0x0BE7 through 0x0BEF</td> <td>Tamil digits</td></tr> <tr><td>0x0C66 through 0x0C6F</td> <td>Telugu digits</td></tr> <tr><td>0x0CE6 through 0x0CEF</td> <td>Kannada digits</td></tr> <tr><td>0x0D66 through 0x0D6F</td> <td>Malayalam digits</td></tr> <tr><td>0x0E50 through 0x0E59</td> <td>Thai digits</td></tr> <tr><td>0x0ED0 through 0x0ED9</td> <td>Lao digits</td></tr> <tr><td>0x0F20 through 0x0F29</td> <td>Tibetan digits</td></tr> <tr><td>0xFF10 through 0xFF19</td> <td>Fullwidth digits</td></tr> </table><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is a digit; <code>false</code> otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#digit(char, int)"><CODE>digit(char, int)</CODE></A>, <A HREF="../../java/lang/Character.html#forDigit(int, int)"><CODE>forDigit(int, int)</CODE></A></DL></DD></DL><HR><A NAME="isDefined(char)"><!-- --></A><H3>isDefined</H3><PRE>public static boolean <B>isDefined</B>(char ch)</PRE><DL><DD>Determines if a character has a defined meaning in Unicode. A character is defined if at least one of the following is true: <ul> <li>It has an entry in the Unicode attribute table. <li>Its value is in the range <code> '\u3040' <= ch <= '\u9FA5'</code>. <li>Its value is in the range <code> '\uF900' <= ch <= '\uFA2D'</code>. </ul><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested<DT><B>Returns:</B><DD><code>true</code> if the character has a defined meaning in Unicode; <code>false</code> otherwise.<DT><B>Since: </B><DD>JDK1.0.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isDigit(char)"><CODE>isDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetter(char)"><CODE>isLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetterOrDigit(char)"><CODE>isLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLowerCase(char)"><CODE>isLowerCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isTitleCase(char)"><CODE>isTitleCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUpperCase(char)"><CODE>isUpperCase(char)</CODE></A></DL></DD></DL><HR><A NAME="isLetter(char)"><!-- --></A><H3>isLetter</H3><PRE>public static boolean <B>isLetter</B>(char ch)</PRE><DL><DD>Determines if the specified character is a letter. For a more complete specification that encompasses all Unicode characters, see Gosling, Joy, and Steele, <i>The Java Language Specification</i>. <p> A character is considered to be a letter if and only if it is specified to be a letter by the Unicode 2.0 standard (category "Lu", "Ll", "Lt", "Lm", or "Lo" in the Unicode specification data file). <p> Note that most ideographic characters are considered to be letters (category "Lo") for this purpose. <p> Note also that not all letters have case: many Unicode characters are letters but are neither uppercase nor lowercase nor titlecase.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is a letter; <code>false</code> otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isDigit(char)"><CODE>isDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaIdentifierStart(char)"><CODE>isJavaIdentifierStart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetter(char)"><CODE>isJavaLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetterOrDigit(char)"><CODE>isJavaLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetterOrDigit(char)"><CODE>isLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLowerCase(char)"><CODE>isLowerCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isTitleCase(char)"><CODE>isTitleCase(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierStart(char)"><CODE>isUnicodeIdentifierStart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUpperCase(char)"><CODE>isUpperCase(char)</CODE></A></DL></DD></DL><HR><A NAME="isLetterOrDigit(char)"><!-- --></A><H3>isLetterOrDigit</H3><PRE>public static boolean <B>isLetterOrDigit</B>(char ch)</PRE><DL><DD>Determines if the specified character is a letter or digit. For a more complete specification that encompasses all Unicode characters, see Gosling, Joy, and Steele, <i>The Java Language Specification</i>. <p> A character is considered to be a letter if and only if it is specified to be a letter or a digit by the Unicode 2.0 standard (category "Lu", "Ll", "Lt", "Lm", "Lo", or "Nd" in the Unicode specification data file). In other words, isLetterOrDigit is true of a character if and only if either isLetter is true of the character or isDigit is true of the character.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is a letter or digit; <code>false</code> otherwise.<DT><B>Since: </B><DD>JDK1.0.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isDigit(char)"><CODE>isDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaIdentifierPart(char)"><CODE>isJavaIdentifierPart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetter(char)"><CODE>isJavaLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetterOrDigit(char)"><CODE>isJavaLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetter(char)"><CODE>isLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierPart(char)"><CODE>isUnicodeIdentifierPart(char)</CODE></A></DL></DD></DL><HR><A NAME="isJavaLetter(char)"><!-- --></A><H3>isJavaLetter</H3><PRE>public static boolean <B>isJavaLetter</B>(char ch)</PRE><DL><DD><B>Deprecated.</B> <I>Replaced by isJavaIdentifierStart(char).</I><P><DD>Determines if the specified character is a "Java" letter, that is, the character is permissible as the first character in an identifier in the Java language. <p> A character is considered to be a Java letter if and only if it is a letter, the ASCII dollar sign character <code>'$'</code>, or the underscore character <code>'_'</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is a Java letter; <code>false</code> otherwise.<DT><B>Since: </B><DD>JDK1.0.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isJavaIdentifierStart(char)"><CODE>isJavaIdentifierStart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetterOrDigit(char)"><CODE>isJavaLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetter(char)"><CODE>isLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetterOrDigit(char)"><CODE>isLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierStart(char)"><CODE>isUnicodeIdentifierStart(char)</CODE></A></DL></DD></DL><HR><A NAME="isJavaLetterOrDigit(char)"><!-- --></A><H3>isJavaLetterOrDigit</H3><PRE>public static boolean <B>isJavaLetterOrDigit</B>(char ch)</PRE><DL><DD><B>Deprecated.</B> <I>Replaced by isJavaIdentifierPart(char).</I><P><DD>Determines if the specified character is a "Java" letter or digit, that is, the character is permissible as a non-initial character in an identifier in the Java language. <p> A character is considered to be a Java letter or digit if and only if it is a letter, a digit, the ASCII dollar sign character <code>'$'</code>, or the underscore character <code>'_'</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD><code>true</code> if the character is a Java letter or digit; <code>false</code> otherwise.<DT><B>Since: </B><DD>JDK1.0.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isJavaIdentifierPart(char)"><CODE>isJavaIdentifierPart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaLetter(char)"><CODE>isJavaLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetter(char)"><CODE>isLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetterOrDigit(char)"><CODE>isLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierPart(char)"><CODE>isUnicodeIdentifierPart(char)</CODE></A></DL></DD></DL><HR><A NAME="isJavaIdentifierStart(char)"><!-- --></A><H3>isJavaIdentifierStart</H3><PRE>public static boolean <B>isJavaIdentifierStart</B>(char ch)</PRE><DL><DD>Determines if the specified character is permissible as the first character in a Java identifier. A character may start a Java identifier if and only if it is one of the following: <ul> <li> a letter <li> a currency symbol (such as "$") <li> a connecting punctuation character (such as "_"). </ul><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD>true if the character may start a Java identifier; false otherwise.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isJavaIdentifierPart(char)"><CODE>isJavaIdentifierPart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetter(char)"><CODE>isLetter(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierStart(char)"><CODE>isUnicodeIdentifierStart(char)</CODE></A></DL></DD></DL><HR><A NAME="isJavaIdentifierPart(char)"><!-- --></A><H3>isJavaIdentifierPart</H3><PRE>public static boolean <B>isJavaIdentifierPart</B>(char ch)</PRE><DL><DD>Determines if the specified character may be part of a Java identifier as other than the first character. A character may be part of a Java identifier if and only if it is one of the following: <ul> <li> a letter <li> a currency symbol (such as "$") <li> a connecting punctuation character (such as "_"). <li> a digit <li> a numeric letter (such as a Roman numeral character) <li> a combining mark <li> a non-spacing mark <li> an ignorable control character </ul><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to be tested.<DT><B>Returns:</B><DD>true if the character may be part of a Unicode identifier; false otherwise.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/lang/Character.html#isIdentifierIgnorable(char)"><CODE>isIdentifierIgnorable(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isJavaIdentifierStart(char)"><CODE>isJavaIdentifierStart(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isLetterOrDigit(char)"><CODE>isLetterOrDigit(char)</CODE></A>, <A HREF="../../java/lang/Character.html#isUnicodeIdentifierPart(char)"><CODE>isUnicodeIdentifierPart(char)</CODE></A></DL></DD></DL><HR><A NAME="isUnicodeIdentifierStart(char)"><!-- --></A><H3>isUnicodeIdentifierStart</H3><PRE>public static boolean <B>isUnicodeIdentifierStart</B>(char ch)</PRE><DL><DD>Determines if the specified character is permissible as the first
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -