ICU-4327 Fix formatting for single digit standalones

X-SVN-Rev: 18135
This commit is contained in:
John Emmons 2005-07-02 02:54:59 +00:00
parent 7c747ceb2b
commit d4f90e7254

View File

@ -704,7 +704,7 @@ SimpleDateFormat::subFormat(UnicodeString &appendTo,
else if (count == 4)
_appendSymbol(appendTo, value, fSymbols->fWeekdays,
fSymbols->fWeekdaysCount);
else if (count == 3)
else
_appendSymbol(appendTo, value, fSymbols->fShortWeekdays,
fSymbols->fShortWeekdaysCount);
break;
@ -719,9 +719,11 @@ SimpleDateFormat::subFormat(UnicodeString &appendTo,
else if (count == 4)
_appendSymbol(appendTo, value, fSymbols->fStandaloneWeekdays,
fSymbols->fStandaloneWeekdaysCount);
else if (count == 3)
else if (count == 3)
_appendSymbol(appendTo, value, fSymbols->fStandaloneShortWeekdays,
fSymbols->fStandaloneShortWeekdaysCount);
else
zeroPaddingNumber(appendTo, value, 1, maxIntCount);
break;
// for and "a" symbol, write out the whole AM/PM string