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

Calendar *U_EXPORT2 Calendar::createInstance ( UErrorCode success ) [static, inherited]

Creates a Calendar using the default timezone and locale. Clients are responsible for deleting the object returned.

Parameters:
successIndicates the success/failure of Calendar creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. U_MISSING_RESOURCE_ERROR will be returned if the resource data requests a calendar type which has not been installed.
Returns:
A Calendar if created successfully. NULL otherwise. ICU 2.0

Definition at line 754 of file calendar.cpp.

References TimeZone::createDefault(), and Locale::getDefault().

Referenced by Calendar::createInstance(), CalendarTest::minDateOfCalendar(), IntlCalendarTest::quasiGregorianTest(), CalendarRegressionTest::test4051765(), CalendarRegressionTest::test4061476(), CalendarTest::test4064654(), CalendarRegressionTest::test4071385(), CalendarRegressionTest::test4086724(), CalendarRegressionTest::test41003112(), CalendarRegressionTest::test4103271(), CalendarRegressionTest::test4108764(), TimeZoneRegressionTest::Test4109314(), CalendarRegressionTest::test4114578(), CalendarRegressionTest::test4118384(), CalendarRegressionTest::test4125881(), CalendarRegressionTest::test4125892(), TimeZoneRegressionTest::Test4126678(), LocaleTest::Test4143951(), TimeZoneRegressionTest::Test4176686(), CalendarTest::TestAddSetOrder621(), TimeZoneBoundaryTest::TestBoundaries(), IntlCalendarTest::TestBuddhist(), CalendarTest::TestClonesUnique908(), DateFormatTest::TestDateFormatCalendar(), CalendarTest::TestDisambiguation765(), CalendarTest::TestDOW_LOCALandYEAR_WOY(), CalendarTest::TestEpochStartFields(), CalendarTest::TestGenericAPI(), CalendarRegressionTest::TestJ438(), NumberFormatRegressionTest::TestJ691(), IntlCalendarTest::TestJapanese(), CalendarRegressionTest::TestLeapFieldDifference(), CalendarRegressionTest::TestMalaysianInstance(), DataDrivenCalendarTest::testOps(), IntlCalendarTest::TestPersian(), IntlCalendarTest::TestTaiwan(), CalendarRegressionTest::TestTimeZoneTransitionAdd(), IntlCalendarTest::TestTypes(), DateFormatTest::TestWallyWedel(), and ucal_open().

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