< prev index next >
src/java.base/share/classes/java/lang/Character.java
Print this page
rev 56092 : imported patch 8229831
@@ -9914,11 +9914,22 @@
* one of the following conditions is true:
* <ul>
* <li> {@link #isLetter(char) isLetter(ch)} returns {@code true}
* <li> {@link #getType(char) getType(ch)} returns
* {@code LETTER_NUMBER}.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Start">
+ * {@code Other_ID_Start}</a> character.
* </ul>
+ * <p>
+ * This method conforms to <a href="https://unicode.org/reports/tr31/#R1">
+ * UAX31-R1: Default Identifiers</a> requirement of the Unicode Standard,
+ * with the following profile of UAX31:
+ * <pre>
+ * Start := ID_Start + 'VERTICAL TILDE' (U+2E2F)
+ * </pre>
+ * {@code 'VERTICAL TILDE'} is added to {@code Start} solely for backward
+ * compatibility.
*
* <p><b>Note:</b> This method cannot handle <a
* href="#supplementary"> supplementary characters</a>. To support
* all Unicode characters, including supplementary characters, use
* the {@link #isUnicodeIdentifierStart(int)} method.
@@ -9944,11 +9955,23 @@
* <ul>
* <li> {@link #isLetter(int) isLetter(codePoint)}
* returns {@code true}
* <li> {@link #getType(int) getType(codePoint)}
* returns {@code LETTER_NUMBER}.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Start">
+ * {@code Other_ID_Start}</a> character.
* </ul>
+ * <p>
+ * This method conforms to <a href="https://unicode.org/reports/tr31/#R1">
+ * UAX31-R1: Default Identifiers</a> requirement of the Unicode Standard,
+ * with the following profile of UAX31:
+ * <pre>
+ * Start := ID_Start + 'VERTICAL TILDE' (U+2E2F)
+ * </pre>
+ * {@code 'VERTICAL TILDE'} is added to {@code Start} solely for backward
+ * compatibility.
+ *
* @param codePoint the character (Unicode code point) to be tested.
* @return {@code true} if the character may start a Unicode
* identifier; {@code false} otherwise.
* @see Character#isJavaIdentifierStart(int)
* @see Character#isLetter(int)
@@ -9972,11 +9995,26 @@
* <li> it is a numeric letter (such as a Roman numeral character)
* <li> it is a combining mark
* <li> it is a non-spacing mark
* <li> {@code isIdentifierIgnorable} returns
* {@code true} for this character.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Start">
+ * {@code Other_ID_Start}</a> character.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Continue">
+ * {@code Other_ID_Continue}</a> character.
* </ul>
+ * <p>
+ * This method conforms to <a href="https://unicode.org/reports/tr31/#R1">
+ * UAX31-R1: Default Identifiers</a> requirement of the Unicode Standard,
+ * with the following profile of UAX31:
+ * <pre>
+ * Continue := Start + ID_Continue + ignorable
+ * Medial := empty
+ * ignorable := isIdentifierIgnorable(char) returns true for the character
+ * </pre>
+ * {@code ignorable} is added to {@code Continue} solely for backward
+ * compatibility.
*
* <p><b>Note:</b> This method cannot handle <a
* href="#supplementary"> supplementary characters</a>. To support
* all Unicode characters, including supplementary characters, use
* the {@link #isUnicodeIdentifierPart(int)} method.
@@ -10007,11 +10045,27 @@
* <li> it is a numeric letter (such as a Roman numeral character)
* <li> it is a combining mark
* <li> it is a non-spacing mark
* <li> {@code isIdentifierIgnorable} returns
* {@code true} for this character.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Start">
+ * {@code Other_ID_Start}</a> character.
+ * <li> it is an <a href="http://www.unicode.org/reports/tr44/#Other_ID_Continue">
+ * {@code Other_ID_Continue}</a> character.
* </ul>
+ * <p>
+ * This method conforms to <a href="https://unicode.org/reports/tr31/#R1">
+ * UAX31-R1: Default Identifiers</a> requirement of the Unicode Standard,
+ * with the following profile of UAX31:
+ * <pre>
+ * Continue := Start + ID_Continue + ignorable
+ * Medial := empty
+ * ignorable := isIdentifierIgnorable(int) returns true for the character
+ * </pre>
+ * {@code ignorable} is added to {@code Continue} solely for backward
+ * compatibility.
+ *
* @param codePoint the character (Unicode code point) to be tested.
* @return {@code true} if the character may be part of a
* Unicode identifier; {@code false} otherwise.
* @see Character#isIdentifierIgnorable(int)
* @see Character#isJavaIdentifierPart(int)
< prev index next >