mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-5241 Added single setters for quarters
X-SVN-Rev: 20003
This commit is contained in:
parent
a5762bea29
commit
46e2403665
1 changed files with 44 additions and 0 deletions
|
@ -649,6 +649,34 @@ public:
|
|||
setSymbol(syms->fStandaloneNarrowWeekdays, syms->fStandaloneNarrowWeekdaysCount, index, value, valueLength, errorCode);
|
||||
}
|
||||
|
||||
static void
|
||||
setQuarter(DateFormatSymbols *syms, int32_t index,
|
||||
const UChar *value, int32_t valueLength, UErrorCode &errorCode)
|
||||
{
|
||||
setSymbol(syms->fQuarters, syms->fQuartersCount, index, value, valueLength, errorCode);
|
||||
}
|
||||
|
||||
static void
|
||||
setShortQuarter(DateFormatSymbols *syms, int32_t index,
|
||||
const UChar *value, int32_t valueLength, UErrorCode &errorCode)
|
||||
{
|
||||
setSymbol(syms->fShortQuarters, syms->fShortQuartersCount, index, value, valueLength, errorCode);
|
||||
}
|
||||
|
||||
static void
|
||||
setStandaloneQuarter(DateFormatSymbols *syms, int32_t index,
|
||||
const UChar *value, int32_t valueLength, UErrorCode &errorCode)
|
||||
{
|
||||
setSymbol(syms->fStandaloneQuarters, syms->fStandaloneQuartersCount, index, value, valueLength, errorCode);
|
||||
}
|
||||
|
||||
static void
|
||||
setStandaloneShortQuarter(DateFormatSymbols *syms, int32_t index,
|
||||
const UChar *value, int32_t valueLength, UErrorCode &errorCode)
|
||||
{
|
||||
setSymbol(syms->fStandaloneShortQuarters, syms->fStandaloneShortQuartersCount, index, value, valueLength, errorCode);
|
||||
}
|
||||
|
||||
static void
|
||||
setAmPm(DateFormatSymbols *syms, int32_t index,
|
||||
const UChar *value, int32_t valueLength, UErrorCode &errorCode)
|
||||
|
@ -736,6 +764,22 @@ udat_setSymbols( UDateFormat *format,
|
|||
DateFormatSymbolsSingleSetter::setStandaloneNarrowWeekday(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
||||
case UDAT_QUARTERS:
|
||||
DateFormatSymbolsSingleSetter::setQuarter(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
||||
case UDAT_SHORT_QUARTERS:
|
||||
DateFormatSymbolsSingleSetter::setShortQuarter(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
||||
case UDAT_STANDALONE_QUARTERS:
|
||||
DateFormatSymbolsSingleSetter::setStandaloneQuarter(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
||||
case UDAT_STANDALONE_SHORT_QUARTERS:
|
||||
DateFormatSymbolsSingleSetter::setStandaloneShortQuarter(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
||||
case UDAT_AM_PMS:
|
||||
DateFormatSymbolsSingleSetter::setAmPm(syms, index, value, valueLength, *status);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue