OLD | NEW |
1 /******************************************************************** | 1 /******************************************************************** |
2 * COPYRIGHT: | 2 * COPYRIGHT: |
3 * Copyright (c) 1997-2013, International Business Machines Corporation and | 3 * Copyright (c) 1997-2015, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 ********************************************************************/ | 5 ********************************************************************/ |
6 /*******************************************************************************
* | 6 /*******************************************************************************
* |
7 * | 7 * |
8 * File CINTLTST.C | 8 * File CINTLTST.C |
9 * | 9 * |
10 * Modification History: | 10 * Modification History: |
11 * Name Description | 11 * Name Description |
12 * Madhu Katragadda Creation | 12 * Madhu Katragadda Creation |
13 ********************************************************************************
* | 13 ********************************************************************************
* |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 # define TRY_CNV_1 "iso-8859-1" | 66 # define TRY_CNV_1 "iso-8859-1" |
67 # define TRY_CNV_2 "ibm-1208" | 67 # define TRY_CNV_2 "ibm-1208" |
68 #else | 68 #else |
69 # define TRY_CNV_1 "iso-8859-7" | 69 # define TRY_CNV_1 "iso-8859-7" |
70 # define TRY_CNV_2 "sjis" | 70 # define TRY_CNV_2 "sjis" |
71 #endif | 71 #endif |
72 | 72 |
73 static int gOrigArgc; | 73 static int gOrigArgc; |
74 static const char* const * gOrigArgv; | 74 static const char* const * gOrigArgv; |
75 | 75 |
| 76 #ifdef UNISTR_COUNT_FINAL_STRING_LENGTHS |
| 77 U_CAPI void unistr_printLengths(); |
| 78 #endif |
| 79 |
76 int main(int argc, const char* const argv[]) | 80 int main(int argc, const char* const argv[]) |
77 { | 81 { |
78 int nerrors = 0; | 82 int nerrors = 0; |
79 UBool defaultDataFound; | 83 UBool defaultDataFound; |
80 TestNode *root; | 84 TestNode *root; |
81 const char *warnOrErr = "Failure"; | 85 const char *warnOrErr = "Failure"; |
82 UDate startTime, endTime; | 86 UDate startTime, endTime; |
83 int32_t diffTime; | 87 int32_t diffTime; |
84 | 88 |
85 /* initial check for the default converter */ | 89 /* initial check for the default converter */ |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 fprintf(stderr, "Error: After final u_cleanup, RB cache was not empty.
\n"); | 230 fprintf(stderr, "Error: After final u_cleanup, RB cache was not empty.
\n"); |
227 nerrors++; | 231 nerrors++; |
228 } else { | 232 } else { |
229 fprintf(stderr,"OK: After final u_cleanup, RB cache was empty.\n"); | 233 fprintf(stderr,"OK: After final u_cleanup, RB cache was empty.\n"); |
230 } | 234 } |
231 #endif | 235 #endif |
232 #endif | 236 #endif |
233 | 237 |
234 } /* End of loop that repeats the entire test, if requested. (Normally doe
sn't loop) */ | 238 } /* End of loop that repeats the entire test, if requested. (Normally doe
sn't loop) */ |
235 | 239 |
| 240 #ifdef UNISTR_COUNT_FINAL_STRING_LENGTHS |
| 241 unistr_printLengths(); |
| 242 #endif |
| 243 |
236 endTime = uprv_getRawUTCtime(); | 244 endTime = uprv_getRawUTCtime(); |
237 diffTime = (int32_t)(endTime - startTime); | 245 diffTime = (int32_t)(endTime - startTime); |
238 printf("Elapsed Time: %02d:%02d:%02d.%03d\n", | 246 printf("Elapsed Time: %02d:%02d:%02d.%03d\n", |
239 (int)((diffTime%U_MILLIS_PER_DAY)/U_MILLIS_PER_HOUR), | 247 (int)((diffTime%U_MILLIS_PER_DAY)/U_MILLIS_PER_HOUR), |
240 (int)((diffTime%U_MILLIS_PER_HOUR)/U_MILLIS_PER_MINUTE), | 248 (int)((diffTime%U_MILLIS_PER_HOUR)/U_MILLIS_PER_MINUTE), |
241 (int)((diffTime%U_MILLIS_PER_MINUTE)/U_MILLIS_PER_SECOND), | 249 (int)((diffTime%U_MILLIS_PER_MINUTE)/U_MILLIS_PER_SECOND), |
242 (int)(diffTime%U_MILLIS_PER_SECOND)); | 250 (int)(diffTime%U_MILLIS_PER_SECOND)); |
243 | 251 |
244 return nerrors ? 1 : 0; | 252 return nerrors ? 1 : 0; |
245 } | 253 } |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 } | 701 } |
694 #ifdef VERBOSE_ASSERTIONS | 702 #ifdef VERBOSE_ASSERTIONS |
695 else { | 703 else { |
696 log_verbose("Ok: %s; got \"%s\"\n", message, actual); | 704 log_verbose("Ok: %s; got \"%s\"\n", message, actual); |
697 } | 705 } |
698 #endif | 706 #endif |
699 return TRUE; | 707 return TRUE; |
700 } | 708 } |
701 | 709 |
702 #endif | 710 #endif |
OLD | NEW |