Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

130         UnicodeString buffer;
147 logln(UnicodeString(" -> ") /* + << dec*/ + toString(result) + UnicodeString("[supposed output for result]"));
159 const UnicodeString formats[] = {"0.0<=Arg<1.0",
164 UnicodeString toAppendTo;
176 UnicodeString result;
178 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. ";
211 UnicodeString buffer;
253 UnicodeString testCases[] = {
267 /*UnicodeString testResultPatterns[] = {
279 UnicodeString testResultStrings[] = {
297 UnicodeString buffer;
301 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n");
311 errln(UnicodeString("TestMessageFormat::PatternTest failed test #2, i = ") + i);
313 errln(((UnicodeString)" Orig: ") + testCases[i]);
314 errln(((UnicodeString)" Exp: ") + testCases[i]);
315 errln(((UnicodeString)" Got: ") + buffer);
319 UnicodeString result;
331 logln(UnicodeString(" Result: ") + result );
332 logln(UnicodeString(" Expected: ") + testResultStrings[i] );
348 logln(UnicodeString("MessageFormat failed test #5 with error code ")+(int32_t)success);
355 errln(((UnicodeString)"MSG testargs[") + j + "]: " + toString(testArgs[j]));
356 errln(((UnicodeString)"MSG values[") + j + "] : " + toString(values[j]));
370 UnicodeString buffer1, buffer2;
378 UnicodeString abc("abc");
379 UnicodeString def("def");
398 UnicodeString result;
408 logln(UnicodeString("TestMessageFormat::testStaticFormat failed test #1 with error code ")+(int32_t)err);
412 const UnicodeString expected(
416 logln( UnicodeString(" Result: ") + result );
417 logln( UnicodeString(" Expected: ") + expected );
434 UnicodeString result;
447 const UnicodeString expected(
451 errln( UnicodeString(" Result: ") + result );
452 errln( UnicodeString(" Expected: ") + expected );
470 UnicodeString string;
474 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #1 - ") + u_errorName(err));
482 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #2")+string + " - " + u_errorName(err));
489 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #3")+string + " - " + u_errorName(err));
503 UnicodeString filepart[] = {"no files","one file","{0,number} files"};
509 UnicodeString string;
542 UnicodeString t1("{0, plural, one{C''est # fichier} other{Ce sont # fichiers}} dans la liste.");
543 UnicodeString t2("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
544 UnicodeString t3("There {0, plural, one{is # zavod}few{are {0, number,###.0} zavoda} other{are # zavodov}} in the directory.");
545 UnicodeString t4("There {argument, plural, one{is # zavod}few{are {argument, number,###.0} zavoda} other{are #zavodov}} in the directory.");
546 UnicodeString t5("{0, plural, one {{0, number,C''est #,##0.0# fichier}} other {Ce sont # fichiers}} dans la liste.");
550 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
555 UnicodeString numResult1;
559 UnicodeString argName[] = {UnicodeString("argument")};
560 UnicodeString argNameResult;
564 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
570 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
572 if ( numResult1 != UnicodeString("C\'est 0 fichier dans la liste.")) {
574 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
591 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #2 with error code ")+(int32_t)err);
597 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
599 if ( numResult1 != UnicodeString("There are 4,0 zavoda in the directory.")) {
601 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
612 logln(UnicodeString("TestMessageFormat::test nested PluralFormat with error code ")+(int32_t)err);
622 if ( argNameResult!= UnicodeString("C'est 0,0 fichier dans la liste.")) {
623 errln(UnicodeString("TestMessageFormat::test nested named PluralFormat: ") + argNameResult);
624 logln(UnicodeString("The unexpected nested named PluralFormat."));
639 UnicodeString expected = UNICODE_STRING_SIMPLE("abc_3#3{3'_def_sel}ect'_xyz");
648 UnicodeString expected, const char* errMsg)
650 UnicodeString result;
661 UnicodeString err = UnicodeString(errMsg);
662 err+= UnicodeString(":Unexpected Result \n Expected: " + expected + "\n Obtained: " + result + "\n");
668 UnicodeString pattern ,Locale locale ,UErrorCode &status , char* errMsg)
674 logln(UnicodeString("TestMessageFormat::testMsgFormatSelect #1 with error code ")+(int32_t)status);
686 UnicodeString t1("{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
697 UnicodeString exp[] = {
709 UnicodeString t2("{0} est {1, select, female {all\\u00E9e c''est} other {all\\u00E9 c''est}} \\u00E0 Paris.");
719 UnicodeString exp[] = {
731 UnicodeString t3("{0, select , male {MALE FR company} female {FEMALE FR company} other {FR otherValue}} published new books.");
741 UnicodeString exp[] = {
754 UnicodeString t4("{0} est {1, select, female {{2,number,integer} all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
764 UnicodeString exp[] = {
776 UnicodeString t5("{0} {1, plural, one {est {2, select, female {all\\u00E9e} other {all\\u00E9}}} other {sont {2, select, female {all\\u00E9es} other {all\\u00E9s}}}} \\u00E0 Paris.");
787 UnicodeString exp[] = {
801 UnicodeString t6("{0} und {1, select, female {{2, plural, one {{3, select, female {ihre Freundin} other {ihr Freund}} } other {ihre {2, number, integer} {3, select, female {Freundinnen} other {Freunde}} } }} other{{2, plural, one {{3, select, female {seine Freundin} other {sein Freund}}} other {seine {2, number, integer} {3, select, female {Freundinnen} other {Freunde}}}}} } gingen nach Paris.");
824 UnicodeString exp[] = {
981 UnicodeString result;
983 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
984 UnicodeString formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}.";
987 //UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of $456.83.";
988 UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of ";
993 //UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of 456,83 DM.";
994 UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of ";
1066 UnicodeString result;
1068 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
1069 UnicodeString formatStr = "On {0,date}, it began.";
1070 UnicodeString compareStr = "On Aug 8, 1997, it began.";
1115 UnicodeString msgFormatString = "{0} =sep= {1}";
1117 UnicodeString source = "abc =sep= def";
1118 UnicodeString tmp1, tmp2;
1191 UnicodeString formatStr("{0,date},{1},{2,number}", "");
1192 UnicodeString formatStrChange("{0,number},{1,number},{2,date}", "");
1208 UnicodeString patCmp;
1209 UnicodeString patAct;
1403 UnicodeString formatStr("Hello World on {0,date,full}", "");
1404 UnicodeString resultStr(" ", "");
1405 UnicodeString result;
1462 const UnicodeString pattern =
1492 UnicodeString expected =
1500 UnicodeString result;
1505 errln((UnicodeString)"FAIL: Got " + result +
1517 UnicodeString values[] = {
1524 UnicodeString formats[] = {
1544 logln((UnicodeString)"Testing format pattern: '" + formats[i] + "'");
1550 errln((UnicodeString)"Failed to parse test argument " + values[j]);
1553 UnicodeString result;
1555 logln((UnicodeString)"value: " + toString(args[0]) + " --> " + result + UnicodeString(" ec: ") + u_errorName(ec));
1560 errln((UnicodeString)"parse returned " + count + " args");
1562 errln((UnicodeString)"parsed argument " + toString(parseResult[0]) + " != " + toString(args[0]));
1572 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) {
1573 UnicodeString us(pattern.getPatternString());
1596 UnicodeString tuples[] = {
1609 UnicodeString& desired = tuples[i];
1610 UnicodeString& ado_pattern = tuples[i + 1];
1615 UnicodeString& adr_pattern = tuples[i + 2].isEmpty() ? ado_pattern : tuples[i + 2];
1628 UnicodeString pattern = "ab{0,choice,0#1'2''3'''4''''.}yz";
1645 UnicodeString buffer1, buffer2;
1707 UnicodeString result = MessageFormat::autoQuoteApostrophe(patterns[i], status);
1708 UnicodeString target(patterns[i+1]);
1725 UnicodeString testformat("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
1735 const UnicodeString formats[] = {"0.0<=Arg<1.0",
1805 const UnicodeString *name;
1835 errln(UnicodeString("msgfmt.getFormatNames()[3] should be NULL but is: ") + *name);
1849 UnicodeString result;
1854 UnicodeString argName = UNICODE_STRING_SIMPLE("_oOo_");
1874 UnicodeString result;
1901 UnicodeString result;