From 08ae9f2909b2ec37f755dac4372553437e9d7cf6 Mon Sep 17 00:00:00 2001
From: Paul Duffin
A "double" return type is necessary because some numeric values are - * fractions, negative, or too large for int.
+ * fractions, negative, or too large for int. *For characters without any numeric values in the Unicode Character * Database, this function will return NO_NUMERIC_VALUE. - * Note: This is different from the Unicode Standard which specifies NaN as the default value.
+ * Note: This is different from the Unicode Standard which specifies NaN as the default value. *API Change: In release 2.2 and prior, this API has a * return type int and returns -1 when the argument ch does not have a * corresponding numeric value. This has been changed to synch with ICU4C - *
+ * * This corresponds to the ICU4C function u_getNumericValue. * @param ch Code point to get the numeric value for. * @return numeric value of ch, or NO_NUMERIC_VALUE if none is defined. @@ -3066,7 +3066,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * NOTE: the UCharacterCategory values are not compatible with * those returned by java.lang.Character.getType. UCharacterCategory values * match the ones used in ICU4C, while java.lang.Character type - * values, though similar, skip the value 17. + * values, though similar, skip the value 17. * @param ch code point whose type is to be determined * @return category which is a value of UCharacterCategory */ @@ -3109,8 +3109,8 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection /** * Determines if the specified code point is an ISO control character. * A code point is considered to be an ISO control character if it is in - * the range \u0000 through \u001F or in the range \u007F through - * \u009F.The names are returned in the following order. *
Finds a Unicode code point by its most current Unicode name and - * return its code point value. All Unicode names are in uppercase.
+ * return its code point value. All Unicode names are in uppercase. * Note calling any methods related to code point names, e.g. get*Name*() * incurs a one-time initialisation cost to construct the name tables. * @param name most current Unicode character name whose code point is to @@ -3840,7 +3840,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection /** * [icu] Returns -1. *Used to find a Unicode character by its version 1.0 Unicode name and return - * its code point value.
+ * its code point value. * @param name Unicode 1.0 code point name whose code point is to be * returned * @return -1 @@ -3857,13 +3857,13 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * [icu]Find a Unicode character by either its name and return its code * point value. All Unicode names are in uppercase. * Extended names are all lowercase except for numbers and are contained - * within angle brackets.
+ * within angle brackets. * The names are searched in the following order *Find a Unicode character by its corrected name alias and return - * its code point value. All Unicode names are in uppercase.
+ * its code point value. All Unicode names are in uppercase. * Note calling any methods related to code point names, e.g. get*Name*() * incurs a one-time initialisation cost to construct the name tables. * @param name Unicode name alias whose code point is to be returned @@ -4253,17 +4253,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - *Returns the titlecase version of the argument string.
+ *Returns the titlecase version of the argument string. *
Position for titlecasing is determined by the argument break * iterator, hence the user can customize his break iterator for * a specialized titlecasing. In this case only the forward iteration * needs to be implemented. * If the break iterator passed in is null, the default Unicode algorithm * will be used to determine the titlecase positions. - *
+ * *Only positions returned by the break iterator will be title cased, - * character in between the positions will all be in lower case.
- *Casing is dependent on the default locale and context-sensitive
+ * character in between the positions will all be in lower case. + *Casing is dependent on the default locale and context-sensitive * @param str source string to be performed on * @param breakiter break iterator to determine the positions in which * the character should be title cased. @@ -4369,17 +4369,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - *
Returns the titlecase version of the argument string.
+ *Returns the titlecase version of the argument string. *
Position for titlecasing is determined by the argument break * iterator, hence the user can customize his break iterator for * a specialized titlecasing. In this case only the forward iteration * needs to be implemented. * If the break iterator passed in is null, the default Unicode algorithm * will be used to determine the titlecase positions. - *
+ * *Only positions returned by the break iterator will be title cased, - * character in between the positions will all be in lower case.
- *Casing is dependent on the argument locale and context-sensitive
+ * character in between the positions will all be in lower case. + *Casing is dependent on the argument locale and context-sensitive * @param locale which string is to be converted in * @param str source string to be performed on * @param breakiter break iterator to determine the positions in which @@ -4393,17 +4393,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - *
Returns the titlecase version of the argument string.
+ *Returns the titlecase version of the argument string. *
Position for titlecasing is determined by the argument break * iterator, hence the user can customize his break iterator for * a specialized titlecasing. In this case only the forward iteration * needs to be implemented. * If the break iterator passed in is null, the default Unicode algorithm * will be used to determine the titlecase positions. - *
+ * *Only positions returned by the break iterator will be title cased, - * character in between the positions will all be in lower case.
- *Casing is dependent on the argument locale and context-sensitive
+ * character in between the positions will all be in lower case. + *Casing is dependent on the argument locale and context-sensitive * @param locale which string is to be converted in * @param str source string to be performed on * @param titleIter break iterator to determine the positions in which @@ -4416,17 +4416,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - *
Returns the titlecase version of the argument string.
+ *Returns the titlecase version of the argument string. *
Position for titlecasing is determined by the argument break * iterator, hence the user can customize his break iterator for * a specialized titlecasing. In this case only the forward iteration * needs to be implemented. * If the break iterator passed in is null, the default Unicode algorithm * will be used to determine the titlecase positions. - *
+ * *Only positions returned by the break iterator will be title cased, - * character in between the positions will all be in lower case.
- *Casing is dependent on the argument locale and context-sensitive
+ * character in between the positions will all be in lower case. + *Casing is dependent on the argument locale and context-sensitive * @param locale which string is to be converted in * @param str source string to be performed on * @param titleIter break iterator to determine the positions in which @@ -4636,17 +4636,17 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Returns the titlecase version of the argument string.
+ * [icu]Returns the titlecase version of the argument string. *
Position for titlecasing is determined by the argument break * iterator, hence the user can customize his break iterator for * a specialized titlecasing. In this case only the forward iteration * needs to be implemented. * If the break iterator passed in is null, the default Unicode algorithm * will be used to determine the titlecase positions. - *
+ * *Only positions returned by the break iterator will be title cased, - * character in between the positions will all be in lower case.
- *Casing is dependent on the argument locale and context-sensitive
+ * character in between the positions will all be in lower case. + *Casing is dependent on the argument locale and context-sensitive * @param locale which string is to be converted in * @param str source string to be performed on * @param titleIter break iterator to determine the positions in which @@ -4863,8 +4863,8 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Returns an iterator for character types, iterating over codepoints.
- * Example of use:Returns an iterator for character types, iterating over codepoints. + *
Example of use:
*
* RangeValueIterator iterator = UCharacter.getTypeIterator(); * RangeValueIterator.Element element = new RangeValueIterator.Element(); @@ -4919,11 +4919,11 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]Returns an iterator for character names, iterating over codepoints.
+ * [icu]Returns an iterator for character names, iterating over codepoints. *
This API only gets the iterator for the modern, most up-to-date * Unicode names. For older 1.0 Unicode names use get1_0NameIterator() or - * for extended names use getExtendedNameIterator().
- * Example of use:
+ * for extended names use getExtendedNameIterator(). + *Example of use:
** ValueIterator iterator = UCharacter.getNameIterator(); * ValueIterator.Element element = new ValueIterator.Element(); @@ -4934,7 +4934,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * } **The maximal range which the name iterator iterates is from - * UCharacter.MIN_VALUE to UCharacter.MAX_VALUE.
+ * UCharacter.MIN_VALUE to UCharacter.MAX_VALUE. * @return an iterator */ public static ValueIterator getNameIterator(){ @@ -4944,7 +4944,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection /** * [icu] Returns an empty iterator. - *Used to return an iterator for the older 1.0 Unicode character names, iterating over codepoints.
+ *Used to return an iterator for the older 1.0 Unicode character names, iterating over codepoints. * @return an empty iterator * @deprecated ICU 49 * @see #getName1_0(int) @@ -4962,11 +4962,11 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Returns an iterator for character names, iterating over codepoints.
+ * [icu]Returns an iterator for character names, iterating over codepoints. *
This API only gets the iterator for the extended names. * For modern, most up-to-date Unicode names use getNameIterator() or - * for older 1.0 Unicode names use get1_0NameIterator().
- * Example of use:
+ * for older 1.0 Unicode names use get1_0NameIterator(). + *Example of use:
** ValueIterator iterator = UCharacter.getExtendedNameIterator(); * ValueIterator.Element element = new ValueIterator.Element(); @@ -4985,13 +4985,13 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu] Returns the "age" of the code point. + * [icu] Returns the "age" of the code point. *The "age" is the Unicode version when the code point was first * designated (as a non-character or for Private Use) or assigned a * character. *
This can be useful to avoid emitting code points to receiving - * processes that do not accept newer characters.
- *The data is from the UCD file DerivedAge.txt.
+ * processes that do not accept newer characters. + *The data is from the UCD file DerivedAge.txt. * @param ch The code point. * @return the Unicode version number */ @@ -5004,20 +5004,20 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Check a binary Unicode property for a code point.
+ * [icu]Check a binary Unicode property for a code point. *
Unicode, especially in version 3.2, defines many more properties - * than the original set in UnicodeData.txt.
+ * than the original set in UnicodeData.txt. *This API is intended to reflect Unicode properties as defined in * the Unicode Character Database (UCD) and Unicode Technical Reports - * (UTR).
+ * (UTR). *For details about the properties see - * http://www.unicode.org/.
+ * http://www.unicode.org/. *For names of Unicode properties see the UCD file - * PropertyAliases.txt.
- *This API does not check the validity of the codepoint.
+ * PropertyAliases.txt. + *This API does not check the validity of the codepoint. *
Important: If ICU is built with UCD files from Unicode versions * below 3.2, then properties marked with "new" are not or - * not fully available.
+ * not fully available. * @param ch code point to test. * @param property selector constant from android.icu.lang.UProperty, * identifies which binary property to check. @@ -5033,9 +5033,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]Check if a code point has the Alphabetic Unicode property.
- *Same as UCharacter.hasBinaryProperty(ch, UProperty.ALPHABETIC).
- *Different from UCharacter.isLetter(ch)!
+ * [icu]Check if a code point has the Alphabetic Unicode property. + *
Same as UCharacter.hasBinaryProperty(ch, UProperty.ALPHABETIC). + *
Different from UCharacter.isLetter(ch)! * @param ch codepoint to be tested */ public static boolean isUAlphabetic(int ch) @@ -5044,9 +5044,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Check if a code point has the Lowercase Unicode property.
- *Same as UCharacter.hasBinaryProperty(ch, UProperty.LOWERCASE).
- *This is different from UCharacter.isLowerCase(ch)!
+ * [icu]Check if a code point has the Lowercase Unicode property. + *
Same as UCharacter.hasBinaryProperty(ch, UProperty.LOWERCASE). + *
This is different from UCharacter.isLowerCase(ch)! * @param ch codepoint to be tested */ public static boolean isULowercase(int ch) @@ -5055,9 +5055,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Check if a code point has the Uppercase Unicode property.
- *Same as UCharacter.hasBinaryProperty(ch, UProperty.UPPERCASE).
- *This is different from UCharacter.isUpperCase(ch)!
+ * [icu]Check if a code point has the Uppercase Unicode property. + *
Same as UCharacter.hasBinaryProperty(ch, UProperty.UPPERCASE). + *
This is different from UCharacter.isUpperCase(ch)! * @param ch codepoint to be tested */ public static boolean isUUppercase(int ch) @@ -5066,10 +5066,10 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection } /** - * [icu]
Check if a code point has the White_Space Unicode property.
- *Same as UCharacter.hasBinaryProperty(ch, UProperty.WHITE_SPACE).
+ * [icu]Check if a code point has the White_Space Unicode property. + *
Same as UCharacter.hasBinaryProperty(ch, UProperty.WHITE_SPACE). *
This is different from both UCharacter.isSpace(ch) and - * UCharacter.isWhitespace(ch)!
+ * UCharacter.isWhitespace(ch)! * @param ch codepoint to be tested */ public static boolean isUWhiteSpace(int ch) @@ -5079,15 +5079,15 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection /** * [icu]Returns the property value for an Unicode property type of a code point. - * Also returns binary and mask property values.
+ * Also returns binary and mask property values. *Unicode, especially in version 3.2, defines many more properties than - * the original set in UnicodeData.txt.
+ * the original set in UnicodeData.txt. *The properties APIs are intended to reflect Unicode properties as * defined in the Unicode Character Database (UCD) and Unicode Technical * Reports (UTR). For details about the properties see - * http://www.unicode.org/.
+ * http://www.unicode.org/. *For names of Unicode properties see the UCD file PropertyAliases.txt. - *
+ * ** Sample usage: * int ea = UCharacter.getIntPropertyValue(c, UProperty.EAST_ASIAN_WIDTH); -- cgit v1.2.3