Lines Matching refs:testDataPtr
417 const DTPtnGenOptionsData * testDataPtr = testData; in TestOptions() local
419 for (; count-- > 0; ++testDataPtr) { in TestOptions()
421 UDateTimePatternGenerator * dtpgen = udatpg_open(testDataPtr->locale, &status); in TestOptions()
424 int32_t patLen = udatpg_getBestPatternWithOptions(dtpgen, testDataPtr->skel, -1, in TestOptions()
425 testDataPtr->options, pattern, in TestOptions()
427 … if ( U_FAILURE(status) || u_strncmp(pattern, testDataPtr->expectedPattern, patLen+1) != 0 ) { in TestOptions()
432 …testDataPtr->locale, u_austrncpy(skelBytes,testDataPtr->skel,kTestOptionsPatLenMax), testDataPtr->… in TestOptions()
433 … u_austrncpy(expectedPatternBytes,testDataPtr->expectedPattern,kTestOptionsPatLenMax), in TestOptions()
438 …OR udatpg_open failed for locale %s : %s - (Are you missing data?)\n", testDataPtr->locale, myErro… in TestOptions()
469 const FieldDisplayNameData * testDataPtr = testData; in TestGetFieldDisplayNames() local
470 for (; count-- > 0; ++testDataPtr) { in TestGetFieldDisplayNames()
472 UDateTimePatternGenerator * dtpgen = udatpg_open(testDataPtr->locale, &status); in TestGetFieldDisplayNames()
474 …OR udatpg_open failed for locale %s : %s - (Are you missing data?)\n", testDataPtr->locale, myErro… in TestGetFieldDisplayNames()
478 u_unescape(testDataPtr->expected, expName, kFieldDisplayNameMax); in TestGetFieldDisplayNames()
480 … int32_t getLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, testDataPtr->width, in TestGetFieldDisplayNames()
484 … testDataPtr->locale, testDataPtr->field, testDataPtr->width, u_errorName(status), getLen); in TestGetFieldDisplayNames()
489 testDataPtr->locale, testDataPtr->field, testDataPtr->width, in TestGetFieldDisplayNames()
492 } else if (testDataPtr->width == UDATPG_WIDE && getLen > 1) { in TestGetFieldDisplayNames()
496 … getNewLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, UDATPG_WIDE, NULL, 0, &status); in TestGetFieldDisplayNames()
499 …testDataPtr->locale, testDataPtr->field, testDataPtr->width, getLen, getNewLen, u_errorName(status… in TestGetFieldDisplayNames()
502 …getNewLen = udatpg_getFieldDisplayName(dtpgen, testDataPtr->field, UDATPG_WIDE, getName, getLen-1,… in TestGetFieldDisplayNames()
505 …testDataPtr->locale, testDataPtr->field, testDataPtr->width, getLen, getNewLen, u_errorName(status… in TestGetFieldDisplayNames()