Lines Matching refs:UnicodeString
52 UnicodeString patternData[] = { in testAPI()
53 UnicodeString("yM"), // 00 in testAPI()
54 UnicodeString("yMMM"), // 01 in testAPI()
55 UnicodeString("yMd"), // 02 in testAPI()
56 UnicodeString("yMMMd"), // 03 in testAPI()
57 UnicodeString("Md"), // 04 in testAPI()
58 UnicodeString("MMMd"), // 05 in testAPI()
59 UnicodeString("MMMMd"), // 06 in testAPI()
60 UnicodeString("yQQQ"), // 07 in testAPI()
61 UnicodeString("hhmm"), // 08 in testAPI()
62 UnicodeString("HHmm"), // 09 in testAPI()
63 UnicodeString("jjmm"), // 10 in testAPI()
64 UnicodeString("mmss"), // 11 in testAPI()
65 UnicodeString("yyyyMMMM"), // 12 in testAPI()
66 UnicodeString("MMMEd"), // 13 in testAPI()
67 UnicodeString("Ed"), // 14 in testAPI()
68 UnicodeString("jmmssSSS"), // 15 in testAPI()
69 UnicodeString("JJmm"), // 16 in testAPI()
70 UnicodeString(), in testAPI()
88 UnicodeString patternResults[] = { in testAPI()
90 UnicodeString("1/1999"), // 00: yM in testAPI()
91 UnicodeString("Jan 1999"), // 01: yMMM in testAPI()
92 UnicodeString("1/13/1999"), // 02: yMd in testAPI()
93 UnicodeString("Jan 13, 1999"), // 03: yMMMd in testAPI()
94 UnicodeString("1/13"), // 04: Md in testAPI()
95 UnicodeString("Jan 13"), // 05: MMMd in testAPI()
96 UnicodeString("January 13"), // 06: MMMMd in testAPI()
97 UnicodeString("Q1 1999"), // 07: yQQQ in testAPI()
98 UnicodeString("11:58 PM"), // 08: hhmm in testAPI()
99 UnicodeString("23:58"), // 09: HHmm in testAPI()
100 UnicodeString("11:58 PM"), // 10: jjmm in testAPI()
101 UnicodeString("58:59"), // 11: mmss in testAPI()
102 UnicodeString("January 1999"), // 12: yyyyMMMM in testAPI()
103 UnicodeString("Wed, Jan 13"), // 13: MMMEd -> EEE, MMM d in testAPI()
104 UnicodeString("13 Wed"), // 14: Ed -> d EEE in testAPI()
105 UnicodeString("11:58:59.123 PM"), // 15: jmmssSSS -> "h:mm:ss.SSS a" in testAPI()
106 UnicodeString("11:58"), // 16: JJmm in testAPI()
109 UnicodeString("1/11 H"), // 0: yM in testAPI()
110 UnicodeString("Jan 11 Heisei"), // 1: yMMM in testAPI()
111 UnicodeString("1/13/11 H"), // 2: yMd in testAPI()
112 UnicodeString("Jan 13, 11 Heisei"), // 3: yMMMd in testAPI()
113 UnicodeString("1/13"), // 4: Md in testAPI()
114 UnicodeString("Jan 13"), // 5: MMMd in testAPI()
115 UnicodeString("January 13"), // 6: MMMMd in testAPI()
116 UnicodeString("Q1 11 Heisei"), // 7: yQQQ in testAPI()
117 UnicodeString("11:58 PM"), // 8: hhmm in testAPI()
118 UnicodeString("23:58"), // 9: HHmm in testAPI()
119 UnicodeString("11:58 PM"), // 10: jjmm in testAPI()
120 UnicodeString("58:59"), // 11: mmss in testAPI()
121 UnicodeString("January 11 Heisei"), // 12: yyyyMMMM in testAPI()
122 UnicodeString("Wed, Jan 13"), // 13: MMMEd -> EEE, MMM d" in testAPI()
123 UnicodeString("13 Wed"), // 14: Ed -> d EEE in testAPI()
124 UnicodeString("11:58:59.123 PM"), // 15: jmmssSSS -> "h:mm:ss.SSS a" in testAPI()
125 UnicodeString("11:58"), // 16: JJmm in testAPI()
128 UnicodeString("1.1999"), // 00: yM in testAPI()
129 UnicodeString("Jan. 1999"), // 01: yMMM in testAPI()
130 UnicodeString("13.1.1999"), // 02: yMd in testAPI()
131 UnicodeString("13. Jan. 1999"), // 03: yMMMd in testAPI()
132 UnicodeString("13.1."), // 04: Md in testAPI()
133 UnicodeString("13. Jan."), // 05: MMMd in testAPI()
134 UnicodeString("13. Januar"), // 06: MMMMd in testAPI()
135 UnicodeString("Q1 1999"), // 07: yQQQ in testAPI()
136 UnicodeString("11:58 PM"), // 08: hhmm in testAPI()
137 UnicodeString("23:58"), // 09: HHmm in testAPI()
138 UnicodeString("23:58"), // 10: jjmm in testAPI()
139 UnicodeString("58:59"), // 11: mmss in testAPI()
140 UnicodeString("Januar 1999"), // 12: yyyyMMMM in testAPI()
141 UnicodeString("Mi., 13. Jan."), // 13: MMMEd -> EEE, d. MMM in testAPI()
142 UnicodeString("Mi., 13."), // 14: Ed -> EEE d. in testAPI()
143 UnicodeString("23:58:59,123"), // 15: jmmssSSS -> "HH:mm:ss,SSS" in testAPI()
144 UnicodeString("23:58"), // 16: JJmm in testAPI()
147 …UnicodeString("1.1999"), // 00: yM (fixed expected result per ticket:… in testAPI()
148 UnicodeString("tammi 1999"), // 01: yMMM in testAPI()
149 UnicodeString("13.1.1999"), // 02: yMd in testAPI()
150 UnicodeString("13. tammik. 1999"), // 03: yMMMd in testAPI()
151 UnicodeString("13.1."), // 04: Md in testAPI()
152 UnicodeString("13. tammik."), // 05: MMMd in testAPI()
153 UnicodeString("13. tammikuuta"), // 06: MMMMd in testAPI()
154 UnicodeString("1. nelj. 1999"), // 07: yQQQ in testAPI()
155 UnicodeString("11.58 ip."), // 08: hhmm in testAPI()
156 UnicodeString("23.58"), // 09: HHmm in testAPI()
157 UnicodeString("23.58"), // 10: jjmm in testAPI()
158 UnicodeString("58.59"), // 11: mmss in testAPI()
159 UnicodeString("tammikuu 1999"), // 12: yyyyMMMM in testAPI()
160 UnicodeString("ke 13. tammik."), // 13: MMMEd -> EEE d. MMM in testAPI()
161 UnicodeString("ke 13."), // 14: Ed -> ccc d. in testAPI()
162 UnicodeString("23.58.59,123"), // 15: jmmssSSS -> "H.mm.ss,SSS" in testAPI()
163 UnicodeString("23.58"), // 16: JJmm in testAPI()
166 UnicodeString("1/1999"), // 00: yM -> "M/y" in testAPI()
167 UnicodeString("ene. 1999"), // 01: yMMM -> "MMM y" in testAPI()
168 UnicodeString("13/1/1999"), // 02: yMd -> "d/M/y" in testAPI()
169 UnicodeString("13 ene. 1999"), // 03: yMMMd -> "d MMM y" in testAPI()
170 UnicodeString("13/1"), // 04: Md -> "d/M" in testAPI()
171 UnicodeString("13 ene."), // 05: MMMd -> "d 'de' MMM" in testAPI()
172 UnicodeString("13 de enero"), // 06: MMMMd -> "d 'de' MMMM" in testAPI()
173 UnicodeString("T1 1999"), // 07: yQQQ -> "QQQ y" in testAPI()
174 UnicodeString("11:58 p. m."), // 08: hhmm -> "hh:mm a" in testAPI()
175 UnicodeString("23:58"), // 09: HHmm -> "HH:mm" in testAPI()
176 UnicodeString("23:58"), // 10: jjmm -> "HH:mm" in testAPI()
177 UnicodeString("58:59"), // 11: mmss -> "mm:ss" in testAPI()
178 UnicodeString("enero de 1999"), // 12: yyyyMMMM -> "MMMM 'de' yyyy" in testAPI()
181 UnicodeString("23:58:59,123"), // 15: jmmssSSS -> "H:mm:ss,SSS" in testAPI()
182 UnicodeString("23:58"), // 16: JJmm in testAPI()
185 UnicodeString("1999/1"), // 00: yM -> y/M in testAPI()
187 UnicodeString("1999/1/13"), // 02: yMd -> y/M/d in testAPI()
189 UnicodeString("1/13"), // 04: Md -> M/d in testAPI()
194 UnicodeString("23:58"), // 09: HHmm -> HH:mm in testAPI()
195 UnicodeString("23:58"), // 10: jjmm in testAPI()
196 UnicodeString("58:59"), // 11: mmss -> mm:ss in testAPI()
200 … UnicodeString("23:58:59.123"), // 15: jmmssSSS -> "H:mm:ss.SSS" in testAPI()
201 UnicodeString("23:58"), // 16: JJmm in testAPI()
208 UnicodeString("1/13"), // 04: Md -> M/d in testAPI()
213 …UnicodeString("23:58"), // 09: HHmm -> HH:mm (… in testAPI()
214 UnicodeString("23:58"), // 10: jjmm in testAPI()
215 …UnicodeString("58:59"), // 11: mmss -> mm:ss (… in testAPI()
219 … UnicodeString("23:58:59.123"), // 15: jmmssSSS -> "H:mm:ss.SSS" in testAPI()
220 UnicodeString("23:58"), // 16: JJmm in testAPI()
227 UnicodeString("1/13"), // 04: Md in testAPI()
232 UnicodeString("23:58"), // 09: HHmm in testAPI()
234 UnicodeString("58:59"), // 11: mmss in testAPI()
239 UnicodeString("11:58"), // 16: JJmm in testAPI()
246 UnicodeString("1/13"), // 04: Md -> M/d in testAPI()
251 UnicodeString("23:58"), // 09: HHmm -> in testAPI()
253 UnicodeString("58:59"), // 11: mmss -> in testAPI()
258 UnicodeString("11:58"), // 16: JJmm in testAPI()
261 UnicodeString("01.1999"), // 00: yM -> MM.y in testAPI()
263 UnicodeString("13.01.1999"), // 02: yMd -> dd.MM.y in testAPI()
265 UnicodeString("13.01"), // 04: Md -> dd.MM in testAPI()
270 UnicodeString("23:58"), // 09: HHmm -> HH:mm in testAPI()
271 UnicodeString("23:58"), // 10: jjmm -> HH:mm in testAPI()
272 UnicodeString("58:59"), // 11: mmss -> mm:ss in testAPI()
276 … UnicodeString("23:58:59,123"), // 15: jmmssSSS -> "H:mm:ss,SSS" in testAPI()
277 UnicodeString("23:58"), // 16: JJmm in testAPI()
284 UnicodeString("11-26"), // 04: Md in testAPI()
289 UnicodeString("23:58"), // 09: HHmm in testAPI()
291 UnicodeString("58:59"), // 11: mmss in testAPI()
296 UnicodeString("11:58"), // 16: JJmm in testAPI()
298 UnicodeString(), in testAPI()
301 UnicodeString patternTests2[] = { in testAPI()
302 UnicodeString("yyyyMMMdd"), in testAPI()
303 UnicodeString("yyyyqqqq"), in testAPI()
304 UnicodeString("yMMMdd"), in testAPI()
305 UnicodeString("EyyyyMMMdd"), in testAPI()
306 UnicodeString("yyyyMMdd"), in testAPI()
307 UnicodeString("yyyyMMM"), in testAPI()
308 UnicodeString("yyyyMM"), in testAPI()
309 UnicodeString("yyMM"), in testAPI()
310 UnicodeString("yMMMMMd"), in testAPI()
311 UnicodeString("EEEEEMMMMMd"), in testAPI()
312 UnicodeString("MMMd"), in testAPI()
313 UnicodeString("MMMdhmm"), in testAPI()
314 UnicodeString("EMMMdhmms"), in testAPI()
315 UnicodeString("MMdhmm"), in testAPI()
316 UnicodeString("EEEEMMMdhmms"), in testAPI()
317 UnicodeString("yyyyMMMddhhmmss"), in testAPI()
318 UnicodeString("EyyyyMMMddhhmmss"), in testAPI()
319 UnicodeString("hmm"), in testAPI()
320 UnicodeString("hhmm"), in testAPI()
321 UnicodeString("hhmmVVVV"), in testAPI()
322 UnicodeString(""), in testAPI()
324 UnicodeString patternResults2[] = { in testAPI()
325 UnicodeString("Oct 14, 1999"), in testAPI()
326 UnicodeString("4th quarter 1999"), in testAPI()
327 UnicodeString("Oct 14, 1999"), in testAPI()
328 UnicodeString("Thu, Oct 14, 1999"), in testAPI()
329 UnicodeString("10/14/1999"), in testAPI()
330 UnicodeString("Oct 1999"), in testAPI()
331 UnicodeString("10/1999"), in testAPI()
332 UnicodeString("10/99"), in testAPI()
333 UnicodeString("O 14, 1999"), in testAPI()
334 UnicodeString("T, O 14"), in testAPI()
335 UnicodeString("Oct 14"), in testAPI()
336 UnicodeString("Oct 14, 6:58 AM"), in testAPI()
337 UnicodeString("Thu, Oct 14, 6:58:59 AM"), in testAPI()
338 UnicodeString("10/14, 6:58 AM"), in testAPI()
339 UnicodeString("Thursday, Oct 14, 6:58:59 AM"), in testAPI()
340 UnicodeString("Oct 14, 1999, 6:58:59 AM"), in testAPI()
341 UnicodeString("Thu, Oct 14, 1999, 6:58:59 AM"), in testAPI()
342 UnicodeString("6:58 AM"), in testAPI()
343 UnicodeString("6:58 AM"), in testAPI()
344 UnicodeString("6:58 AM GMT"), in testAPI()
345 UnicodeString(""), in testAPI()
349 const UnicodeString testSkeletonsResults[] = { in testAPI()
350 UnicodeString("HH:mm"), in testAPI()
351 UnicodeString("MMMMd"), in testAPI()
352 UnicodeString("MMMMMdd"), in testAPI()
355 const UnicodeString testBaseSkeletonsResults[] = { in testAPI()
356 UnicodeString("Hm"), in testAPI()
357 UnicodeString("MMMMd"), in testAPI()
358 UnicodeString("MMMMMd"), in testAPI()
371 UnicodeString newDecimal(" "); // space in testAPI()
372 UnicodeString newAppendItemName("hrs."); in testAPI()
373 UnicodeString newAppendItemFormat("{1} {0}"); in testAPI()
374 UnicodeString newDateTimeFormat("{1} {0}"); in testAPI()
376 UnicodeString conflictingPattern; in testAPI()
406 UnicodeString decimalSymbol = instFromLocale->getDecimal(); in testAPI()
407 UnicodeString newDecimalSymbol = UnicodeString("*"); in testAPI()
436 UnicodeString findPattern = gen->getBestPattern(UnicodeString("MMMddHmm"), status); in testAPI()
443 TimeZone *zone = TimeZone::createTimeZone(UnicodeString("ECT")); in testAPI()
451 UnicodeString dateReturned, expectedResult; in testAPI()
454 expectedResult=UnicodeString("14. Okt., 08:58", -1, US_INV); in testAPI()
460 …conflictingStatus = gen->addPattern(UnicodeString("d'. von' MMMM", -1, US_INV), true, conflictingP… in testAPI()
465 UnicodeString testPattern=gen->getBestPattern(UnicodeString("MMMMdd"), status); in testAPI()
466 testPattern=gen->getBestPattern(UnicodeString("MMMddHmm"), status); in testAPI()
467 format->applyPattern(gen->getBestPattern(UnicodeString("MMMMdHmm"), status)); in testAPI()
470 expectedResult=UnicodeString("14. von Oktober, 08:58", -1, US_INV); in testAPI()
472 …errln(UnicodeString("ERROR: Simple test addPattern failed!: d\'. von\' MMMM Got: ") + dateReturn… in testAPI()
480 UnicodeString pattern; in testAPI()
487 … errln(UnicodeString(" Got: ") + dateReturned + UnicodeString(" Expected: ") + expectedResult); in testAPI()
491 UnicodeString newPattern = gen->replaceFieldTypes(pattern, UnicodeString("vvvv"), status); in testAPI()
498 … errln(UnicodeString(" Got: ")+ dateReturned + UnicodeString(" Expected: ") + expectedResult); in testAPI()
530 pattern = UnicodeString(testGetSkeletonAndBase[i][0]); in testAPI()
531 UnicodeString expectedSkeleton = UnicodeString(testGetSkeletonAndBase[i][1]); in testAPI()
532 UnicodeString expectedBaseSkeleton = UnicodeString(testGetSkeletonAndBase[i][2]); in testAPI()
533 UnicodeString retSkeleton = gen->getSkeleton(pattern, status); in testAPI()
536 errln(UnicodeString(" Got: ") + retSkeleton + UnicodeString(" Expected: ") + expectedSkeleton ); in testAPI()
541 … errln(UnicodeString(" Got: ") + retSkeleton + UnicodeString(" Expected:")+ expectedBaseSkeleton); in testAPI()
552 pattern = UnicodeString("YYYYMMM"); in testAPI()
553 …UnicodeString expR = CharsToUnicodeString("1999\\u5E741\\u6708"); // fixed expected result per tic… in testAPI()
561 UnicodeString bPattern = patGen->getBestPattern(pattern, status); in testAPI()
562 UnicodeString rDate; in testAPI()
567 logln(UnicodeString(" ja locale with skeleton: YYYYMMM Best Pattern:") + bPattern); in testAPI()
568 logln(UnicodeString(" Formatted date:") + rDate); in testAPI()
571 errln(UnicodeString("\nERROR: Test Japanese month hack Got: ") + rDate + in testAPI()
572 UnicodeString(" Expected: ") + expR ); in testAPI()
579 …UnicodeString expR = CharsToUnicodeString("1999\\u5E741\\u6708"); // fixed expected result per tic… in testAPI()
586 UnicodeString bPattern = patGen->getBestPattern(pattern, status); in testAPI()
587 UnicodeString rDate; in testAPI()
592 logln(UnicodeString(" zh locale with skeleton: YYYYMMM Best Pattern:") + bPattern); in testAPI()
593 logln(UnicodeString(" Formatted date:") + rDate); in testAPI()
595 errln(UnicodeString("\nERROR: Test Chinese month hack Got: ") + rDate + in testAPI()
596 UnicodeString(" Expected: ") + expR ); in testAPI()
604 pattern = UnicodeString("hmv"); in testAPI()
605 …UnicodeString expR = UnicodeString("h:mm a v"); // avail formats has hm -> "h:mm a" (fixed expecte… in testAPI()
612 UnicodeString bPattern = patGen->getBestPattern(pattern, status); in testAPI()
613 logln(UnicodeString(" en locale with skeleton: hmv Best Pattern:") + bPattern); in testAPI()
616 errln(UnicodeString("\nERROR: Test EN time format Got: ") + bPattern + in testAPI()
617 UnicodeString(" Expected: ") + expR ); in testAPI()
630 UnicodeString resultDate; in testAPI()
635 UnicodeString bestPattern; in testAPI()
647 logln(UnicodeString(" -> ") + bestPattern); in testAPI()
653 …errln(UnicodeString("\nERROR: Test various skeletons[") + (dataIndex-1) + UnicodeString("], locale… in testAPI()
654 …UnicodeString(". Got: \"") + resultDate + UnicodeString("\" Expected: \"") + patternResults[result… in testAPI()
672 UnicodeString bestPattern; in testAPI()
679 TimeZone *enZone = TimeZone::createTimeZone(UnicodeString("ECT/GMT")); in testAPI()
691 logln(UnicodeString(" -> ") + bestPattern); in testAPI()
696 errln(UnicodeString("\nERROR: Test various skeletons[") + dataIndex in testAPI()
697 + UnicodeString("]. Got: ") + resultDate + UnicodeString(" Expected: ") + in testAPI()
718 UnicodeString randomSkeleton; in testAPI()
725 UnicodeString bestPattern = randDTGen->getBestPattern(randomSkeleton, status); in testAPI()
753 conflictingStatus = test->addPattern(UnicodeString("MMMMd"), true, conflictingPattern, status); in testAPI()
755 testPattern=test->getBestPattern(UnicodeString("MMMMdd"), status); in testAPI()
756 conflictingStatus = test->addPattern(UnicodeString("HH:mm"), true, conflictingPattern, status); in testAPI()
757 …conflictingStatus = test->addPattern(UnicodeString("MMMMMdd"), true, conflictingPattern, status); … in testAPI()
760 expectedResult=UnicodeString("MMMMd"); in testAPI()
763 const UnicodeString *dupPattern=output->snext(status); in testAPI()
774 UnicodeString returnPattern, *ptrSkeleton; in testAPI()
778 ptrSkeleton = (UnicodeString *)ptrSkeletonEnum->snext(status); in testAPI()
781 …errln(UnicodeString("ERROR: Unexpected result from getSkeletons and getPatternForSkeleton\nGot: ")… in testAPI()
782 + UnicodeString("\nExpected: ") + testSkeletonsResults[i] in testAPI()
783 + UnicodeString("\n")); in testAPI()
792 ptrSkeleton = (UnicodeString *)ptrBaseSkeletonEnum->snext(status); in testAPI()
805 pattern = generator->getBestPattern(UnicodeString("MMMd"), status); in testAPI()
808 zone = TimeZone::createTimeZone(UnicodeString("GMT")); in testAPI()
811 UnicodeString formatted; in testAPI()
818 expectedResult=UnicodeString("14 janv."); in testAPI()
821 errln(UnicodeString(" Got: ")+ formatted + UnicodeString(" Expected: ") + expectedResult); in testAPI()
905 UnicodeString skel(testDataPtr->skel); in testOptions()
906 UnicodeString expectedPattern(UnicodeString(testDataPtr->expectedPattern).unescape()); in testOptions()
915 UnicodeString pattern = dtpgen->getBestPattern(skel, options, status); in testOptions()
917 … errln( UnicodeString("ERROR in getBestPattern, locale ") + UnicodeString(testDataPtr->locale) + in testOptions()
918 UnicodeString(", skeleton ") + skel + in testOptions()
919 ((options)?UnicodeString(", options!=0"):UnicodeString(", options==0")) + in testOptions()
920 UnicodeString(", expected pattern ") + expectedPattern + in testOptions()
921 UnicodeString(", got ") + pattern ); in testOptions()
1032 UnicodeString skeleton(skelBuf, skelLen, US_INV); in testAllFieldPatterns()
1033 UnicodeString pattern = dtpg->getBestPattern(skeleton, status); in testAllFieldPatterns()
1042 UnicodeString mustIncludeOneOf(testDataPtr->mustIncludeOneOf, -1, US_INV); in testAllFieldPatterns()
1056 … errln(UnicodeString("DateTimePatternGenerator getBestPattern for locale ") + in testAllFieldPatterns()
1057 UnicodeString(locale.getName(),-1,US_INV) + in testAllFieldPatterns()
1085 UnicodeString skeleton = DateTimePatternGenerator::staticGetSkeleton(testData[i], status); in testStaticGetSkeleton()
1126 UnicodeString pattern = gen->getBestPattern(tests[i][1], options, status); in testC()
1127 UnicodeString expectedPattern = tests[i][2]; in testC()
1188 UnicodeString conflictingPattern; in testSkeletonsWithDayPeriods()
1189 (void)gen->addPattern(UnicodeString(patterns[i]), TRUE, conflictingPattern, status); in testSkeletonsWithDayPeriods()
1200 … UnicodeString result = gen->getBestPattern(UnicodeString(testItems[i][0]), options, status); in testSkeletonsWithDayPeriods()
1203 } else if (result != UnicodeString(testItems[i][1])) { in testSkeletonsWithDayPeriods()
1252 … UnicodeString getName = dtpg->getFieldDisplayName(testDataPtr->field, testDataPtr->width); in testGetFieldDisplayNames()