OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 1996-2013, International Business Machines | 3 * Copyright (C) 1996-2015, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 */ | 6 */ |
7 | 7 |
8 #include "utypeinfo.h" // for 'typeid' to work | 8 #include "utypeinfo.h" // for 'typeid' to work |
9 | 9 |
10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
11 | 11 |
12 #if !UCONFIG_NO_FORMATTING | 12 #if !UCONFIG_NO_FORMATTING |
13 | 13 |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 btz->getNextTransition(base, inclusive, tzt): | 765 btz->getNextTransition(base, inclusive, tzt): |
766 btz->getPreviousTransition(base, inclusive, tzt); | 766 btz->getPreviousTransition(base, inclusive, tzt); |
767 if (result) { | 767 if (result) { |
768 *transition = tzt.getTime(); | 768 *transition = tzt.getTime(); |
769 return TRUE; | 769 return TRUE; |
770 } | 770 } |
771 } | 771 } |
772 return FALSE; | 772 return FALSE; |
773 } | 773 } |
774 | 774 |
775 #ifndef U_HIDE_DRAFT_API | |
776 U_CAPI int32_t U_EXPORT2 | 775 U_CAPI int32_t U_EXPORT2 |
777 ucal_getWindowsTimeZoneID(const UChar* id, int32_t len, UChar* winid, int32_t wi
nidCapacity, UErrorCode* status) { | 776 ucal_getWindowsTimeZoneID(const UChar* id, int32_t len, UChar* winid, int32_t wi
nidCapacity, UErrorCode* status) { |
778 if (U_FAILURE(*status)) { | 777 if (U_FAILURE(*status)) { |
779 return 0; | 778 return 0; |
780 } | 779 } |
781 | 780 |
782 int32_t resultLen = 0; | 781 int32_t resultLen = 0; |
783 UnicodeString resultWinID; | 782 UnicodeString resultWinID; |
784 | 783 |
785 TimeZone::getWindowsID(UnicodeString(id, len), resultWinID, *status); | 784 TimeZone::getWindowsID(UnicodeString(id, len), resultWinID, *status); |
(...skipping 16 matching lines...) Expand all Loading... |
802 | 801 |
803 TimeZone::getIDForWindowsID(UnicodeString(winid, len), region, resultID, *st
atus); | 802 TimeZone::getIDForWindowsID(UnicodeString(winid, len), region, resultID, *st
atus); |
804 if (U_SUCCESS(*status) && resultID.length() > 0) { | 803 if (U_SUCCESS(*status) && resultID.length() > 0) { |
805 resultLen = resultID.length(); | 804 resultLen = resultID.length(); |
806 resultID.extract(id, idCapacity, *status); | 805 resultID.extract(id, idCapacity, *status); |
807 } | 806 } |
808 | 807 |
809 return resultLen; | 808 return resultLen; |
810 } | 809 } |
811 | 810 |
812 #endif /* U_HIDE_DRAFT_API */ | |
813 | |
814 #endif /* #if !UCONFIG_NO_FORMATTING */ | 811 #endif /* #if !UCONFIG_NO_FORMATTING */ |
OLD | NEW |