Lines Matching refs:testDataPtr
421 const DTPtnGenOptionsData * testDataPtr = testData; in TestOptions() local
423 for (; count-- > 0; ++testDataPtr) { in TestOptions()
425 UDateTimePatternGenerator * dtpgen = udatpg_open(testDataPtr->locale, &status); in TestOptions()
428 int32_t patLen = udatpg_getBestPatternWithOptions(dtpgen, testDataPtr->skel, -1, in TestOptions()
429 testDataPtr->options, pattern, in TestOptions()
431 … if ( U_FAILURE(status) || u_strncmp(pattern, testDataPtr->expectedPattern, patLen+1) != 0 ) { in TestOptions()
436 …testDataPtr->locale, u_austrncpy(skelBytes,testDataPtr->skel,kTestOptionsPatLenMax), testDataPtr->… in TestOptions()
437 … u_austrncpy(expectedPatternBytes,testDataPtr->expectedPattern,kTestOptionsPatLenMax), in TestOptions()
442 …OR udatpg_open failed for locale %s : %s - (Are you missing data?)\n", testDataPtr->locale, myErro… in TestOptions()
473 const FieldDisplayNameData * testDataPtr = testData; in TestGetFieldDisplayNames() local
474 for (; count-- > 0; ++testDataPtr) { in TestGetFieldDisplayNames()
476 UDateTimePatternGenerator * dtpgen = udatpg_open(testDataPtr->locale, &status); in TestGetFieldDisplayNames()
478 …OR udatpg_open failed for locale %s : %s - (Are you missing data?)\n", testDataPtr->locale, myErro… in TestGetFieldDisplayNames()
482 u_unescape(testDataPtr->expected, expName, kFieldDisplayNameMax); in TestGetFieldDisplayNames()
484 … int32_t getLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, testDataPtr->width, in TestGetFieldDisplayNames()
488 … testDataPtr->locale, testDataPtr->field, testDataPtr->width, u_errorName(status), getLen); in TestGetFieldDisplayNames()
493 testDataPtr->locale, testDataPtr->field, testDataPtr->width, in TestGetFieldDisplayNames()
496 } else if (testDataPtr->width == UDATPG_WIDE && getLen > 1) { in TestGetFieldDisplayNames()
500 … getNewLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, UDATPG_WIDE, NULL, 0, &status); in TestGetFieldDisplayNames()
503 …testDataPtr->locale, testDataPtr->field, testDataPtr->width, getLen, getNewLen, u_errorName(status… in TestGetFieldDisplayNames()
506 …getNewLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, UDATPG_WIDE, getName, getLen-1,… in TestGetFieldDisplayNames()
509 …testDataPtr->locale, testDataPtr->field, testDataPtr->width, getLen, getNewLen, u_errorName(status… in TestGetFieldDisplayNames()
540 const HourCycleData * testDataPtr = testData; in TestGetDefaultHourCycle() local
541 for (; count-- > 0; ++testDataPtr) { in TestGetDefaultHourCycle()
544 udatpg_open(testDataPtr->locale, &status); in TestGetDefaultHourCycle()
547 testDataPtr->locale, myErrorName(status)); in TestGetDefaultHourCycle()
550 if (U_FAILURE(status) || testDataPtr->expected != actual) { in TestGetDefaultHourCycle()
552 testDataPtr->locale, testDataPtr->expected, actual); in TestGetDefaultHourCycle()