Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

124         UnicodeString buffer;
141 logln(UnicodeString(" -> ") /* + << dec*/ + toString(result) + UnicodeString("[supposed output for result]"));
153 const UnicodeString formats[] = {"0.0<=Arg<1.0",
158 UnicodeString toAppendTo;
170 UnicodeString result;
172 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. ";
210 UnicodeString buffer;
252 UnicodeString testCases[] = {
264 UnicodeString testResultPatterns[] = {
276 UnicodeString testResultStrings[] = {
294 UnicodeString buffer;
298 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n");
302 errln(UnicodeString("TestMessageFormat::PatternTest failed test #2, i = ") + i);
304 errln(((UnicodeString)" Orig: ") + testCases[i]);
305 errln(((UnicodeString)" Exp: ") + testResultPatterns[i]);
306 errln(((UnicodeString)" Got: ") + buffer);
310 UnicodeString result;
322 logln(UnicodeString(" Result: ") + result );
323 logln(UnicodeString(" Expected: ") + testResultStrings[i] );
339 logln(UnicodeString("MessageFormat failed test #5 with error code ")+(int32_t)success);
346 errln(((UnicodeString)"MSG testargs[") + j + "]: " + toString(testArgs[j]));
347 errln(((UnicodeString)"MSG values[") + j + "] : " + toString(values[j]));
361 UnicodeString buffer1, buffer2;
369 UnicodeString abc("abc");
370 UnicodeString def("def");
389 UnicodeString result;
399 logln(UnicodeString("TestMessageFormat::testStaticFormat failed test #1 with error code ")+(int32_t)err);
403 const UnicodeString expected(
407 logln( UnicodeString(" Result: ") + result );
408 logln( UnicodeString(" Expected: ") + expected );
425 UnicodeString result;
438 const UnicodeString expected(
442 errln( UnicodeString(" Result: ") + result );
443 errln( UnicodeString(" Expected: ") + expected );
461 UnicodeString string;
465 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #1 - ") + u_errorName(err));
473 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #2")+string + " - " + u_errorName(err));
480 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #3")+string + " - " + u_errorName(err));
494 UnicodeString filepart[] = {"no files","one file","{0,number} files"};
500 UnicodeString string;
533 UnicodeString t1("{0, plural, one{C''est # fichier} other{Ce sont # fichiers}} dans la liste.");
534 UnicodeString t2("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
535 UnicodeString t3("There {0, plural, one{is # zavod}few{are {0, number,###.0} zavoda} other{are # zavodov}} in the directory.");
536 UnicodeString t4("There {argument, plural, one{is # zavod}few{are {argument, number,###.0} zavoda} other{are #zavodov}} in the directory.");
537 UnicodeString t5("{0, plural, one {{0, number,C''''est #,##0.0# fichier}} other {Ce sont # fichiers}} dans la liste.");
541 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
546 UnicodeString numResult1;
550 UnicodeString argName[] = {UnicodeString("argument")};
551 UnicodeString argNameResult;
555 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
561 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
563 if ( numResult1 != UnicodeString("C\'est 0 fichier dans la liste.")) {
565 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
582 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #2 with error code ")+(int32_t)err);
588 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
590 if ( numResult1 != UnicodeString("There are 4,0 zavoda in the directory.")) {
592 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
603 logln(UnicodeString("TestMessageFormat::test nested PluralFormat with error code ")+(int32_t)err);
613 if ( argNameResult!= UnicodeString("C'est 0,0 fichier dans la liste.")) {
614 errln(UnicodeString("TestMessageFormat::test nested named PluralFormat."));
615 logln(UnicodeString("The unexpected nested named PluralFormat."));
622 UnicodeString expected ,char* errMsg)
624 UnicodeString result;
635 UnicodeString err = UnicodeString(errMsg);
636 err+= UnicodeString(":Unexpected Result \n Expected: " + expected + "\n Obtained: " + result + "\n");
642 UnicodeString pattern ,Locale locale ,UErrorCode &status , char* errMsg)
648 logln(UnicodeString("TestMessageFormat::testMsgFormatSelect #1 with error code ")+(int32_t)status);
660 UnicodeString t1("{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
671 UnicodeString exp[] = {
683 UnicodeString t2("{0} est {1, select, female {all\\u00E9e c''est} other {all\\u00E9 c''est}} \\u00E0 Paris.");
693 UnicodeString exp[] = {
705 UnicodeString t3("{0, select , male {MALE FR company} female {FEMALE FR company} other {FR otherValue}} published new books.");
715 UnicodeString exp[] = {
728 UnicodeString t4("{0} est {1, select, female {{2,number,integer} all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
737 UnicodeString exp[] = {
750 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.");
761 UnicodeString exp[] = {
775 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.");
798 UnicodeString exp[] = {
955 UnicodeString result;
957 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
958 UnicodeString formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}.";
961 //UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of $456.83.";
962 UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of ";
967 //UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of 456,83 DM.";
968 UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of ";
1040 UnicodeString result;
1042 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
1043 UnicodeString formatStr = "On {0,date}, it began.";
1044 UnicodeString compareStr = "On Aug 8, 1997, it began.";
1089 UnicodeString msgFormatString = "{0} =sep= {1}";
1091 UnicodeString source = "abc =sep= def";
1092 UnicodeString tmp1, tmp2;
1165 UnicodeString formatStr("{0,date},{1},{2,number}", "");
1166 UnicodeString formatStrChange("{0,number},{1,number},{2,date}", "");
1178 UnicodeString patCmp;
1179 UnicodeString patAct;
1366 UnicodeString formatStr("Hello World on {0,date,full}", "");
1367 UnicodeString resultStr(" ", "");
1368 UnicodeString result;
1410 const UnicodeString pattern =
1440 UnicodeString expected =
1448 UnicodeString result;
1453 errln((UnicodeString)"FAIL: Got " + result +
1465 UnicodeString values[] = {
1472 UnicodeString formats[] = {
1492 logln((UnicodeString)"Testing format pattern: '" + formats[i] + "'");
1498 errln((UnicodeString)"Failed to parse test argument " + values[j]);
1501 UnicodeString result;
1503 logln((UnicodeString)"value: " + toString(args[0]) + " --> " + result + UnicodeString(" ec: ") + u_errorName(ec));
1509 errln((UnicodeString)"parse returned " + count + " args");
1511 errln((UnicodeString)"parsed argument " + toString(parseResult[0]) + " != " + toString(args[0]));
1543 UnicodeString result = MessageFormat::autoQuoteApostrophe(patterns[i], status);
1544 UnicodeString target(patterns[i+1]);
1561 UnicodeString testformat("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
1571 const UnicodeString formats[] = {"0.0<=Arg<1.0",