Lines Matching refs:DATA
407 const char* DATA[] = { in TestRuleBasedInverse() local
416 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestRuleBasedInverse()
429 expect(*fwd, DATA[i], DATA[i+1]); in TestRuleBasedInverse()
430 expect(*rev, DATA[i+1], DATA[i]); in TestRuleBasedInverse()
453 const char* DATA[] = { in TestKeyboard() local
464 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard()
485 const char* DATA[] = { in TestKeyboard2() local
499 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard2()
513 const char* DATA[] = { in TestKeyboard3() local
533 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard3()
538 const char* DATA[], int32_t DATA_length) { in keyboardAux() argument
544 if (DATA[i] != 0) { in keyboardAux()
546 + DATA[i] in keyboardAux()
548 t.transliterate(s, index, DATA[i], status); in keyboardAux()
563 if (s == DATA[i+1] && U_SUCCESS(status)) { in keyboardAux()
566 errln(UnicodeString("FAIL: ") + log + ", expected " + DATA[i+1]); in keyboardAux()
746 const UnicodeString DATA[] = { in TestPatternQuoting() local
753 logln(UnicodeString("Pattern: ") + prettify(DATA[i])); in TestPatternQuoting()
756 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestPatternQuoting()
760 expect(*t, DATA[i+1], DATA[i+2]); in TestPatternQuoting()
880 struct { UBool containsErrors; const char* rule; } DATA[] = { in TestJ329() local
884 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestJ329()
890 DATA[i].rule, in TestJ329()
895 UnicodeString desc(DATA[i].rule); in TestJ329()
903 if (gotError == DATA[i].containsErrors) { in TestJ329()
918 UnicodeString DATA[] = { in TestSegments() local
928 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestSegments()
931 logln("Pattern: " + prettify(DATA[i])); in TestSegments()
934 …Transliterator *t = Transliterator::createFromRules("ID", DATA[i], UTRANS_FORWARD, parseError, sta… in TestSegments()
938 expect(*t, DATA[i+1], DATA[i+2]); in TestSegments()
950 UnicodeString DATA[] = { in TestCursorOffset() local
960 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestCursorOffset()
963 logln("Pattern: " + prettify(DATA[i])); in TestCursorOffset()
966 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestCursorOffset()
970 expect(*t, DATA[i+1], DATA[i+2]); in TestCursorOffset()
983 UnicodeString DATA[] = { in TestArbitraryVariableValues() local
1001 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestArbitraryVariableValues()
1004 logln("Pattern: " + prettify(DATA[i])); in TestArbitraryVariableValues()
1007 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestArbitraryVariableValues()
1011 expect(*t, DATA[i+1], DATA[i+2]); in TestArbitraryVariableValues()
1024 const char* DATA[] = { in TestPositionHandling() local
1046 int32_t n = UPRV_LENGTHOF(DATA) / 3; in TestPositionHandling()
1051 DATA[3*i], UTRANS_FORWARD, parseError, status); in TestPositionHandling()
1062 UnicodeString rsource(DATA[3*i+1]); in TestPositionHandling()
1070 expectAux(DATA[3*i], in TestPositionHandling()
1071 DATA[3*i+1], in TestPositionHandling()
1073 DATA[3*i+2]); in TestPositionHandling()
1095 const char* DATA[] = { in TestHiraganaKatakana() local
1104 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHiraganaKatakana()
1107 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHiraganaKatakana()
1108 UnicodeString k = CharsToUnicodeString(DATA[i+2]); in TestHiraganaKatakana()
1109 switch (*DATA[i]) { in TestHiraganaKatakana()
1180 const char* DATA[] = { in TestFilterIDs() local
1196 enum { DATA_length = UPRV_LENGTHOF(DATA) }; in TestFilterIDs()
1199 UnicodeString ID(DATA[i], ""); in TestFilterIDs()
1200 UnicodeString uID(DATA[i+1], ""); in TestFilterIDs()
1201 UnicodeString data2(DATA[i+2], ""); in TestFilterIDs()
1202 UnicodeString data3(DATA[i+3], ""); in TestFilterIDs()
1314 const char* DATA[] = { in TestLiberalizedID() local
1320 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLiberalizedID()
1324 … Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, parseError, status); in TestLiberalizedID()
1326 dataerrln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1327 " cannot create ID \"" + DATA[i] + "\" - " + u_errorName(status)); in TestLiberalizedID()
1330 if (DATA[i+1]) { in TestLiberalizedID()
1331 exp = UnicodeString(DATA[i+1], ""); in TestLiberalizedID()
1336 logln(UnicodeString("Ok: ") + DATA[i+2] + in TestLiberalizedID()
1337 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1340 errln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1341 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1353 const char* DATA[] = { in TestCreateInstance() local
1370 for (int32_t i=0; DATA[i]; i+=3) { in TestCreateInstance()
1373 UnicodeString id(DATA[i]); in TestCreateInstance()
1374 UTransDirection dir = (DATA[i+1]==FORWARD)? in TestCreateInstance()
1376 UnicodeString expID(DATA[i+2]); in TestCreateInstance()
1389 id + "," + DATA[i+1] + ") => " + newID); in TestCreateInstance()
1392 id + "," + DATA[i+1] + ") => " + newID + in TestCreateInstance()
1752 static const char* DATA[] = { in TestToRules() local
1813 static const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestToRules()
1816 if (DATA[d] == RBT) { in TestToRules()
1821 … UnicodeString(DATA[d+1], -1, US_INV), UTRANS_FORWARD, parseError, status); in TestToRules()
1829 UnicodeString expRules = CharsToUnicodeString(DATA[d+2]); in TestToRules()
1830 UnicodeString expEscapedRules(DATA[d+2], -1, US_INV); in TestToRules()
1832 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1835 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1839 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1842 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1850 UnicodeString pat(DATA[d+1], -1, US_INV); in TestToRules()
1851 UnicodeString expToPat(DATA[d+2], -1, US_INV); in TestToRules()
2393 static const char* DATA[] = { in TestCompoundFilterID() local
2411 for (int32_t i=0; DATA[i]; i+=4) { in TestCompoundFilterID()
2412 UnicodeString id = CharsToUnicodeString(DATA[i]); in TestCompoundFilterID()
2413 UTransDirection direction = (DATA[i+1] != NULL && DATA[i+1][0] == 'R') ? in TestCompoundFilterID()
2417 if (DATA[i+2] != NULL) { in TestCompoundFilterID()
2418 source = CharsToUnicodeString(DATA[i+2]); in TestCompoundFilterID()
2419 exp = CharsToUnicodeString(DATA[i+3]); in TestCompoundFilterID()
2421 UBool expOk = (DATA[i+1] != NULL); in TestCompoundFilterID()
3007 const char* DATA[] = { in TestLocaleResource() local
3016 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLocaleResource()
3020 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, pe, ec); in TestLocaleResource()
3022 dataerrln((UnicodeString)"FAIL: createInstance(" + DATA[i] + ") - " + u_errorName(ec)); in TestLocaleResource()
3026 expect(*t, CharsToUnicodeString(DATA[i+1]), in TestLocaleResource()
3027 CharsToUnicodeString(DATA[i+2])); in TestLocaleResource()
3136 const char* DATA[] = { in TestIDForms() local
3156 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestIDForms()
3159 const char* ID = DATA[i]; in TestIDForms()
3160 const char* expID = DATA[i+1]; in TestIDForms()
3161 const char* expInvID = DATA[i+2]; in TestIDForms()
3354 static const char* DATA[] = { in TestDisplayName()
3369 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestDisplayName()
3375 Transliterator::getDisplayName(DATA[i], US, name); in TestDisplayName()
3376 if (name != DATA[i+1]) { in TestDisplayName()
3377 dataerrln((UnicodeString)"FAIL: " + DATA[i] + ".getDisplayName() => " + in TestDisplayName()
3378 name + ", expected " + DATA[i+1]); in TestDisplayName()
3380 logln((UnicodeString)"Ok: " + DATA[i] + ".getDisplayName() => " + name); in TestDisplayName()
3384 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_REVERSE, pe, ec); in TestDisplayName()
3391 if (name != DATA[i+2]) { in TestDisplayName()
3393 name + ", expected " + DATA[i+2]); in TestDisplayName()
4646 const char* DATA[] = { in TestHalfwidthFullwidth() local
4651 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHalfwidthFullwidth()
4654 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHalfwidthFullwidth()
4655 UnicodeString f = CharsToUnicodeString(DATA[i+2]); in TestHalfwidthFullwidth()
4656 switch (*DATA[i]) { in TestHalfwidthFullwidth()