ICU-8227 Fixed some test failures introduced by earlier changes.

X-SVN-Rev: 29233
This commit is contained in:
Yoshito Umaoka 2010-12-20 20:25:17 +00:00
parent 839c21fdad
commit 95d0b6a8f9
2 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ class SourceTargetUtility {
final UnicodeSet sourceCache;
final Set<String> sourceStrings;
static final UnicodeSet NON_STARTERS = new UnicodeSet("[:^ccc=0:]").freeze();
static Normalizer2 NFC = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE);
static Normalizer2 NFC = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE);
//static final UnicodeSet TRAILING_COMBINING = new UnicodeSet();
public SourceTargetUtility(Transform<String, String> transform) {
@ -32,7 +32,7 @@ class SourceTargetUtility {
if (normalizer != null) {
// synchronized (SourceTargetUtility.class) {
// if (NFC == null) {
// NFC = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE);
// NFC = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE);
// for (int i = 0; i <= 0x10FFFF; ++i) {
// String d = NFC.getDecomposition(i);
// if (d == null) {

View File

@ -3016,9 +3016,9 @@ public class TransliteratorTest extends TestFmwk {
public void TestSourceTargetSet2() {
Normalizer2 nfkd = Normalizer2.getInstance(null, "NFKC", Mode.DECOMPOSE);
Normalizer2 nfc = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE);
Normalizer2 nfd = Normalizer2.getInstance(null, "NFC", Mode.DECOMPOSE);
Normalizer2 nfkd = Normalizer2.getInstance(null, "nfkc", Mode.DECOMPOSE);
Normalizer2 nfc = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE);
Normalizer2 nfd = Normalizer2.getInstance(null, "nfc", Mode.DECOMPOSE);
// UnicodeSet nfkdSource = new UnicodeSet();
// UnicodeSet nfkdTarget = new UnicodeSet();
// for (int i = 0; i <= 0x10FFFF; ++i) {