Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dcrelativedateformattest.c166 const RelDateTimeFormatTestItem *itemPtr; in TestRelDateFmt() local
168 for (itemPtr = fmtTestItems; itemPtr->locale != NULL; itemPtr++) { in TestRelDateFmt()
174 if (itemPtr->decPlaces >= 0) { in TestRelDateFmt()
175 nfToAdopt = unum_open(UNUM_DECIMAL, NULL, 0, itemPtr->locale, NULL, &status); in TestRelDateFmt()
177 …log_data_err("FAIL: unum_open(UNUM_DECIMAL, ...) for locale %s: %s\n", itemPtr->locale, myErrorNam… in TestRelDateFmt()
180 unum_setAttribute(nfToAdopt, UNUM_MIN_FRACTION_DIGITS, itemPtr->decPlaces); in TestRelDateFmt()
181 unum_setAttribute(nfToAdopt, UNUM_MAX_FRACTION_DIGITS, itemPtr->decPlaces); in TestRelDateFmt()
184 …reldatefmt = ureldatefmt_open(itemPtr->locale, nfToAdopt, itemPtr->width, itemPtr->capContext, &st… in TestRelDateFmt()
187itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
196 …if (itemPtr->unit >= UDAT_REL_UNIT_SUNDAY && offsets[iOffset] != -1.0 && offsets[iOffset] != 0.0 &… in TestRelDateFmt()
[all …]
Dcpluralrulestest.c197 const KeywordsForLang* itemPtr = getKeywordsItems; in TestGetKeywords() local
198 for (; itemPtr->locale != NULL; itemPtr++) { in TestGetKeywords()
211 for (i = 0; i < kNumKeywords && itemPtr->keywords[i] != NULL; i++) { in TestGetKeywords()
212 iKnown = getKeywordIndex(itemPtr->keywords[i]); in TestGetKeywords()
218 uplrules = uplrules_openForType(itemPtr->locale, UPLURAL_TYPE_CARDINAL, &status); in TestGetKeywords()
220 …"FAIL: uplrules_openForType for locale %s, UPLURAL_TYPE_CARDINAL: %s\n", itemPtr->locale, myErrorN… in TestGetKeywords()
225 … log_err("FAIL: uplrules_getKeywords for locale %s: %s\n", itemPtr->locale, myErrorName(status) ); in TestGetKeywords()
232 …og_err("FAIL: uplrules_getKeywords for locale %s, unknown keyword %s\n", itemPtr->locale, keyword … in TestGetKeywords()
239 …("FAIL: uplrules_getKeywords for locale %s, got too many keywords %d\n", itemPtr->locale, keywordC… in TestGetKeywords()
244 " got { %d %d %d %d %d %d }\n", itemPtr->locale, in TestGetKeywords()
Dcnumtst.c1066 const ParseCurrencyItem * itemPtr; in TestParseCurrency() local
1067 for (itemPtr = parseCurrencyItems; itemPtr->locale != NULL; ++itemPtr) { in TestParseCurrency()
1076 unum = unum_open(UNUM_CURRENCY, NULL, 0, itemPtr->locale, NULL, &status); in TestParseCurrency()
1078 const UChar * currStr = itemPtr->currStr; in TestParseCurrency()
1082 …if (status != itemPtr->parsDoubExpectErr || parsePos != itemPtr->parsDoubExpectPos || parseVal != in TestParseCurrency()
1084 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
1085 … u_errorName(itemPtr->parsDoubExpectErr), itemPtr->parsDoubExpectPos, itemPtr->parsDoubExpectVal, in TestParseCurrency()
1093 …if (status != itemPtr->parsCurrExpectErr || parsePos != itemPtr->parsCurrExpectPos || parseVal != in TestParseCurrency()
1094 strncmp(parseCurrB, itemPtr->parsCurrExpectCurr, 4) != 0) { in TestParseCurrency()
1096 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
[all …]
Dcbiapts.c1038 const TestBISuppressionsItem * itemPtr; in TestBreakIteratorSuppressions() local
1040 for (itemPtr = testBISuppressionsItems; itemPtr->locale != NULL; itemPtr++) { in TestBreakIteratorSuppressions()
1042 int32_t textULen = u_unescape(itemPtr->text, textU, kTextULenMax); in TestBreakIteratorSuppressions()
1044 UBreakIterator *bi = ubrk_open(UBRK_SENTENCE, itemPtr->locale, textU, textULen, &status); in TestBreakIteratorSuppressions()
1045 log_verbose("#%d: %s\n", (itemPtr-testBISuppressionsItems), itemPtr->locale); in TestBreakIteratorSuppressions()
1051 expOffsetStart = expOffsetPtr = itemPtr->expFwdOffsets; in TestBreakIteratorSuppressions()
1055 …log_err("FAIL: ubrk_next loc \"%s\", expected %d, got %d\n", itemPtr->locale, *expOffsetPtr, offse… in TestBreakIteratorSuppressions()
1059 …rk_next loc \"%s\", expected UBRK_DONE & expOffset -1, got %d and %d\n", itemPtr->locale, offset, … in TestBreakIteratorSuppressions()
1062 expOffsetStart = expOffsetPtr = itemPtr->expFwdOffsets; in TestBreakIteratorSuppressions()
1066 …err("FAIL: ubrk_following(%d) loc \"%s\", expected %d, got %d\n", start, itemPtr->locale, *expOffs… in TestBreakIteratorSuppressions()
[all …]
Dccaltst.c922 const TransitionItem * itemPtr; in TestAddRollExtensive() local
1084 for (itemPtr = transitionItems; itemPtr->zone != NULL; itemPtr++) { in TestAddRollExtensive()
1086 u_uastrcpy(tzID, itemPtr->zone); in TestAddRollExtensive()
1089 log_err("ucal_open failed for zone %s: %s\n", itemPtr->zone, u_errorName(status)); in TestAddRollExtensive()
1092 … ucal_setDateTime(cal, itemPtr->year, itemPtr->month, itemPtr->day, itemPtr->hour, 0, 0, &status); in TestAddRollExtensive()
1096 …log_err("ucal_add failed adding day across transition for zone %s: %s\n", itemPtr->zone, u_errorNa… in TestAddRollExtensive()
1097 } else if ( hr != itemPtr->hour ) { in TestAddRollExtensive()
1098 …al_add produced wrong hour %d when adding day across transition for zone %s\n", hr, itemPtr->zone); in TestAddRollExtensive()
1103 …r("ucal_add failed subtracting day across transition for zone %s: %s\n", itemPtr->zone, u_errorNam… in TestAddRollExtensive()
1104 } else if ( hr != itemPtr->hour ) { in TestAddRollExtensive()
[all …]
Dcloctst.c1068 const DisplayNameBracketsItem * itemPtr = displayNameBracketsItems; in TestDisplayNameBrackets() local
1069 for (; itemPtr->displayLocale != NULL; itemPtr++) { in TestDisplayNameBrackets()
1077 (void) u_unescape(itemPtr->regionName, expectRegionName, kDisplayNameBracketsMax); in TestDisplayNameBrackets()
1078 (void) u_unescape(itemPtr->localeName, expectLocaleName, kDisplayNameBracketsMax); in TestDisplayNameBrackets()
1081 …ulen = uloc_getDisplayCountry(itemPtr->namedLocale, itemPtr->displayLocale, getName, kDisplayNameB… in TestDisplayNameBrackets()
1083 … and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->name… in TestDisplayNameBrackets()
1087 …ulen = uloc_getDisplayName(itemPtr->namedLocale, itemPtr->displayLocale, getName, kDisplayNameBrac… in TestDisplayNameBrackets()
1089 … and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->name… in TestDisplayNameBrackets()
1094 uldn = uldn_open(itemPtr->displayLocale, ULDN_STANDARD_NAMES, &status); in TestDisplayNameBrackets()
1097 …ulen = uldn_regionDisplayName(uldn, itemPtr->namedRegion, getName, kDisplayNameBracketsMax, &statu… in TestDisplayNameBrackets()
[all …]
Dcmsccoll.c5803 const LongUpperStrItem * itemPtr; in TestCaseLevelBufferOverflow() local
5805 for ( itemPtr = longUpperStrItems; itemPtr->longUpperStrPtr != NULL; itemPtr++ ) { in TestCaseLevelBufferOverflow()
5807 if (itemPtr > longUpperStrItems) { in TestCaseLevelBufferOverflow()
5810 …sortKeyLen = ucol_getSortKey(ucol, itemPtr->longUpperStrPtr, itemPtr->longUpperStrLen, sortKeyA, k… in TestCaseLevelBufferOverflow()
5815 if ( itemPtr > longUpperStrItems ) { in TestCaseLevelBufferOverflow()
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp3856 const NumAsStringItem * itemPtr; in TestNumberAsStringParsing() local
3857 for (itemPtr = items; itemPtr->localeStr != NULL; itemPtr++ ) { in TestNumberAsStringParsing()
3858 Locale locale = Locale::createFromName(itemPtr->localeStr); in TestNumberAsStringParsing()
3860 SimpleDateFormat *formatter = new SimpleDateFormat(itemPtr->datePattern, locale, status); in TestNumberAsStringParsing()
3866 formatter->setLenient(itemPtr->lenient); in TestNumberAsStringParsing()
3867 …tribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->lenient, status).setBooleanAttribute(UDAT_PARSE_ALLO… in TestNumberAsStringParsing()
3868 UDate date1 = formatter->parse(itemPtr->dateString, status); in TestNumberAsStringParsing()
3870 if (!itemPtr->expectFail) { in TestNumberAsStringParsing()
3871 …rr when expected success: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", lenient " + itemPt… in TestNumberAsStringParsing()
3872 …": using pattern \"" + itemPtr->datePattern + "\", could not parse \"" + itemPtr->dateString + "\"… in TestNumberAsStringParsing()
[all …]
Ddtfmrgts.cpp1628 const TestDateFormatLeniencyItem * itemPtr; in TestT10619() local
1629 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { in TestT10619()
1631 Locale locale = Locale::createFromName(itemPtr->locale); in TestT10619()
1634 SimpleDateFormat * sdmft = new SimpleDateFormat(itemPtr->pattern, locale, status); in TestT10619()
1639 logln("parsing " + itemPtr->parseString); in TestT10619()
1640 sdmft->setLenient(itemPtr->leniency); in TestT10619()
1641 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status); in TestT10619()
1642 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status); in TestT10619()
1643 sdmft->setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestT10619()
1644 sdmft->parse(itemPtr->parseString, pos); in TestT10619()
[all …]
Dnumfmtst.cpp7596 const SignsAndMarksItem * itemPtr; in TestParseSignsAndMarks() local
7597 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { in TestParseSignsAndMarks()
7599 NumberFormat *numfmt = NumberFormat::createInstance(Locale(itemPtr->locale), status); in TestParseSignsAndMarks()
7601 numfmt->setLenient(itemPtr->lenient); in TestParseSignsAndMarks()
7604 numfmt->parse(itemPtr->numString, fmtobj, ppos); in TestParseSignsAndMarks()
7605 if (ppos.getIndex() == itemPtr->numString.length()) { in TestParseSignsAndMarks()
7607 if (U_FAILURE(status) || parsedValue != itemPtr->value) { in TestParseSignsAndMarks()
7608 …rrln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse… in TestParseSignsAndMarks()
7611 …rrln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse… in TestParseSignsAndMarks()
7614 …dataerrln("FAIL: NumberFormat::createInstance for locale % gives error %s", itemPtr->locale, u_err… in TestParseSignsAndMarks()