Lines Matching refs:UnicodeString
155 errln("FAIL: " #test " was not true. " + UnicodeString(print) ); \
157 logln("PASS: asserted " #test "-> " + UnicodeString(print)); \
161 #define test_dumpLocale(l) { logln(#l " = " + UnicodeString(l.getName(), "")); }
238 UnicodeString temp;
249 logln("Testing " + (UnicodeString)testLocale.getName() + "...");
296 if (temp != UnicodeString("x-klingon") )
300 if (temp != UnicodeString("Latn") )
304 if (temp != UnicodeString("ZX") )
308 //if (temp != UnicodeString("SPECIAL") )
311 if (temp != UnicodeString("") )
417 UnicodeString temp;
434 if (UnicodeString(temp2) != dataTable[LCID][i])
435 errln((UnicodeString)" LCID mismatch: " + temp2 + " versus "
440 errln((UnicodeString)"Some error on number " + i + u_errorName(err));
477 UnicodeString s;
495 * Locale::getDisplayLanguage(UnicodeString &) and
496 * Locale::getDisplayCountry(UnicodeString &)
621 POSIXLocale(const UnicodeString& l)
640 POSIXLocale test2(UnicodeString("ab_AB"));
644 POSIXLocale test5(UnicodeString("ab_AB_Antares"));
685 logln(UnicodeString("Number of locales returned = ") + locCount);
686 UnicodeString temp;
701 UnicodeString testValue;
705 logln(UnicodeString("oldDirectory = ") + oldDirectory);
735 UnicodeString temp;
747 UnicodeString testLang;
748 UnicodeString testScript;
749 UnicodeString testCtry;
750 UnicodeString testVar;
751 UnicodeString testName;
759 UnicodeString expectedLang;
760 UnicodeString expectedScript;
761 UnicodeString expectedCtry;
762 UnicodeString expectedVar;
763 UnicodeString expectedName;
786 dataerrln("Display language (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testLang + " expected " + expectedLang);
788 dataerrln("Display script (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testScript + " expected " + expectedScript);
790 dataerrln("Display country (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testCtry + " expected " + expectedCtry);
792 dataerrln("Display variant (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testVar + " expected " + expectedVar);
794 dataerrln("Display name (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testName + " expected " + expectedName);
807 dataTable = new UnicodeString*[33];
810 dataTable[i] = new UnicodeString[8];
836 errln("getISO3Language() on xx_YY returned " + UnicodeString(result) + " instead of \"\"");
841 errln("getISO3Country() on xx_YY returned " + UnicodeString(result) + " instead of \"\"");
879 errln("Couldn't find " + (UnicodeString)spotCheck1[i] + " in language list.");
883 UnicodeString testee(test[i],"");
884 UnicodeString lc(test[i],"");
894 UnicodeString spotCheck2 [] = { "US", "CA", "GB", "FR", "DE",
908 UnicodeString testee(test[j],"");
913 UnicodeString testee(test[j],"");
919 UnicodeString testee(test[i],"");
920 UnicodeString uc(test[i],"");
941 UnicodeString languageNames [] = { "Hebrew", "Indonesian", "Inuktitut", "Uighur", "Yiddish",
945 UnicodeString test;
949 dataerrln("Got wrong display name for " + UnicodeString(languageCodes[i]) + ": Expected \"" +
972 UnicodeString test;
976 errln("Got wrong ISO3 code for " + UnicodeString(iso2Languages[i]) + ": Expected \"" +
977 iso3Languages[i] + "\", got \"" + test + "\"." + UnicodeString(u_errorName(err)));
988 UnicodeString test(l.getISO3Country(), "");
990 errln("Got wrong ISO3 code for " + UnicodeString(iso2Countries[i]) + ": Expected \"" +
991 UnicodeString(iso3Countries[i]) + "\", got \"" + test + "\"." + u_errorName(err));
1014 UnicodeString englishDisplayNames [] = { "German (Canada)",
1023 UnicodeString frenchDisplayNames []= { "allemand (Canada)",
1032 UnicodeString spanishDisplayNames [] = {
1044 UnicodeString invDisplayNames [] = { "German (Canada)",
1059 UnicodeString name;
1071 UnicodeString name;
1080 UnicodeString name;
1089 UnicodeString name;
1118 UnicodeString temp;
1122 dataerrln("Couldn't get th_TH currency -> " + UnicodeString(u_errorName(status)));
1125 if (thaiCurrency->getPositivePrefix(temp) != UnicodeString(&posPrefix, 1, 1))
1150 const UnicodeString EURO_CURRENCY(&euro, 1, 1); // Look for this UnicodeString in formatted Euro currency
1179 UnicodeString temp;
1183 UnicodeString temp;
1185 UnicodeString pos;
1193 UnicodeString neg;
1210 UnicodeString dollarStr("USD", ""), euroStr("EUR", ""), genericStr((UChar)0x00a4), resultStr;
1279 errln("Fail: Locale.getName(), got:" + UnicodeString(name) + ", expected: " + DATA_S[i]);
1282 logln("Pass: Locale.getName(), got:" + UnicodeString(name) );
1312 dataerrln(UnicodeString("Could not create SimpleDateFormat object for locale hu. Error: ") + UnicodeString(u_errorName(status)));
1315 UnicodeString str;
1328 logln(UnicodeString("An error is produce in buddhist calendar."));
1330 logln(UnicodeString("String is: ") + str );
1378 UnicodeString temp;
1387 errln("ERROR: getISO3Country() returns: " + UnicodeString(result,"") +
1399 UnicodeString temp;
1408 errln("ERROR: getISO3Language() returns: " + UnicodeString(result,"") +
1423 UnicodeString edn("Norwegian (Norway, B)");
1424 UnicodeString englishDisplayNames [] = {
1431 UnicodeString ndn("norsk (Norge, B");
1432 UnicodeString norwegianDisplayNames [] = {
1445 UnicodeString temp;
1462 UnicodeString dispName("English (United States, DE ANZA_CUPERTINO_CALIFORNIA_UNITED STATES_EARTH)");
1463 UnicodeString dispVar("DE ANZA_CUPERTINO_CALIFORNIA_UNITED STATES_EARTH");
1465 UnicodeString got;
1537 UnicodeString result;
1540 UnicodeString temp;
1542 errln(UnicodeString("Percent for ") + LOC[i].getDisplayName(temp) + " should be 100%, got " + result);
1603 const UnicodeString *keywordString;
1633 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) {
1634 err("Expected to get keyword UnicodeString %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
2199 UnicodeString tempStr, resultStr;