Lines Matching refs:itemPtr
1066 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()
1097 …u_errorName(itemPtr->parsCurrExpectErr), itemPtr->parsCurrExpectPos, itemPtr->parsCurrExpectVal, i… in TestParseCurrency()
1102 …err("unexpected error in unum_open UNUM_CURRENCY for locale %s: '%s'\n", itemPtr->locale, u_errorN… in TestParseCurrency()
1105 if (itemPtr->plurStr != NULL) { in TestParseCurrency()
1107 unum = unum_open(UNUM_CURRENCY_PLURAL, NULL, 0, itemPtr->locale, NULL, &status); in TestParseCurrency()
1111 parseVal = unum_parseDouble(unum, itemPtr->plurStr, -1, &parsePos, &status); in TestParseCurrency()
1112 … if (status != itemPtr->parsDoubExpectErr || parseVal != itemPtr->parsDoubExpectVal) { in TestParseCurrency()
1114 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
1115 u_errorName(itemPtr->parsDoubExpectErr), itemPtr->parsDoubExpectVal, in TestParseCurrency()
1121 … parseVal = unum_parseDoubleCurrency(unum, itemPtr->plurStr, -1, &parsePos, parseCurr, &status); in TestParseCurrency()
1123 … if (status != itemPtr->parsCurrExpectErr || parseVal != itemPtr->parsCurrExpectVal || in TestParseCurrency()
1124 strncmp(parseCurrB, itemPtr->parsCurrExpectCurr, 4) != 0) { in TestParseCurrency()
1126 itemPtr->locale, itemPtr->descrip, in TestParseCurrency()
1127 … u_errorName(itemPtr->parsCurrExpectErr), itemPtr->parsCurrExpectVal, itemPtr->parsCurrExpectCurr, in TestParseCurrency()
1132 …expected error in unum_open UNUM_CURRENCY_PLURAL for locale %s: '%s'\n", itemPtr->locale, u_errorN… in TestParseCurrency()
2400 const NumSysTestItem * itemPtr; in TestUNumberingSystem() local
2406 for (itemPtr = numSysTestItems; itemPtr->locale != NULL; itemPtr++) { in TestUNumberingSystem()
2408 unumsys = unumsys_open(itemPtr->locale, &status); in TestUNumberingSystem()
2414 …if ( uprv_strcmp(numsys, itemPtr->numsys) != 0 || radix != itemPtr->radix || !isAlgorithmic != !it… in TestUNumberingSystem()
2416 …itemPtr->locale, itemPtr->numsys, itemPtr->radix, itemPtr->isAlgorithmic, numsys, radix, isAlgorit… in TestUNumberingSystem()
2420 if ( U_FAILURE(status) || u_strcmp(ubuf, itemPtr->description) != 0 ) { in TestUNumberingSystem()
2425 …log_data_err("unumsys_open for locale %s fails with status %s\n", itemPtr->locale, myErrorName(sta… in TestUNumberingSystem()
2570 const TestContextItem* itemPtr; in TestContext() local
2589 for (itemPtr = tcItems; itemPtr->locale != NULL; itemPtr++) { in TestContext()
2594 unum = unum_open(itemPtr->style, NULL, 0, itemPtr->locale, NULL, &status); in TestContext()
2597 itemPtr->locale, (int)itemPtr->style, myErrorName(status)); in TestContext()
2600 unum_setContext(unum, itemPtr->context, &status); in TestContext()
2604 … itemPtr->locale, (int)itemPtr->style, (int)itemPtr->context, myErrorName(status)); in TestContext()
2607 int32_t ulenExp = u_unescape(itemPtr->expectedResult, ubufExpected, kUBufMax); in TestContext()
2612 itemPtr->locale, (int)itemPtr->style, (int)itemPtr->context, ulenExp, in TestContext()
2613 itemPtr->expectedResult, ulenRes, bbuf); in TestContext()
3027 const FormatForFieldsItem * itemPtr; in TestFormatForFields() local
3028 for (itemPtr = fffItems; itemPtr->locale != NULL; itemPtr++) { in TestFormatForFields()
3031 unum = (itemPtr->style == UNUM_PATTERN_DECIMAL)? in TestFormatForFields()
3032 unum_open(itemPtr->style, patNoFields, -1, itemPtr->locale, NULL, &status): in TestFormatForFields()
3033 unum_open(itemPtr->style, NULL, 0, itemPtr->locale, NULL, &status); in TestFormatForFields()
3035 … for locale %s, style %d: status %s (Are you missing data?)\n", itemPtr->locale, itemPtr->style, u… in TestFormatForFields()
3038 …int32_t ulen = unum_formatDoubleForFields(unum, itemPtr->value, ubuf, kUBufSize, fpositer, &status… in TestFormatForFields()
3040 …matDoubleForFields fails for locale %s, style %d: status %s\n", itemPtr->locale, itemPtr->style, u… in TestFormatForFields()
3044 for (fptr = itemPtr->expectedFields; TRUE; fptr++) { in TestFormatForFields()
3049 …itemPtr->locale, aescstrdup(ubuf, ulen), fptr->field, fptr->beginPos, fptr->endPos, field, beginPo… in TestFormatForFields()
3052 … itemPtr->locale, aescstrdup(ubuf, ulen), field, beginPos, endPos); in TestFormatForFields()