Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: source/i18n/ucal.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/i18n/tznames.cpp ('k') | source/i18n/ucol.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « source/i18n/tznames.cpp ('k') | source/i18n/ucol.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698