From 05cff4e76153f2408f3466f74a10dda3a0e46d7e Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 30 Jun 2011 23:10:11 +0000 Subject: [PATCH] ICU-8606 forgot to switch the second getCombiningClass(c) in UTS46.java; also switching to lower-level UBiDiProps functions X-SVN-Rev: 30262 --- .../classes/core/src/com/ibm/icu/impl/UTS46.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UTS46.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UTS46.java index 800f15a84a..a9550653ad 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UTS46.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UTS46.java @@ -11,7 +11,6 @@ import java.util.EnumSet; import com.ibm.icu.lang.UCharacter; import com.ibm.icu.lang.UCharacterCategory; import com.ibm.icu.lang.UCharacterDirection; -import com.ibm.icu.lang.UProperty; import com.ibm.icu.text.IDNA; import com.ibm.icu.text.Normalizer2; import com.ibm.icu.text.StringPrepParseException; @@ -551,7 +550,7 @@ public final class UTS46 extends IDNA { int i=labelStart; c=Character.codePointAt(label, i); i+=Character.charCount(c); - int firstMask=U_MASK(UCharacter.getDirection(c)); + int firstMask=U_MASK(UBiDiProps.INSTANCE.getClass(c)); // 1. The first character must be a character with BIDI property L, R // or AL. If it has the R or AL property, it is an RTL label; if it // has the L property, it is an LTR label. @@ -568,7 +567,7 @@ public final class UTS46 extends IDNA { } c=Character.codePointBefore(label, labelLimit); labelLimit-=Character.charCount(c); - int dir=UCharacter.getDirection(c); + int dir=UBiDiProps.INSTANCE.getClass(c); if(dir!=UCharacterDirection.DIR_NON_SPACING_MARK) { lastMask=U_MASK(dir); break; @@ -591,7 +590,7 @@ public final class UTS46 extends IDNA { while(i