• Home
  • Raw
  • Download

Lines Matching refs:DATA

406     const char* DATA[] = {  in TestRuleBasedInverse()  local
415 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestRuleBasedInverse()
428 expect(*fwd, DATA[i], DATA[i+1]); in TestRuleBasedInverse()
429 expect(*rev, DATA[i+1], DATA[i]); in TestRuleBasedInverse()
452 const char* DATA[] = { in TestKeyboard() local
463 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard()
484 const char* DATA[] = { in TestKeyboard2() local
498 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard2()
512 const char* DATA[] = { in TestKeyboard3() local
532 keyboardAux(*t, DATA, UPRV_LENGTHOF(DATA)); in TestKeyboard3()
537 const char* DATA[], int32_t DATA_length) { in keyboardAux() argument
543 if (DATA[i] != 0) { in keyboardAux()
545 + DATA[i] in keyboardAux()
547 t.transliterate(s, index, DATA[i], status); in keyboardAux()
562 if (s == DATA[i+1] && U_SUCCESS(status)) { in keyboardAux()
565 errln(UnicodeString("FAIL: ") + log + ", expected " + DATA[i+1]); in keyboardAux()
745 const UnicodeString DATA[] = { in TestPatternQuoting() local
752 logln(UnicodeString("Pattern: ") + prettify(DATA[i])); in TestPatternQuoting()
755 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestPatternQuoting()
759 expect(*t, DATA[i+1], DATA[i+2]); in TestPatternQuoting()
879 struct { UBool containsErrors; const char* rule; } DATA[] = { in TestJ329() local
883 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestJ329()
889 DATA[i].rule, in TestJ329()
894 UnicodeString desc(DATA[i].rule); in TestJ329()
902 if (gotError == DATA[i].containsErrors) { in TestJ329()
917 UnicodeString DATA[] = { in TestSegments() local
927 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestSegments()
930 logln("Pattern: " + prettify(DATA[i])); in TestSegments()
933 …Transliterator *t = Transliterator::createFromRules("ID", DATA[i], UTRANS_FORWARD, parseError, sta… in TestSegments()
937 expect(*t, DATA[i+1], DATA[i+2]); in TestSegments()
949 UnicodeString DATA[] = { in TestCursorOffset() local
959 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestCursorOffset()
962 logln("Pattern: " + prettify(DATA[i])); in TestCursorOffset()
965 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestCursorOffset()
969 expect(*t, DATA[i+1], DATA[i+2]); in TestCursorOffset()
982 UnicodeString DATA[] = { in TestArbitraryVariableValues() local
1000 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestArbitraryVariableValues()
1003 logln("Pattern: " + prettify(DATA[i])); in TestArbitraryVariableValues()
1006 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestArbitraryVariableValues()
1010 expect(*t, DATA[i+1], DATA[i+2]); in TestArbitraryVariableValues()
1023 const char* DATA[] = { in TestPositionHandling() local
1045 int32_t n = UPRV_LENGTHOF(DATA) / 3; in TestPositionHandling()
1050 DATA[3*i], UTRANS_FORWARD, parseError, status); in TestPositionHandling()
1061 UnicodeString rsource(DATA[3*i+1]); in TestPositionHandling()
1069 expectAux(DATA[3*i], in TestPositionHandling()
1070 DATA[3*i+1], in TestPositionHandling()
1072 DATA[3*i+2]); in TestPositionHandling()
1094 const char* DATA[] = { in TestHiraganaKatakana() local
1103 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHiraganaKatakana()
1106 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHiraganaKatakana()
1107 UnicodeString k = CharsToUnicodeString(DATA[i+2]); in TestHiraganaKatakana()
1108 switch (*DATA[i]) { in TestHiraganaKatakana()
1179 const char* DATA[] = { in TestFilterIDs() local
1195 enum { DATA_length = UPRV_LENGTHOF(DATA) }; in TestFilterIDs()
1198 UnicodeString ID(DATA[i], ""); in TestFilterIDs()
1199 UnicodeString uID(DATA[i+1], ""); in TestFilterIDs()
1200 UnicodeString data2(DATA[i+2], ""); in TestFilterIDs()
1201 UnicodeString data3(DATA[i+3], ""); in TestFilterIDs()
1313 const char* DATA[] = { in TestLiberalizedID() local
1319 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLiberalizedID()
1323 … Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, parseError, status); in TestLiberalizedID()
1325 dataerrln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1326 " cannot create ID \"" + DATA[i] + "\" - " + u_errorName(status)); in TestLiberalizedID()
1329 if (DATA[i+1]) { in TestLiberalizedID()
1330 exp = UnicodeString(DATA[i+1], ""); in TestLiberalizedID()
1335 logln(UnicodeString("Ok: ") + DATA[i+2] + in TestLiberalizedID()
1336 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1339 errln(UnicodeString("FAIL: ") + DATA[i+2] + in TestLiberalizedID()
1340 " create ID \"" + DATA[i] + "\" => \"" + in TestLiberalizedID()
1352 const char* DATA[] = { in TestCreateInstance() local
1369 for (int32_t i=0; DATA[i]; i+=3) { in TestCreateInstance()
1372 UnicodeString id(DATA[i]); in TestCreateInstance()
1373 UTransDirection dir = (DATA[i+1]==FORWARD)? in TestCreateInstance()
1375 UnicodeString expID(DATA[i+2]); in TestCreateInstance()
1388 id + "," + DATA[i+1] + ") => " + newID); in TestCreateInstance()
1391 id + "," + DATA[i+1] + ") => " + newID + in TestCreateInstance()
1673 static const char* DATA[] = { in TestToRules() local
1734 static const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestToRules()
1737 if (DATA[d] == RBT) { in TestToRules()
1742 … UnicodeString(DATA[d+1], -1, US_INV), UTRANS_FORWARD, parseError, status); in TestToRules()
1750 UnicodeString expRules = CharsToUnicodeString(DATA[d+2]); in TestToRules()
1751 UnicodeString expEscapedRules(DATA[d+2], -1, US_INV); in TestToRules()
1753 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1756 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1760 logln((UnicodeString)"Ok: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1763 errln((UnicodeString)"FAIL: " + UnicodeString(DATA[d+1], -1, US_INV) + in TestToRules()
1771 UnicodeString pat(DATA[d+1], -1, US_INV); in TestToRules()
1772 UnicodeString expToPat(DATA[d+2], -1, US_INV); in TestToRules()
2314 static const char* DATA[] = { in TestCompoundFilterID() local
2332 for (int32_t i=0; DATA[i]; i+=4) { in TestCompoundFilterID()
2333 UnicodeString id = CharsToUnicodeString(DATA[i]); in TestCompoundFilterID()
2334 UTransDirection direction = (DATA[i+1] != NULL && DATA[i+1][0] == 'R') ? in TestCompoundFilterID()
2338 if (DATA[i+2] != NULL) { in TestCompoundFilterID()
2339 source = CharsToUnicodeString(DATA[i+2]); in TestCompoundFilterID()
2340 exp = CharsToUnicodeString(DATA[i+3]); in TestCompoundFilterID()
2342 UBool expOk = (DATA[i+1] != NULL); in TestCompoundFilterID()
2929 const char* DATA[] = { in TestLocaleResource() local
2938 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestLocaleResource()
2942 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, pe, ec); in TestLocaleResource()
2944 dataerrln((UnicodeString)"FAIL: createInstance(" + DATA[i] + ") - " + u_errorName(ec)); in TestLocaleResource()
2948 expect(*t, CharsToUnicodeString(DATA[i+1]), in TestLocaleResource()
2949 CharsToUnicodeString(DATA[i+2])); in TestLocaleResource()
3058 const char* DATA[] = { in TestIDForms() local
3078 const int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestIDForms()
3081 const char* ID = DATA[i]; in TestIDForms()
3082 const char* expID = DATA[i+1]; in TestIDForms()
3083 const char* expInvID = DATA[i+2]; in TestIDForms()
3279 static const char* DATA[] = { in TestDisplayName()
3294 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestDisplayName()
3300 Transliterator::getDisplayName(DATA[i], US, name); in TestDisplayName()
3301 if (name != DATA[i+1]) { in TestDisplayName()
3302 dataerrln((UnicodeString)"FAIL: " + DATA[i] + ".getDisplayName() => " + in TestDisplayName()
3303 name + ", expected " + DATA[i+1]); in TestDisplayName()
3305 logln((UnicodeString)"Ok: " + DATA[i] + ".getDisplayName() => " + name); in TestDisplayName()
3309 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_REVERSE, pe, ec); in TestDisplayName()
3316 if (name != DATA[i+2]) { in TestDisplayName()
3318 name + ", expected " + DATA[i+2]); in TestDisplayName()
4571 const char* DATA[] = { in TestHalfwidthFullwidth() local
4576 int32_t DATA_length = UPRV_LENGTHOF(DATA); in TestHalfwidthFullwidth()
4579 UnicodeString h = CharsToUnicodeString(DATA[i+1]); in TestHalfwidthFullwidth()
4580 UnicodeString f = CharsToUnicodeString(DATA[i+2]); in TestHalfwidthFullwidth()
4581 switch (*DATA[i]) { in TestHalfwidthFullwidth()