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

Side by Side Diff: source/test/cintltst/cdtrgtst.c

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 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/test/cintltst/cdtdptst.c ('k') | source/test/cintltst/cfintst.c » ('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 * COPYRIGHT: 2 * COPYRIGHT:
3 * Copyright (c) 1997-2013, International Business Machines Corporation and 3 * Copyright (c) 1997-2014, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ********************************************************************/ 5 ********************************************************************/
6 /******************************************************************************* * 6 /******************************************************************************* *
7 * 7 *
8 * File CDTRGTST.C 8 * File CDTRGTST.C
9 * 9 *
10 * Madhu Katragadda Ported for C API 10 * Madhu Katragadda Ported for C API
11 * Modification History: 11 * Modification History:
12 * Date Name Description 12 * Date Name Description
13 * 07/15/99 helena Ported to HPUX 10/11 CC. 13 * 07/15/99 helena Ported to HPUX 10/11 CC.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } else { 85 } else {
86 log_data_err("ERROR: couldn't format, exitting test"); 86 log_data_err("ERROR: couldn't format, exitting test");
87 return; 87 return;
88 } 88 }
89 89
90 temp=(UChar*)malloc(sizeof(UChar) * 10); 90 temp=(UChar*)malloc(sizeof(UChar) * 10);
91 u_uastrcpy(temp, "M yyyy dd"); 91 u_uastrcpy(temp, "M yyyy dd");
92 udat_applyPattern(df, TRUE, temp, u_strlen(temp)); 92 udat_applyPattern(df, TRUE, temp, u_strlen(temp));
93 93
94 todayS =myFormatit(df, today); 94 todayS =myFormatit(df, today);
95 log_verbose("After teh pattern is applied\n today: %s\n", austrdup(todayS) ) ; 95 log_verbose("After the pattern is applied\n today: %s\n", austrdup(todayS) ) ;
96 parsepos=0; 96 parsepos=0;
97 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status); 97 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status);
98 if(U_FAILURE(status)) 98 if(U_FAILURE(status))
99 { 99 {
100 log_err("FAIL: Error in parsing using udat_parse(.....): %s\n", myErrorN ame(status)); 100 log_err("FAIL: Error in parsing using udat_parse(.....): %s\n", myErrorN ame(status));
101 } 101 }
102 102
103 rt =myFormatit(df, d1); 103 rt =myFormatit(df, d1);
104 log_verbose("today: %s\n", austrdup(rt) ); 104 log_verbose("today: %s\n", austrdup(rt) );
105 105
106 log_verbose("round trip: %s\n", austrdup(rt) ); 106 log_verbose("round trip: %s\n", austrdup(rt) );
107 107
108 if(u_strcmp(rt, todayS)!=0) { 108 if(u_strcmp(rt, todayS)!=0) {
109 log_err("Fail: Want %s Got %s\n", austrdup(todayS), austrdup(rt) ); 109 log_err("Fail: Want %s Got %s\n", austrdup(todayS), austrdup(rt) );
110 } 110 }
111 else 111 else
112 log_verbose("Pass: parse and format working fine\n"); 112 log_verbose("Pass: parse and format working fine\n");
113 udat_close(df); 113 udat_close(df);
114 free(temp); 114 free(temp);
115 if(pat != NULL) { 115 if(pat != NULL) {
116 free(pat); 116 free(pat);
117 } 117 }
118 } 118 }
119 119
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 } 622 }
623 623
624 624
625 return result1; 625 return result1;
626 626
627 } 627 }
628 628
629 #endif /* #if !UCONFIG_NO_FORMATTING */ 629 #endif /* #if !UCONFIG_NO_FORMATTING */
630 630
631 /*eof*/ 631 /*eof*/
OLDNEW
« no previous file with comments | « source/test/cintltst/cdtdptst.c ('k') | source/test/cintltst/cfintst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698