Lines Matching refs:PATTERNS
33 static const char* PATTERNS[] = { variable
174 for (int32_t patidx = 0; patidx < UPRV_LENGTHOF(PATTERNS); patidx++) { in TestTimeZoneRoundTrip()
175 …SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], sta… in TestTimeZoneRoundTrip()
178 … PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status)); in TestTimeZoneRoundTrip()
229 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in TestTimeZoneRoundTrip()
242 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
247 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
252 } else if (uprv_strcmp(PATTERNS[patidx], "VV") == 0) { in TestTimeZoneRoundTrip()
256 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
260 …} else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0 || uprv_strcmp(PATTERNS[patidx], "VVVV") == 0… in TestTimeZoneRoundTrip()
276 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
281 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
293 UBool isOffsetFormat = (*PATTERNS[patidx] == 'Z' in TestTimeZoneRoundTrip()
294 || *PATTERNS[patidx] == 'O' in TestTimeZoneRoundTrip()
295 || *PATTERNS[patidx] == 'X' in TestTimeZoneRoundTrip()
296 || *PATTERNS[patidx] == 'x'); in TestTimeZoneRoundTrip()
298 if (*PATTERNS[patidx] == 'X' || *PATTERNS[patidx] == 'x') { in TestTimeZoneRoundTrip()
299 minutesOffset = (uprv_strlen(PATTERNS[patidx]) <= 3); in TestTimeZoneRoundTrip()
325 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
333 … + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] in TestTimeZoneRoundTrip()
400 UDate times[UPRV_LENGTHOF(PATTERNS)]; // Performance data, Elapsed time for each pattern.
416 patternIndex = UPRV_LENGTHOF(PATTERNS); in resetTestIteration()
422 if (patternIndex >= UPRV_LENGTHOF(PATTERNS) - 1) { in nextTest()
438 U_ASSERT(patIdx < UPRV_LENGTHOF(PATTERNS)); in addTime()
512 for (int32_t i = 0; i < UPRV_LENGTHOF(PATTERNS); i++) { in TestTimeRoundTrip()
513 logln(UnicodeString("") + gLocaleData->times[i] + "ms (" + PATTERNS[i] + ")"); in TestTimeRoundTrip()
566 pattern.append(" ").append(PATTERNS[patidx]); in RunTimeRoundTripTests()
578 UBool minutesOffset = contains(MINUTES_OFFSET, PATTERNS[patidx]); in RunTimeRoundTripTests()
586 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in RunTimeRoundTripTests()
594 } else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0) { in RunTimeRoundTripTests()
605 && uprv_strcmp(PATTERNS[patidx], "vvvv") == 0 in RunTimeRoundTripTests()
633 !contains(AMBIGUOUS_DST_DECESSION, PATTERNS[patidx]) : in RunTimeRoundTripTests()
634 !contains(AMBIGUOUS_NEGATIVE_SHIFT, PATTERNS[patidx]); in RunTimeRoundTripTests()
637 !contains(AMBIGUOUS_DST_DECESSION, PATTERNS[patidx]) : in RunTimeRoundTripTests()
638 !contains(AMBIGUOUS_NEGATIVE_SHIFT, PATTERNS[patidx]); in RunTimeRoundTripTests()
670 + ", pattern=" + PATTERNS[patidx] + ", time=" + testTimes[testidx]); in RunTimeRoundTripTests()
680 … + ", locale=" + gLocaleData->locales[locidx].getName() + ", pattern=" + PATTERNS[patidx] in RunTimeRoundTripTests()
685 PATTERNS[patidx], testTimes[testidx])) { in RunTimeRoundTripTests()