/external/icu/icu4c/source/test/cintltst/ |
H A D | crelativedateformattest.c | 144 const RelDateTimeFormatTestItem *itemPtr; local 146 for (itemPtr = fmtTestItems; itemPtr->locale != NULL; itemPtr++) { 152 if (itemPtr->decPlaces >= 0) { 153 nfToAdopt = unum_open(UNUM_DECIMAL, NULL, 0, itemPtr->locale, NULL, &status); 155 log_data_err("FAIL: unum_open(UNUM_DECIMAL, ...) for locale %s: %s\n", itemPtr->locale, myErrorName(status)); 158 unum_setAttribute(nfToAdopt, UNUM_MIN_FRACTION_DIGITS, itemPtr->decPlaces); 159 unum_setAttribute(nfToAdopt, UNUM_MAX_FRACTION_DIGITS, itemPtr->decPlaces); 162 reldatefmt = ureldatefmt_open(itemPtr 239 const CombineDateTimeTestItem *itemPtr; local [all...] |
H A D | cbiapts.c | 996 const TestBISuppressionsItem * itemPtr; local 998 for (itemPtr = testBISuppressionsItems; itemPtr->locale != NULL; itemPtr++) { 1000 int32_t textULen = u_unescape(itemPtr->text, textU, kTextULenMax); 1002 UBreakIterator *bi = ubrk_open(UBRK_SENTENCE, itemPtr->locale, textU, textULen, &status); 1003 log_verbose("#%d: %s\n", (itemPtr-testBISuppressionsItems), itemPtr->locale); 1009 expOffsetStart = expOffsetPtr = itemPtr->expFwdOffsets; 1013 log_err("FAIL: ubrk_next loc \"%s\", expected %d, got %d\n", itemPtr [all...] |
H A D | cnumtst.c | 1052 const ParseCurrencyItem * itemPtr; local 1053 for (itemPtr = parseCurrencyItems; itemPtr->locale != NULL; ++itemPtr) { 1062 unum = unum_open(UNUM_CURRENCY, NULL, 0, itemPtr->locale, NULL, &status); 1066 parseVal = unum_parseDouble(unum, itemPtr->currStr, -1, &parsePos, &status); 1067 if (status != itemPtr->parsDoubExpectErr || parsePos != itemPtr->parsDoubExpectPos || parseVal != itemPtr->parsDoubExpectVal) { 1069 itemPtr 2336 const NumSysTestItem * itemPtr; local 2506 const TestContextItem* itemPtr; local [all...] |
H A D | ccaltst.c | 922 const TransitionItem * itemPtr; local 1084 for (itemPtr = transitionItems; itemPtr->zone != NULL; itemPtr++) { 1086 u_uastrcpy(tzID, itemPtr->zone); 1089 log_err("ucal_open failed for zone %s: %s\n", itemPtr->zone, u_errorName(status)); 1092 ucal_setDateTime(cal, itemPtr->year, itemPtr->month, itemPtr->day, itemPtr 2319 const TZTransitionItem * itemPtr; local [all...] |
H A D | cloctst.c | 1063 const DisplayNameBracketsItem * itemPtr = displayNameBracketsItems; local 1064 for (; itemPtr->displayLocale != NULL; itemPtr++) { 1072 (void) u_unescape(itemPtr->regionName, expectRegionName, kDisplayNameBracketsMax); 1073 (void) u_unescape(itemPtr->localeName, expectLocaleName, kDisplayNameBracketsMax); 1076 ulen = uloc_getDisplayCountry(itemPtr->namedLocale, itemPtr->displayLocale, getName, kDisplayNameBracketsMax, &status); 1078 log_data_err("uloc_getDisplayCountry for displayLocale %s and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->namedLocale, myErrorName(status)); 1082 ulen = uloc_getDisplayName(itemPtr [all...] |
H A D | cmsccoll.c | 5806 const LongUpperStrItem * itemPtr; local 5808 for ( itemPtr = longUpperStrItems; itemPtr->longUpperStrPtr != NULL; itemPtr++ ) { 5810 if (itemPtr > longUpperStrItems) { 5813 sortKeyLen = ucol_getSortKey(ucol, itemPtr->longUpperStrPtr, itemPtr->longUpperStrLen, sortKeyA, kCollKeyLenMax); 5818 if ( itemPtr > longUpperStrItems ) {
|
/external/icu/icu4c/source/test/intltest/ |
H A D | dtfmttst.cpp | 3851 const NumAsStringItem * itemPtr; local 3852 for (itemPtr = items; itemPtr->localeStr != NULL; itemPtr++ ) { 3853 Locale locale = Locale::createFromName(itemPtr->localeStr); 3855 SimpleDateFormat *formatter = new SimpleDateFormat(itemPtr->datePattern, locale, status); 3861 formatter->setLenient(itemPtr->lenient); 3862 formatter->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->lenient, status).setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->lenient, status); 3863 UDate date1 = formatter->parse(itemPtr 4117 const MonthPatternItem * itemPtr; local 4208 const TestContextItem * itemPtr; local 4303 const TestNonGregoItem * itemPtr; local 4381 const TestFmtWithNumSysItem * itemPtr; local 4520 const TestDateFormatLeniencyItem * itemPtr; local 4618 const TestMultiPatternMatchItem * itemPtr; local [all...] |
H A D | dtfmrgts.cpp | 1627 const TestDateFormatLeniencyItem * itemPtr; local 1628 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { 1630 Locale locale = Locale::createFromName(itemPtr->locale); 1633 SimpleDateFormat * sdmft = new SimpleDateFormat(itemPtr->pattern, locale, status); 1638 logln("parsing " + itemPtr->parseString); 1639 sdmft->setLenient(itemPtr->leniency); 1640 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status); 1641 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr [all...] |
H A D | numfmtst.cpp | 7764 const SignsAndMarksItem * itemPtr; local 7765 for (itemPtr = items; itemPtr->locale != NULL; itemPtr++ ) { 7767 NumberFormat *numfmt = NumberFormat::createInstance(Locale(itemPtr->locale), status); 7769 numfmt->setLenient(itemPtr->lenient); 7772 numfmt->parse(itemPtr->numString, fmtobj, ppos); 7773 if (ppos.getIndex() == itemPtr->numString.length()) { 7775 if (U_FAILURE(status) || parsedValue != itemPtr->value) { 7776 errln((UnicodeString)"FAIL: locale " + itemPtr [all...] |