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

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

Reimplemented from GregorianCalendar.

Definition at line 168 of file buddhcal.cpp.

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

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;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index