mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-12 16:33:23 +00:00
ICU-8945 fix UCharacter.CJK_IDEOGRAPH_FOURTH_ code point
X-SVN-Rev: 30997
This commit is contained in:
parent
81e9b13f7b
commit
1166cb2f03
2 changed files with 12 additions and 5 deletions
|
@ -4956,20 +4956,27 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
}
|
||||
|
||||
/**
|
||||
* {@icu} Return numeric value of Han code points.
|
||||
* <br> This returns the value of Han 'numeric' code points,
|
||||
* {@icu} Returns the numeric value of a Han character.
|
||||
*
|
||||
* <p>This returns the value of Han 'numeric' code points,
|
||||
* including those for zero, ten, hundred, thousand, ten thousand,
|
||||
* and hundred million.
|
||||
* This includes both the standard and 'checkwriting'
|
||||
* characters, the 'big circle' zero character, and the standard
|
||||
* zero character.
|
||||
*
|
||||
* <p>Note: The Unicode Standard has numeric values for more
|
||||
* Han characters recognized by this method
|
||||
* (see {@link #getNumericValue(int)} and the UCD file DerivedNumericValues.txt),
|
||||
* and a {@link com.ibm.icu.text.NumberFormat} can be used with
|
||||
* a Chinese {@link com.ibm.icu.text.NumberingSystem}.
|
||||
*
|
||||
* @param ch code point to query
|
||||
* @return value if it is a Han 'numeric character,' otherwise return -1.
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
public static int getHanNumericValue(int ch)
|
||||
{
|
||||
// TODO: Are these all covered by Unicode numeric value data?
|
||||
switch(ch)
|
||||
{
|
||||
case IDEOGRAPHIC_NUMBER_ZERO_ :
|
||||
|
@ -5994,7 +6001,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
|
|||
/**
|
||||
* CJK Ideograph, Fourth code point
|
||||
*/
|
||||
private static final int CJK_IDEOGRAPH_FOURTH_ = 0x56d8;
|
||||
private static final int CJK_IDEOGRAPH_FOURTH_ = 0x56db;
|
||||
|
||||
/**
|
||||
* CJK Ideograph, FIFTH code point
|
||||
|
|
|
@ -2855,7 +2855,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
0x8cb3, //CJK_IDEOGRAPH_COMPLEX_TWO_
|
||||
0x4e09, //CJK_IDEOGRAPH_THIRD_
|
||||
0x53c3, //CJK_IDEOGRAPH_COMPLEX_THREE_
|
||||
0x56d8, //CJK_IDEOGRAPH_FOURTH_
|
||||
0x56db, //CJK_IDEOGRAPH_FOURTH_
|
||||
0x8086, //CJK_IDEOGRAPH_COMPLEX_FOUR_
|
||||
0x4e94, //CJK_IDEOGRAPH_FIFTH_
|
||||
0x4f0d, //CJK_IDEOGRAPH_COMPLEX_FIVE_
|
||||
|
|
Loading…
Add table
Reference in a new issue