Logo Search packages:      
Sourcecode: icu version File versions  Download package

int32_t TaiwanCalendar::handleGetLimit ( UCalendarDateFields  field,
ELimitType  limitType 
) const [protected, virtual]

Subclass API for defining limits of different types.

Parameters:
field one of the field numbers
limitType one of MINIMUM, GREATEST_MINIMUM, LEAST_MAXIMUM, or MAXIMUM

For internal use only.

Reimplemented from GregorianCalendar.

Definition at line 97 of file taiwncal.cpp.

References GregorianCalendar::handleGetLimit(), and UCAL_ERA.

{
    if(field == UCAL_ERA) {
        if(limitType == UCAL_LIMIT_MINIMUM || limitType == UCAL_LIMIT_GREATEST_MINIMUM) {
            return BEFORE_MINGUO;
        } else {
            return MINGUO;
        }
    } else {
        return GregorianCalendar::handleGetLimit(field,limitType);
    }
}


Generated by  Doxygen 1.6.0   Back to index