• Home
  • Raw
  • Download

Lines Matching refs:DATA

405     const char* DATA[] = {  in TestRuleBasedInverse()  local
414 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestRuleBasedInverse()
427 expect(*fwd, DATA[i], DATA[i+1]); in TestRuleBasedInverse()
428 expect(*rev, DATA[i+1], DATA[i]); in TestRuleBasedInverse()
451 const char* DATA[] = { in TestKeyboard() local
462 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard()
483 const char* DATA[] = { in TestKeyboard2() local
497 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard2()
511 const char* DATA[] = { in TestKeyboard3() local
531 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard3()
536 const char* DATA[], int32_t DATA_length) { in keyboardAux() argument
542 if (DATA[i] != 0) { in keyboardAux()
544 + DATA[i] in keyboardAux()
546 t.transliterate(s, index, DATA[i], status); in keyboardAux()
561 if (s == DATA[i+1] && U_SUCCESS(status)) { in keyboardAux()
564 errln(UnicodeString("FAIL: ") + log + ", expected " + DATA[i+1]); in keyboardAux()
744 const UnicodeString DATA[] = { in TestPatternQuoting() local
751 logln(UnicodeString("Pattern: ") + prettify(DATA[i])); in TestPatternQuoting()
754 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestPatternQuoting()
758 expect(*t, DATA[i+1], DATA[i+2]); in TestPatternQuoting()
878 struct { UBool containsErrors; const char* rule; } DATA[] = { in TestJ329() local
882 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestJ329()
888 DATA[i].rule, in TestJ329()
893 UnicodeString desc(DATA[i].rule); in TestJ329()
901 if (gotError == DATA[i].containsErrors) { in TestJ329()
916 UnicodeString DATA[] = { in TestSegments() local
926 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestSegments()
929 logln("Pattern: " + prettify(DATA[i])); in TestSegments()
932 …Transliterator *t = Transliterator::createFromRules("ID", DATA[i], UTRANS_FORWARD, parseError, sta… in TestSegments()
936 expect(*t, DATA[i+1], DATA[i+2]); in TestSegments()
948 UnicodeString DATA[] = { in TestCursorOffset() local
958 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestCursorOffset()
961 logln("Pattern: " + prettify(DATA[i])); in TestCursorOffset()
964 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestCursorOffset()
968 expect(*t, DATA[i+1], DATA[i+2]); in TestCursorOffset()
981 UnicodeString DATA[] = { in TestArbitraryVariableValues() local
999 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestArbitraryVariableValues()
1002 logln("Pattern: " + prettify(DATA[i])); in TestArbitraryVariableValues()
1005 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestArbitraryVariableValues()
1009 expect(*t, DATA[i+1], DATA[i+2]); in TestArbitraryVariableValues()
1022 const char* DATA[] = { in TestPositionHandling() local
1044 int32_t n = UPRV_LENGTHOF(DATA) / 3; in TestPositionHandling()
1049 DATA[3*i], UTRANS_FORWARD, parseError, status); in TestPositionHandling()
1060 UnicodeString rsource(DATA[3*i+1]); in TestPositionHandling()
1068 expectAux(DATA[3*i], in TestPositionHandling()
1069 DATA[3*i+1], in TestPositionHandling()
1071 DATA[3*i+2]); in TestPositionHandling()
1093 const char* DATA[] = { in TestHiraganaKatakana() local
1102 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHiraganaKatakana()
1105 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHiraganaKatakana()
1106 UnicodeString k = CharsToUnicodeString(DATA[i+2]); in TestHiraganaKatakana()
1107 switch (*DATA[i]) { in TestHiraganaKatakana()
1178 const char* DATA[] = { in TestFilterIDs() local
1194 enum { DATA_length = UPRV_LENGTHOF(DATA) }; in TestFilterIDs()
1197 UnicodeString ID(DATA[i], ""); in TestFilterIDs()
1198 UnicodeString uID(DATA[i+1], ""); in TestFilterIDs()
1199 UnicodeString data2(DATA[i+2], ""); in TestFilterIDs()
1200 UnicodeString data3(DATA[i+3], ""); in TestFilterIDs()
1312 const char* DATA[] = { in TestLiberalizedID() local
1318 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLiberalizedID()
1322 … Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, parseError, status); in TestLiberalizedID()
1324 dataerrln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1325 " cannot create ID \"" + DATA[i] + "\" - " + u_errorName(status)); in TestLiberalizedID()
1328 if (DATA[i+1]) { in TestLiberalizedID()
1329 exp = UnicodeString(DATA[i+1], ""); in TestLiberalizedID()
1334 logln(UnicodeString("Ok: ") + DATA[i+2] + in TestLiberalizedID()
1335 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1338 errln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1339 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1351 const char* DATA[] = { in TestCreateInstance() local
1368 for (int32_t i=0; DATA[i]; i+=3) { in TestCreateInstance()
1371 UnicodeString id(DATA[i]); in TestCreateInstance()
1372 UTransDirection dir = (DATA[i+1]==FORWARD)? in TestCreateInstance()
1374 UnicodeString expID(DATA[i+2]); in TestCreateInstance()
1387 id + "," + DATA[i+1] + ") => " + newID); in TestCreateInstance()
1390 id + "," + DATA[i+1] + ") => " + newID + in TestCreateInstance()
1672 static const char* DATA[] = { in TestToRules() local
1733 static const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestToRules()
1736 if (DATA[d] == RBT) { in TestToRules()
1741 … UnicodeString(DATA[d+1], -1, US_INV), UTRANS_FORWARD, parseError, status); in TestToRules()
1749 UnicodeString expRules = CharsToUnicodeString(DATA[d+2]); in TestToRules()
1750 UnicodeString expEscapedRules(DATA[d+2], -1, US_INV); in TestToRules()
1752 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1755 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1759 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1762 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1770 UnicodeString pat(DATA[d+1], -1, US_INV); in TestToRules()
1771 UnicodeString expToPat(DATA[d+2], -1, US_INV); in TestToRules()
2313 static const char* DATA[] = { in TestCompoundFilterID() local
2331 for (int32_t i=0; DATA[i]; i+=4) { in TestCompoundFilterID()
2332 UnicodeString id = CharsToUnicodeString(DATA[i]); in TestCompoundFilterID()
2333 UTransDirection direction = (DATA[i+1] != NULL && DATA[i+1][0] == 'R') ? in TestCompoundFilterID()
2337 if (DATA[i+2] != NULL) { in TestCompoundFilterID()
2338 source = CharsToUnicodeString(DATA[i+2]); in TestCompoundFilterID()
2339 exp = CharsToUnicodeString(DATA[i+3]); in TestCompoundFilterID()
2341 UBool expOk = (DATA[i+1] != NULL); in TestCompoundFilterID()
2928 const char* DATA[] = { in TestLocaleResource() local
2937 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLocaleResource()
2941 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, pe, ec); in TestLocaleResource()
2943 dataerrln((UnicodeString)"FAIL: createInstance(" + DATA[i] + ") - " + u_errorName(ec)); in TestLocaleResource()
2947 expect(*t, CharsToUnicodeString(DATA[i+1]), in TestLocaleResource()
2948 CharsToUnicodeString(DATA[i+2])); in TestLocaleResource()
3057 const char* DATA[] = { in TestIDForms() local
3077 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestIDForms()
3080 const char* ID = DATA[i]; in TestIDForms()
3081 const char* expID = DATA[i+1]; in TestIDForms()
3082 const char* expInvID = DATA[i+2]; in TestIDForms()
3278 static const char* DATA[] = { in TestDisplayName()
3293 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestDisplayName()
3299 Transliterator::getDisplayName(DATA[i], US, name); in TestDisplayName()
3300 if (name != DATA[i+1]) { in TestDisplayName()
3301 dataerrln((UnicodeString)"FAIL: " + DATA[i] + ".getDisplayName() => " + in TestDisplayName()
3302 name + ", expected " + DATA[i+1]); in TestDisplayName()
3304 logln((UnicodeString)"Ok: " + DATA[i] + ".getDisplayName() => " + name); in TestDisplayName()
3308 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_REVERSE, pe, ec); in TestDisplayName()
3315 if (name != DATA[i+2]) { in TestDisplayName()
3317 name + ", expected " + DATA[i+2]); in TestDisplayName()
4568 const char* DATA[] = { in TestHalfwidthFullwidth() local
4573 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHalfwidthFullwidth()
4576 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHalfwidthFullwidth()
4577 UnicodeString f = CharsToUnicodeString(DATA[i+2]); in TestHalfwidthFullwidth()
4578 switch (*DATA[i]) { in TestHalfwidthFullwidth()