diff --git a/icu4c/source/common/unicode/uchar.h b/icu4c/source/common/unicode/uchar.h index 186ac754af4..4f82a9fb583 100644 --- a/icu4c/source/common/unicode/uchar.h +++ b/icu4c/source/common/unicode/uchar.h @@ -3836,12 +3836,10 @@ u_getPropertyValueEnum(UProperty property, const char* alias); /** - * Determines if the specified character is permissible as the - * first character in an identifier as ID_Start according to - * UnicodeĀ® Standard Annex #31 UNICODE IDENTIFIER AND PATTERN SYNTAX + * Determines if the specified character is permissible as the first character in an identifier + * according to UAX #31 Unicode Identifier and Pattern Syntax. * - * Same as java.lang.Character.isUnicodeIdentifierStart(). - * Same as UCHAR_ID_START + * Same as Unicode ID_Start (UCHAR_ID_START). * * @param c the code point to be tested * @return true if the code point may start an identifier @@ -3855,18 +3853,13 @@ U_CAPI UBool U_EXPORT2 u_isIDStart(UChar32 c); /** - * Determines if the specified character is permissible as a - * character other than the first character in an identifier as ID_Continue - * according to UnicodeĀ® Standard Annex #31 UNICODE IDENTIFIER AND PATTERN SYNTAX + * Determines if the specified character is permissible as a non-initial character of an identifier + * according to UAX #31 Unicode Identifier and Pattern Syntax. * - * Same as java.lang.Character.isUnicodeIdentifierPart(). - * Almost the same as Unicode's ID_Continue (UCHAR_ID_CONTINUE) - * except that Unicode recommends to ignore Cf which is less than - * u_isIDIgnorable(c). + * Same as Unicode ID_Continue (UCHAR_ID_CONTINUE). * * @param c the code point to be tested - * @return true if the code point may occur in an identifier other than the - * first character. + * @return true if the code point may occur as a non-initial character of an identifier * * @see UCHAR_ID_CONTINUE * @see u_isIDStart diff --git a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java index beff8d079a4..c055a05df07 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java @@ -4522,30 +4522,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * Determines if the specified code point may be any part of a Unicode - * identifier other than the starting character. - * A code point may be part of a Unicode identifier if and only if it is - * one of the following: - *
Same as Unicode ID_Continue ({@link UProperty#ID_CONTINUE}). + * + *
Note that this differs from {@link java.lang.Character#isUnicodeIdentifierPart(char)} + * which implements a different identifier profile. + * + * @param ch the code point to be tested + * @return true if the code point may occur as a non-initial character of an identifier * @stable ICU 2.1 */ public static boolean isUnicodeIdentifierPart(int ch) @@ -4554,23 +4541,16 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * Determines if the specified code point is permissible as the first - * character in a Unicode identifier. - * A code point may start a Unicode identifier if it is of type either - *
Same as Unicode ID_Start ({@link UProperty#ID_START}). + * + *
Note that this differs from {@link java.lang.Character#isUnicodeIdentifierStart(char)} + * which implements a different identifier profile. + * + * @param ch the code point to be tested + * @return true if the code point may start an identifier * @stable ICU 2.1 */ public static boolean isUnicodeIdentifierStart(int ch)