Logo Search packages:      
Sourcecode: icu version File versions

UCalendarDateFields Calendar::newerField ( UCalendarDateFields  defaultField,
UCalendarDateFields  alternateField 
) const [protected, inherited]

Return the field that is newer, either defaultField, or alternateField. If neither is newer or neither is set, return defaultField.

For internal use only.

Definition at line 2321 of file calendar.cpp.

References Calendar::fStamp.

Referenced by handleGetExtendedYear(), PersianCalendar::handleGetExtendedYear(), JapaneseCalendar::handleGetExtendedYear(), IslamicCalendar::handleGetExtendedYear(), IndianCalendar::handleGetExtendedYear(), HebrewCalendar::handleGetExtendedYear(), EthiopicCalendar::handleGetExtendedYear(), CopticCalendar::handleGetExtendedYear(), and BuddhistCalendar::handleGetExtendedYear().

{
    if (fStamp[alternateField] > fStamp[defaultField]) {
        return alternateField;
    }
    return defaultField;
}


Generated by  Doxygen 1.6.0   Back to index