Lines Matching refs:itemPtr

166     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()
201 …ulenget = ureldatefmt_format(reldatefmt, offsets[iOffset], itemPtr->unit, ubufget, kUBufMax, &stat… in TestRelDateFmt()
204itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
205 offsets[iOffset], (int)itemPtr->unit, myErrorName(status) ); in TestRelDateFmt()
208 … int32_t ulenexp = u_unescape(itemPtr->expectedResults[iOffset*2], ubufexp, kUBufMax); in TestRelDateFmt()
213itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
214 … offsets[iOffset], (int)itemPtr->unit, itemPtr->expectedResults[iOffset*2], bbufget ); in TestRelDateFmt()
218 if (itemPtr->unit >= UDAT_REL_UNIT_SUNDAY) { in TestRelDateFmt()
223 …ulenget = ureldatefmt_formatNumeric(reldatefmt, offsets[iOffset], itemPtr->unit, ubufget, kUBufMax… in TestRelDateFmt()
226itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
227 offsets[iOffset], (int)itemPtr->unit, myErrorName(status) ); in TestRelDateFmt()
230 … int32_t ulenexp = u_unescape(itemPtr->expectedResults[iOffset*2 + 1], ubufexp, kUBufMax); in TestRelDateFmt()
235itemPtr->locale, itemPtr->decPlaces, (int)itemPtr->width, (int)itemPtr->capContext, in TestRelDateFmt()
236 … offsets[iOffset], (int)itemPtr->unit, itemPtr->expectedResults[iOffset*2 + 1], bbufget ); in TestRelDateFmt()
261 const CombineDateTimeTestItem *itemPtr; in TestCombineDateTime() local
263 for (itemPtr = combTestItems; itemPtr->locale != NULL; itemPtr++) { in TestCombineDateTime()
271 …reldatefmt = ureldatefmt_open(itemPtr->locale, NULL, itemPtr->width, itemPtr->capContext, &status); in TestCombineDateTime()
274itemPtr->locale, (int)itemPtr->width, (int)itemPtr->capContext, myErrorName(status) ); in TestCombineDateTime()
278 ulenreldate = u_unescape(itemPtr->relativeDateString, ubufreldate, kUBufMax); in TestCombineDateTime()
279 ulentime = u_unescape(itemPtr->timeString, ubuftime, kUBufMax); in TestCombineDateTime()
283itemPtr->locale, (int)itemPtr->width, (int)itemPtr->capContext, myErrorName(status) ); in TestCombineDateTime()
286 int32_t ulenexp = u_unescape(itemPtr->expectedResult, ubufexp, kUBufMax); in TestCombineDateTime()
291itemPtr->locale, (int)itemPtr->width, (int)itemPtr->capContext, itemPtr->expectedResult, bbufget ); in TestCombineDateTime()
299itemPtr->locale, (int)itemPtr->width, (int)itemPtr->capContext, myErrorName(status) ); in TestCombineDateTime()
302 int32_t ulenexp = u_unescape(itemPtr->expectedResult, ubufexp, kUBufMax); in TestCombineDateTime()
305itemPtr->locale, (int)itemPtr->width, (int)itemPtr->capContext, ulenexp, ulenget ); in TestCombineDateTime()