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

Calendar::Calendar ( const TimeZone zone,
const Locale aLocale,
UErrorCode success 
) [protected]

Constructs a Calendar with the given time zone and locale.

Parameters:
zone The given time zone.
aLocale The given locale.
success Indicates the status of Calendar object construction. Returns U_ZERO_ERROR if constructed successfully. ICU 2.0

Definition at line 687 of file calendar.cpp.

References clear(), TimeZone::clone(), fZone, NULL, setWeekCountData(), and U_MEMORY_ALLOCATION_ERROR.

:   UObject(),
fIsTimeSet(FALSE),
fAreFieldsSet(FALSE),
fAreAllFieldsSet(FALSE),
fAreFieldsVirtuallySet(FALSE),
fNextStamp((int32_t)kMinimumUserStamp),
fTime(0),
fLenient(TRUE),
fZone(0)
{
    clear();
    fZone = zone.clone();
    if (fZone == NULL) {
      success = U_MEMORY_ALLOCATION_ERROR;
    }
    setWeekCountData(aLocale, NULL, success);
}


Generated by  Doxygen 1.6.0   Back to index