mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1923
rectified bug in testing for supplementary characters in casing X-SVN-Rev: 9254
This commit is contained in:
parent
f1a5dec3e8
commit
c4e1831d62
2 changed files with 11 additions and 10 deletions
|
@ -6,8 +6,8 @@
|
|||
*
|
||||
* $Source:
|
||||
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterPropertyDB.java $
|
||||
* $Date: 2002/07/18 23:27:03 $
|
||||
* $Revision: 1.11 $
|
||||
* $Date: 2002/07/19 00:53:02 $
|
||||
* $Revision: 1.12 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -1042,7 +1042,7 @@ public final class UCharacterProperty implements Trie.DataManipulate
|
|||
|
||||
toLowerCase(locale, ch, ucharIter, result);
|
||||
strIndex ++;
|
||||
if (ch > UTF16.SUPPLEMENTARY_MIN_VALUE) {
|
||||
if (ch >= UTF16.SUPPLEMENTARY_MIN_VALUE) {
|
||||
strIndex ++;
|
||||
}
|
||||
}
|
||||
|
@ -1234,7 +1234,7 @@ public final class UCharacterProperty implements Trie.DataManipulate
|
|||
|
||||
toUpperOrTitleCase(locale, ch, ucharIter, true, result);
|
||||
strIndex ++;
|
||||
if (ch > UTF16.SUPPLEMENTARY_MIN_VALUE) {
|
||||
if (ch >= UTF16.SUPPLEMENTARY_MIN_VALUE) {
|
||||
strIndex ++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/lang/UCharacter.java,v $
|
||||
* $Date: 2002/07/16 00:34:28 $
|
||||
* $Revision: 1.42 $
|
||||
* $Date: 2002/07/19 00:53:02 $
|
||||
* $Revision: 1.43 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -249,7 +249,7 @@ public final class UCharacter
|
|||
*/
|
||||
public static boolean isDefined(int ch)
|
||||
{
|
||||
return getProps(ch) != 0;
|
||||
return getType(ch) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -493,9 +493,10 @@ public final class UCharacter
|
|||
{
|
||||
// see java.lang.Character.isIdentifierIgnorable() on range of
|
||||
// ignorable characters.
|
||||
return ch <= 8 || (ch >= 0xe && ch <= 0x1b) ||
|
||||
(ch >= 0x7f && ch <= 0x9f) ||
|
||||
getType(ch) == UCharacterCategory.FORMAT;
|
||||
return ch <= 8 || (ch >= 0xe && ch <= 0x1b)
|
||||
|| (ch >= 0x7f && ch <= 0x9f)
|
||||
|| (ch >= 0x200a && ch <= 0x200f)
|
||||
|| (ch >= 0x206a && ch <= 0x206f) || ch == 0xfeff;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue