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

void BuddhistCalendar::handleComputeFields ( int32_t  julianDay,
UErrorCode status 
) [protected, virtual]

Subclasses may override this method to compute several fields specific to each calendar system.

Reimplemented from GregorianCalendar.

Definition at line 86 of file buddhcal.cpp.

References Calendar::internalGet(), Calendar::internalSet(), UCAL_ERA, UCAL_EXTENDED_YEAR, and UCAL_YEAR.

{
    GregorianCalendar::handleComputeFields(julianDay, status);
    int32_t y = internalGet(UCAL_EXTENDED_YEAR) - kBuddhistEraStart;
    internalSet(UCAL_ERA, 0);
    internalSet(UCAL_YEAR, y);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index