| OLD | NEW |
| 1 /************************************************************************ | 1 /************************************************************************ |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2010, International Business Machines Corporation | 3 * Copyright (c) 1997-2010, International Business Machines Corporation |
| 4 * and others. All Rights Reserved. | 4 * and others. All Rights Reserved. |
| 5 ************************************************************************/ | 5 ************************************************************************/ |
| 6 | 6 |
| 7 #include "unicode/utypes.h" | 7 #include "unicode/utypes.h" |
| 8 | 8 |
| 9 #if !UCONFIG_NO_FORMATTING | 9 #if !UCONFIG_NO_FORMATTING |
| 10 | 10 |
| (...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2027 } | 2027 } |
| 2028 return gLocaleCount; | 2028 return gLocaleCount; |
| 2029 } | 2029 } |
| 2030 | 2030 |
| 2031 static UDate doMinDateOfCalendar(Calendar* adopt, UBool &isGregorian, UErrorCode
& status) { | 2031 static UDate doMinDateOfCalendar(Calendar* adopt, UBool &isGregorian, UErrorCode
& status) { |
| 2032 if(U_FAILURE(status)) return 0.0; | 2032 if(U_FAILURE(status)) return 0.0; |
| 2033 | 2033 |
| 2034 adopt->clear(); | 2034 adopt->clear(); |
| 2035 adopt->set(UCAL_EXTENDED_YEAR, adopt->getActualMinimum(UCAL_EXTENDED_YEAR, sta
tus)); | 2035 adopt->set(UCAL_EXTENDED_YEAR, adopt->getActualMinimum(UCAL_EXTENDED_YEAR, sta
tus)); |
| 2036 UDate ret = adopt->getTime(status); | 2036 UDate ret = adopt->getTime(status); |
| 2037 isGregorian = dynamic_cast<GregorianCalendar*>(adopt) != NULL; | 2037 isGregorian = CR_DYNAMIC_CAST<GregorianCalendar*>(adopt) != NULL; |
| 2038 delete adopt; | 2038 delete adopt; |
| 2039 return ret; | 2039 return ret; |
| 2040 } | 2040 } |
| 2041 | 2041 |
| 2042 UDate CalendarTest::minDateOfCalendar(const Locale& locale, UBool &isGregorian,
UErrorCode& status) { | 2042 UDate CalendarTest::minDateOfCalendar(const Locale& locale, UBool &isGregorian,
UErrorCode& status) { |
| 2043 if(U_FAILURE(status)) return 0.0; | 2043 if(U_FAILURE(status)) return 0.0; |
| 2044 return doMinDateOfCalendar(Calendar::createInstance(locale, status), isGregori
an, status); | 2044 return doMinDateOfCalendar(Calendar::createInstance(locale, status), isGregori
an, status); |
| 2045 } | 2045 } |
| 2046 | 2046 |
| 2047 UDate CalendarTest::minDateOfCalendar(const Calendar& cal, UBool &isGregorian, U
ErrorCode& status) { | 2047 UDate CalendarTest::minDateOfCalendar(const Calendar& cal, UBool &isGregorian, U
ErrorCode& status) { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2154 break; | 2154 break; |
| 2155 } | 2155 } |
| 2156 } | 2156 } |
| 2157 } | 2157 } |
| 2158 return; | 2158 return; |
| 2159 } | 2159 } |
| 2160 | 2160 |
| 2161 #endif /* #if !UCONFIG_NO_FORMATTING */ | 2161 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 2162 | 2162 |
| 2163 //eof | 2163 //eof |
| OLD | NEW |