Home
last modified time | relevance | path

Searched refs:itemPtr (Results 1 – 12 of 12) sorted by relevance

/third_party/icu/icu4c/source/test/cintltst/
Dcrelativedateformattest.c353 const RelDateTimeFormatTestItem *itemPtr; in TestRelDateFmt() local
355 for (itemPtr = fmtTestItems; itemPtr->locale != NULL; itemPtr++) { in TestRelDateFmt()
361 if (itemPtr->decPlaces >= 0) { in TestRelDateFmt()
362 nfToAdopt = unum_open(UNUM_DECIMAL, NULL, 0, itemPtr->locale, NULL, &status); in TestRelDateFmt()
364 …log_data_err("FAIL: unum_open(UNUM_DECIMAL, ...) for locale %s: %s\n", itemPtr->locale, myErrorNam… in TestRelDateFmt()
367 unum_setAttribute(nfToAdopt, UNUM_MIN_FRACTION_DIGITS, itemPtr->decPlaces); in TestRelDateFmt()
368 unum_setAttribute(nfToAdopt, UNUM_MAX_FRACTION_DIGITS, itemPtr->decPlaces); in TestRelDateFmt()
371 …reldatefmt = ureldatefmt_open(itemPtr->locale, nfToAdopt, itemPtr->width, itemPtr->capContext, &st… in TestRelDateFmt()
374itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
383 …if (itemPtr->unit >= UDAT_REL_UNIT_SUNDAY && offsets[iOffset] != -1.0 && offsets[iOffset] != 0.0 &… in TestRelDateFmt()
[all …]
Dcnumtst.c1098 const ParseCurrencyItem * itemPtr; in TestParseCurrency() local
1099 for (itemPtr = parseCurrencyItems; itemPtr->locale != NULL; ++itemPtr) { in TestParseCurrency()
1108 unum = unum_open(UNUM_CURRENCY, NULL, 0, itemPtr->locale, NULL, &status); in TestParseCurrency()
1110 const UChar * currStr = itemPtr->currStr; in TestParseCurrency()
1114 …if (status != itemPtr->parsDoubExpectErr || parsePos != itemPtr->parsDoubExpectPos || parseVal != in TestParseCurrency()
1116 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
1117 … u_errorName(itemPtr->parsDoubExpectErr), itemPtr->parsDoubExpectPos, itemPtr->parsDoubExpectVal, in TestParseCurrency()
1125 …if (status != itemPtr->parsCurrExpectErr || parsePos != itemPtr->parsCurrExpectPos || parseVal != in TestParseCurrency()
1126 strncmp(parseCurrB, itemPtr->parsCurrExpectCurr, 4) != 0) { in TestParseCurrency()
1128 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
[all …]
Dcpluralrulestest.c205 const KeywordsForLang* itemPtr = getKeywordsItems; in TestGetKeywords() local
206 for (; itemPtr->locale != NULL; itemPtr++) { in TestGetKeywords()
219 for (i = 0; i < kNumKeywords && itemPtr->keywords[i] != NULL; i++) { in TestGetKeywords()
220 iKnown = getKeywordIndex(itemPtr->keywords[i]); in TestGetKeywords()
226 uplrules = uplrules_openForType(itemPtr->locale, UPLURAL_TYPE_CARDINAL, &status); in TestGetKeywords()
228 …"FAIL: uplrules_openForType for locale %s, UPLURAL_TYPE_CARDINAL: %s\n", itemPtr->locale, myErrorN… in TestGetKeywords()
233 … log_err("FAIL: uplrules_getKeywords for locale %s: %s\n", itemPtr->locale, myErrorName(status) ); in TestGetKeywords()
240 …og_err("FAIL: uplrules_getKeywords for locale %s, unknown keyword %s\n", itemPtr->locale, keyword … in TestGetKeywords()
247 …("FAIL: uplrules_getKeywords for locale %s, got too many keywords %d\n", itemPtr->locale, keywordC… in TestGetKeywords()
252 " got { %d %d %d %d %d %d }\n", itemPtr->locale, in TestGetKeywords()
Dcbiapts.c1132 const TestBISuppressionsItem * itemPtr; in TestBreakIteratorSuppressions() local
1134 for (itemPtr = testBISuppressionsItems; itemPtr->locale != NULL; itemPtr++) { in TestBreakIteratorSuppressions()
1136 int32_t textULen = u_unescape(itemPtr->text, textU, kTextULenMax); in TestBreakIteratorSuppressions()
1138 UBreakIterator *bi = ubrk_open(UBRK_SENTENCE, itemPtr->locale, textU, textULen, &status); in TestBreakIteratorSuppressions()
1139 log_verbose("#%d: %s\n", (itemPtr-testBISuppressionsItems), itemPtr->locale); in TestBreakIteratorSuppressions()
1145 expOffsetStart = expOffsetPtr = itemPtr->expFwdOffsets; in TestBreakIteratorSuppressions()
1149 …log_err("FAIL: ubrk_next loc \"%s\", expected %d, got %d\n", itemPtr->locale, *expOffsetPtr, offse… in TestBreakIteratorSuppressions()
1153 …rk_next loc \"%s\", expected UBRK_DONE & expOffset -1, got %d and %d\n", itemPtr->locale, offset, … in TestBreakIteratorSuppressions()
1156 expOffsetStart = expOffsetPtr = itemPtr->expFwdOffsets; in TestBreakIteratorSuppressions()
1160 …err("FAIL: ubrk_following(%d) loc \"%s\", expected %d, got %d\n", start, itemPtr->locale, *expOffs… in TestBreakIteratorSuppressions()
[all …]
Dccaltst.c953 const TransitionItem * itemPtr; in TestAddRollExtensive() local
1115 for (itemPtr = transitionItems; itemPtr->zone != NULL; itemPtr++) { in TestAddRollExtensive()
1117 u_uastrcpy(tzID, itemPtr->zone); in TestAddRollExtensive()
1120 log_err("ucal_open failed for zone %s: %s\n", itemPtr->zone, u_errorName(status)); in TestAddRollExtensive()
1123 … ucal_setDateTime(cal, itemPtr->year, itemPtr->month, itemPtr->day, itemPtr->hour, 0, 0, &status); in TestAddRollExtensive()
1127 …log_err("ucal_add failed adding day across transition for zone %s: %s\n", itemPtr->zone, u_errorNa… in TestAddRollExtensive()
1128 } else if ( hr != itemPtr->hour ) { in TestAddRollExtensive()
1129 …al_add produced wrong hour %d when adding day across transition for zone %s\n", hr, itemPtr->zone); in TestAddRollExtensive()
1134 …r("ucal_add failed subtracting day across transition for zone %s: %s\n", itemPtr->zone, u_errorNam… in TestAddRollExtensive()
1135 } else if ( hr != itemPtr->hour ) { in TestAddRollExtensive()
[all …]
Dcloctst.c1202 const DisplayNameBracketsItem * itemPtr = displayNameBracketsItems; in TestDisplayNameBrackets() local
1203 for (; itemPtr->displayLocale != NULL; itemPtr++) { in TestDisplayNameBrackets()
1211 (void) u_unescape(itemPtr->regionName, expectRegionName, kDisplayNameBracketsMax); in TestDisplayNameBrackets()
1212 (void) u_unescape(itemPtr->localeName, expectLocaleName, kDisplayNameBracketsMax); in TestDisplayNameBrackets()
1215 …ulen = uloc_getDisplayCountry(itemPtr->namedLocale, itemPtr->displayLocale, getName, kDisplayNameB… in TestDisplayNameBrackets()
1217 … and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->name… in TestDisplayNameBrackets()
1221 …ulen = uloc_getDisplayName(itemPtr->namedLocale, itemPtr->displayLocale, getName, kDisplayNameBrac… in TestDisplayNameBrackets()
1223 … and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->name… in TestDisplayNameBrackets()
1228 uldn = uldn_open(itemPtr->displayLocale, ULDN_STANDARD_NAMES, &status); in TestDisplayNameBrackets()
1231 …ulen = uldn_regionDisplayName(uldn, itemPtr->namedRegion, getName, kDisplayNameBracketsMax, &statu… in TestDisplayNameBrackets()
[all …]
Dcldrtest.c1383 const TestDelimitersItem* itemPtr = testDelimsItems; in TestDelimiters() local
1384 for (; itemPtr->locale != NULL; itemPtr++) { in TestDelimiters()
1386 ULocaleData *uld = ulocdata_open(itemPtr->locale, &status); in TestDelimiters()
1388 … log_data_err("ulocdata_open for locale %s fails: %s\n", itemPtr->locale, u_errorName(status)); in TestDelimiters()
1394 …ta_getDelimiter ULOCDATA_QUOTATION_START/END for locale %s fails: %s\n", itemPtr->locale, u_errorN… in TestDelimiters()
1395 …} else if (u_strcmp(quoteStart,itemPtr->quoteStart)!=0 || u_strcmp(quoteEnd,itemPtr->quoteEnd)!=0)… in TestDelimiters()
1397 u_austrcpy(expStart, itemPtr->quoteStart); in TestDelimiters()
1398 u_austrcpy(expEnd, itemPtr->quoteEnd); in TestDelimiters()
1402 itemPtr->locale, expStart, expEnd, getStart, getEnd); in TestDelimiters()
Dcdattst.c1954 const PatternCharToFieldsItem* itemPtr; in TestMapDateToCalFields() local
1955 for ( itemPtr=patCharToFieldsItems; itemPtr->patternChar!=(UChar)0; itemPtr++) { in TestMapDateToCalFields()
1956 UCalendarDateFields calField = udat_toCalendarDateField(itemPtr->dateField); in TestMapDateToCalFields()
1957 if (calField != itemPtr->calField) { in TestMapDateToCalFields()
1959 itemPtr->patternChar, itemPtr->dateField, itemPtr->calField, calField); in TestMapDateToCalFields()
Dcmsccoll.c5806 const LongUpperStrItem * itemPtr; in TestCaseLevelBufferOverflow() local
5808 for ( itemPtr = longUpperStrItems; itemPtr->longUpperStrPtr != NULL; itemPtr++ ) { in TestCaseLevelBufferOverflow()
5810 if (itemPtr > longUpperStrItems) { in TestCaseLevelBufferOverflow()
5813 …sortKeyLen = ucol_getSortKey(ucol, itemPtr->longUpperStrPtr, itemPtr->longUpperStrLen, sortKeyA, k… in TestCaseLevelBufferOverflow()
5818 if ( itemPtr > longUpperStrItems ) { in TestCaseLevelBufferOverflow()
/third_party/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp3942 const NumAsStringItem * itemPtr; in TestNumberAsStringParsing() local
3943 for (itemPtr = items; itemPtr->localeStr != NULL; itemPtr++ ) { in TestNumberAsStringParsing()
3944 Locale locale = Locale::createFromName(itemPtr->localeStr); in TestNumberAsStringParsing()
3946 SimpleDateFormat formatter(itemPtr->datePattern, locale, status); in TestNumberAsStringParsing()
3952 formatter.setLenient(itemPtr->lenient); in TestNumberAsStringParsing()
3953 …tribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->lenient, status).setBooleanAttribute(UDAT_PARSE_ALLO… in TestNumberAsStringParsing()
3954 UDate date1 = formatter.parse(itemPtr->dateString, status); in TestNumberAsStringParsing()
3956 if (!itemPtr->expectFail) { in TestNumberAsStringParsing()
3957 …rr when expected success: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", lenient " + itemPt… in TestNumberAsStringParsing()
3958 …": using pattern \"" + itemPtr->datePattern + "\", could not parse \"" + itemPtr->dateString + "\"… in TestNumberAsStringParsing()
[all …]
Ddtfmrgts.cpp1652 const TestDateFormatLeniencyItem * itemPtr; in TestT10619() local
1653 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { in TestT10619()
1655 Locale locale = Locale::createFromName(itemPtr->locale); in TestT10619()
1658 SimpleDateFormat * sdmft = new SimpleDateFormat(itemPtr->pattern, locale, status); in TestT10619()
1663 logln("parsing " + itemPtr->parseString); in TestT10619()
1664 sdmft->setLenient(itemPtr->leniency); in TestT10619()
1665 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status); in TestT10619()
1666 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status); in TestT10619()
1667 sdmft->setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestT10619()
1668 sdmft->parse(itemPtr->parseString, pos); in TestT10619()
[all …]
Dnumfmtst.cpp7801 const SignsAndMarksItem * itemPtr; in TestParseSignsAndMarks() local
7802 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { in TestParseSignsAndMarks()
7804 NumberFormat *numfmt = NumberFormat::createInstance(Locale(itemPtr->locale), status); in TestParseSignsAndMarks()
7806 numfmt->setLenient(itemPtr->lenient); in TestParseSignsAndMarks()
7809 numfmt->parse(itemPtr->numString, fmtobj, ppos); in TestParseSignsAndMarks()
7810 if (ppos.getIndex() == itemPtr->numString.length()) { in TestParseSignsAndMarks()
7812 if (U_FAILURE(status) || parsedValue != itemPtr->value) { in TestParseSignsAndMarks()
7813 …rrln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse… in TestParseSignsAndMarks()
7816 …rrln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse… in TestParseSignsAndMarks()
7819 …dataerrln("FAIL: NumberFormat::createInstance for locale % gives error %s", itemPtr->locale, u_err… in TestParseSignsAndMarks()