/*
*******************************************************************************
*
-* Copyright (C) 2003-2010, International Business Machines
+* Copyright (C) 2003-2013, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
UConverter *
ConversionTest::cnv_open(const char *name, UErrorCode &errorCode) {
+ if(name!=NULL && *name=='+') {
+ // Converter names that start with '+' are ignored in ICU4J tests.
+ ++name;
+ }
if(name!=NULL && *name=='*') {
/* loadTestData(): set the data directory */
return ucnv_openPackage(loadTestData(errorCode), name+1, &errorCode);
- } else if(name!=NULL && *name=='+') {
- return ucnv_open((name+1), &errorCode);
} else {
return ucnv_open(name, &errorCode);
}
// Test ticket 9602: Add "good one-way" mapping type (|4).
// Such mappings are used regardless of the fallback flag.
{
- "*test3", "##\uFE0E#\uFE0F",
+ "+*test3", "##\uFE0E#\uFE0F",
:bin{ 010204010204010204 }, :intvector{ 0,0,0,1,1,1,3,3,3 },
:int{1}, :int{0}, // no fallbacks
"", "?", ""
}
{
- "*test3", "##\uFE0E#\uFE0F",
+ "+*test3", "##\uFE0E#\uFE0F",
:bin{ 010204010204010204 }, :intvector{ 0,0,0,1,1,1,3,3,3 },
:int{1}, :int{1}, // with fallbacks
"", "?", ""
// Test ticket 9602: Add "good one-way" mapping type (|4).
// Excluded from roundtrip set, included in the set with fallbacks.
{
- "*test3",
+ "+*test3",
"[{#\uFE0F}]",
"[#{#\uFE0E}]",
:int{0}
}
{
- "*test3",
+ "+*test3",
"[#{#\uFE0E}{#\uFE0F}]",
"[]",
:int{1}