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

int32_t IslamicCalendar::internalGetDefaultCenturyStartYear ( void   )  const [private]

Returns the first year of the 100-year window that dates with 2-digit years are considered to fall within.

Definition at line 498 of file islamcal.cpp.

References fgSystemDefaultCentury, fgSystemDefaultCenturyStart, fgSystemDefaultCenturyStartYear, initializeSystemDefaultCentury(), and NULL.

Referenced by defaultCenturyStartYear().

{
    // lazy-evaluate systemDefaultCenturyStartYear
    UBool needsUpdate;
    UMTX_CHECK(NULL, (fgSystemDefaultCenturyStart == fgSystemDefaultCentury), needsUpdate);

    if (needsUpdate) {
        initializeSystemDefaultCentury();
    }

    // use defaultCenturyStart unless it's the flag value;
    // then use systemDefaultCenturyStartYear

    return    fgSystemDefaultCenturyStartYear;
}


Generated by  Doxygen 1.6.0   Back to index