mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 15:05:53 +00:00
ICU-882 Don't use the deprecated API.
X-SVN-Rev: 3908
This commit is contained in:
parent
a733836b79
commit
a48efc30aa
1 changed files with 5 additions and 5 deletions
|
@ -1384,16 +1384,16 @@ void NumberFormatRegressionTest::Test4122840(void)
|
|||
u_getDataDirectory()/*"java.text.resources.LocaleElements"*/,
|
||||
locales[i], status);
|
||||
failure(status, "new ResourceBundle");
|
||||
ResourceBundle numPat = rb->get("NumberPatterns", status);
|
||||
failure(status, "new ResourceBundle(NumberPatterns)");
|
||||
//
|
||||
// Get the currency pattern for this locale. We have to fish it
|
||||
// out of the ResourceBundle directly, since DecimalFormat.toPattern
|
||||
// will return the localized symbol, not \00a4
|
||||
//
|
||||
int32_t resCount = 0;
|
||||
const UnicodeString *numPatterns = rb->getStringArray("NumberPatterns", resCount, status);
|
||||
UnicodeString pattern = numPat.getStringEx(1, status);
|
||||
failure(status, "rb->getStringArray");
|
||||
UnicodeString pattern = numPatterns[1];
|
||||
|
||||
|
||||
UChar fo[] = { 0x00A4 };
|
||||
UnicodeString foo(fo, 1, 1);
|
||||
|
||||
|
@ -1404,7 +1404,7 @@ void NumberFormatRegressionTest::Test4122840(void)
|
|||
" does not contain generic currency symbol:" +
|
||||
pattern );
|
||||
}
|
||||
|
||||
|
||||
// Create a DecimalFormat using the pattern we got and format a number
|
||||
DecimalFormatSymbols *symbols = new DecimalFormatSymbols(locales[i], status);
|
||||
failure(status, "new DecimalFormatSymbols");
|
||||
|
|
Loading…
Add table
Reference in a new issue