ICU-11652 Change default padding character from astricks 0x002A to space 0x0020

X-SVN-Rev: 37378
This commit is contained in:
Travis Keep 2015-04-22 21:54:15 +00:00
parent f917158366
commit 4a51a2f421
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1997-2014, International Business Machines Corporation and *
* Copyright (C) 1997-2015, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -91,7 +91,7 @@ DecimalFormatPattern::DecimalFormatPattern()
fFormatWidth(0),
fRoundingIncrementUsed(FALSE),
fRoundingIncrement(),
fPad(kPatternPadEscape),
fPad(kDefaultPad),
fNegPatternsBogus(TRUE),
fPosPatternsBogus(TRUE),
fNegPrefixPattern(),

View File

@ -448,7 +448,7 @@ DecimalFormat::construct(UErrorCode& status,
fSymbols = symbolsToAdopt; // Do this BEFORE aborting on status failure!!!
fRoundingIncrement = NULL;
fRoundingMode = kRoundHalfEven;
fPad = kPatternPadEscape;
fPad = kDefaultPad;
fPadPosition = kPadBeforePrefix;
if (U_FAILURE(status))
return;

View File

@ -7373,7 +7373,7 @@ void NumberFormatTest::Test10468ApplyPattern() {
fmt.applyPattern("AA#,##0.00ZZ", status);
// Oops this still prints 'a' even though we changed the pattern.
if (fmt.getPadCharacterString() != UnicodeString("*")) {
if (fmt.getPadCharacterString() != UnicodeString(" ")) {
errln("applyPattern did not clear padding character.");
}
}