Home | History | Annotate | Download | only in intltest

Lines Matching defs:DATA

107     digitList.set(StringPiece(formatValue.data()), status, 0);
2312 // Warning: HARD-CODED LOCALE DATA in this test. If it fails, CHECK
2313 // THE LOCALE DATA before diving into the code.
2629 const char* DATA[] = {
2635 for (int32_t i=0; DATA[i]; ++i) {
2636 const char* pat=DATA[i];
2737 loc = Locale::createFromName(CharString().appendInvariantChars(tok, ec).data());
2805 CharString().appendInvariantChars(mloc, ec).data()), ec);
3575 // the data are:
3577 const TestSpaceParsingItem DATA[] = {
3609 for (uint32_t i = 0; i < UPRV_LENGTHOF(DATA); ++i) {
3611 UnicodeString stringToBeParsed = ctou(DATA[i].stringToParse);
3612 int parsedPosition = DATA[i].parsedPos;
3613 int errorIndex = DATA[i].errorIndex;
3614 foo->setLenient(DATA[i].lenient);
3619 errln("FAILED parse " + stringToBeParsed + "; lenient: " + DATA[i].lenient + "; wrong position, expected: (" + parsedPosition + ", " + errorIndex + "); got (" + parsePosition.getIndex() + ", " + parsePosition.getErrorIndex() + ")");
3642 const TestNumberingSystemItem DATA[] = {
3662 for (item = DATA; item->localeName != NULL; item++) {
3720 const char* DATA[][6] = {
3743 for (uint32_t i=0; i<UPRV_LENGTHOF(DATA); ++i) {
3744 const char* locale = DATA[i][0];
3745 UnicodeString pat = ctou(DATA[i][1]);
3746 double numberToBeFormat = atof(DATA[i][2]);
3769 // DATA[i][3] is the currency format result using a
3771 // DATA[i][4] is the currency format result using
3773 // DATA[i][5] is the currency format result using
3775 // DATA[i][j+2] is the currency format result using
3777 UnicodeString currencyFormatResult = ctou(DATA[i][2+j]);
3783 // DATA[i][3] is the currency format result using a
3785 // DATA[i][4] is the currency format result using
3787 // DATA[i][5] is the currency format result using
3789 UnicodeString oneCurrencyFormat = ctou(DATA[i][k]);
3869 const char* DATA[][2] = {
3870 // the data are:
3879 for (uint32_t i = 0; i < UPRV_LENGTHOF(DATA); ++i) {
3880 UnicodeString stringToBeParsed = ctou(DATA[i][0]);
3881 double parsedResult = atof(DATA[i][1]);
3899 static const char* DATA[][6] = {
3900 // the data are:
3929 for (int32_t i=0; i<UPRV_LENGTHOF(DATA); ++i) {
3932 const char* localeString = DATA[i][0];
3933 double numberToBeFormat = atof(DATA[i][1]);
3934 const char* currencyISOCode = DATA[i][2];
3955 // DATA[i][resultDataIndex] is the currency format result
3957 UnicodeString formatResult = ctou(DATA[i][resultDataIndex]);
3963 // DATA[i][3] is the currency format result using
3965 // DATA[i][4] is the currency format result using
3967 // DATA[i][5] is the currency format result using
3969 UnicodeString oneCurrencyFormatResult = ctou(DATA[i][j]);
3994 static const char* DATA[][6] = {
3995 // the data are:
4037 for (uint32_t i=0; i< UPRV_LENGTHOF(DATA); ++i) { /* i = test case # - should be i=0*/
4040 const char* localeString = DATA[i][0];
4041 double numberToBeFormat = atof(DATA[i][1]);
4042 const char* currencyISOCode = DATA[i][2];
4068 // DATA[i][resultDataIndex] is the currency format result
4070 UnicodeString formatResult = ctou(DATA[i][resultDataIndex]);
4077 // DATA[i][3] is the currency format result using
4079 // DATA[i][4] is the currency format result using
4081 // DATA[i][5] is the currency format result using
4083 UnicodeString oneCurrencyFormatResult = ctou(DATA[i][j]);
4086 logln("parse(%s)", DATA[i][j]);
4094 "), Currency="+currencyISOCode+", parse("+DATA[i][j]+") returned error " + (UnicodeString)u_errorName(status)+". Testcase: data[" + i + "][" + currencyStyleNames[j-3] +"="+j+"]");
4114 const char* DATA[] = {
6658 for (uint32_t i=0; i<UPRV_LENGTHOF(DATA); ++i) {
6659 UnicodeString formatted = ctou(DATA[i]);
6912 //printf("%s\n", s.data());
7018 ASSERT_EQUALS(0, strcmp("0.0184", result.getDecimalNumber(status).data()));
7019 //std::cout << result.getDecimalNumber(status).data();
7040 ASSERT_EQUALS(0, strcmp("1.00220004440008888000007", result.getDecimalNumber(status).data()));
7042 //std::cout << result.getDecimalNumber(status).data();
7111 /* These could be subject to change if the CLDR data changes */
7493 assertEquals(fileLine + " decNumChars digits", decNumChars, fDecNum.data());
8803 Locale locale(localeId.data());