Home
last modified time | relevance | path

Searched refs:testItemPtr (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dcdateintervalformattest.c99 const DateIntervalFormatTestItem * testItemPtr; in TestDateIntervalFormat() local
103 for ( testItemPtr = testItems; testItemPtr->locale != NULL; ++testItemPtr ) { in TestDateIntervalFormat()
108 const char * tzidForLog = (testItemPtr->tzid)? testItemPtr->tzid: "NULL"; in TestDateIntervalFormat()
111 u_unescape(testItemPtr->skeleton, skelBuf, kSkelBufLen); in TestDateIntervalFormat()
112 if ( testItemPtr->tzid ) { in TestDateIntervalFormat()
113 u_unescape(testItemPtr->tzid, tzidBuf, kTZIDBufLen); in TestDateIntervalFormat()
118 udtitvfmt = udtitvfmt_open(testItemPtr->locale, skelBuf, -1, tzidBuf, tzidLen, &status); in TestDateIntervalFormat()
123 udtitvfmt_setContext(udtitvfmt, testItemPtr->context, &status); in TestDateIntervalFormat()
126testItemPtr->locale, testItemPtr->skeleton, (unsigned)testItemPtr->context, myErrorName(status) ); in TestDateIntervalFormat()
131testItemPtr->locale, testItemPtr->skeleton, (unsigned)testItemPtr->context, myErrorName(status) ); in TestDateIntervalFormat()
[all …]
Dcpluralrulestest.c79 const PluralRulesTestItem * testItemPtr; in TestPluralRules() local
81 for ( testItemPtr = testItems; testItemPtr->locale != NULL; ++testItemPtr ) { in TestPluralRules()
83 UPluralRules* uplrules = uplrules_open(testItemPtr->locale, &status); in TestPluralRules()
88 …int32_t keywdLen = uplrules_select(uplrules, testItemPtr->number, keyword, kKeywordBufLen, &status… in TestPluralRules()
93 u_unescape(testItemPtr->keywordExpected, keywordExpected, kKeywordBufLen); in TestPluralRules()
97testItemPtr->locale, testItemPtr->number, testItemPtr->keywordExpected, u_austrcpy(bcharBuf,keywor… in TestPluralRules()
101 testItemPtr->locale, testItemPtr->number, myErrorName(status) ); in TestPluralRules()
105 … unumfmt = unum_open(UNUM_PATTERN_DECIMAL, twoDecimalPat, -1, testItemPtr->locale, NULL, &status); in TestPluralRules()
107 …keywdLen = uplrules_selectWithFormat(uplrules, testItemPtr->number, unumfmt, keyword, kKeywordBufL… in TestPluralRules()
112 … u_unescape(testItemPtr->keywordExpectedForDecimals, keywordExpected, kKeywordBufLen); in TestPluralRules()
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtifmtts.cpp1329 const DateIntervalContextItem* testItemPtr; in testContext() local
1330 for ( testItemPtr = testItems; testItemPtr->locale != nullptr; ++testItemPtr ) { in testContext()
1332 Locale locale(testItemPtr->locale); in testContext()
1333 UnicodeString skeleton(testItemPtr->skeleton, -1, US_INV); in testContext()
1337 testItemPtr->locale, testItemPtr->skeleton, u_errorName(status)); in testContext()
1342 fmt->setContext(testItemPtr->context, status); in testContext()
1345testItemPtr->locale, testItemPtr->skeleton, (unsigned)testItemPtr->context, u_errorName(status)); in testContext()
1350testItemPtr->locale, testItemPtr->skeleton, (unsigned)testItemPtr->context, u_errorName(status)); in testContext()
1351 } else if (getContext != testItemPtr->context) { in testContext()
1353testItemPtr->locale, testItemPtr->skeleton, (unsigned)testItemPtr->context, (unsigned)getContext); in testContext()
[all …]
Dcalregts.cpp2487 const CoptEthCalTestItem * testItemPtr; in TestT6745() local
2488 for (testItemPtr = coptEthCalTestItems; testItemPtr->fieldDelta != 0; ++testItemPtr) { in TestT6745()
2490 …cal->set( testItemPtr->startYear + testLocalePtr->yearOffset, testItemPtr->startMonth, testItemPtr in TestT6745()
2491 cal->add( testItemPtr->fieldToChange, testItemPtr->fieldDelta, status ); in TestT6745()
2494testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status)); in TestT6745()
2497 int32_t endYear = testItemPtr->endYear + testLocalePtr->yearOffset; in TestT6745()
2501 …if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr-… in TestT6745()
2503testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status) + in TestT6745()
2504 … ", expected " + endYear + "/" + testItemPtr->endMonth + "/" + testItemPtr->endDay + in TestT6745()