Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

133         UnicodeString buffer;
150 logln(UnicodeString(" -> ") /* + << dec*/ + toString(result) + UnicodeString("[supposed output for result]"));
162 const UnicodeString formats[] = {"0.0<=Arg<1.0",
167 UnicodeString toAppendTo;
179 UnicodeString result;
181 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. ";
214 UnicodeString buffer;
256 UnicodeString testCases[] = {
270 /*UnicodeString testResultPatterns[] = {
282 UnicodeString testResultStrings[] = {
300 UnicodeString buffer;
304 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n");
314 errln(UnicodeString("TestMessageFormat::PatternTest failed test #2, i = ") + i);
316 errln(((UnicodeString)" Orig: ") + testCases[i]);
317 errln(((UnicodeString)" Exp: ") + testCases[i]);
318 errln(((UnicodeString)" Got: ") + buffer);
322 UnicodeString result;
334 logln(UnicodeString(" Result: ") + result );
335 logln(UnicodeString(" Expected: ") + testResultStrings[i] );
351 logln(UnicodeString("MessageFormat failed test #5 with error code ")+(int32_t)success);
358 errln(((UnicodeString)"MSG testargs[") + j + "]: " + toString(testArgs[j]));
359 errln(((UnicodeString)"MSG values[") + j + "] : " + toString(values[j]));
373 UnicodeString buffer1, buffer2;
381 UnicodeString abc("abc");
382 UnicodeString def("def");
401 UnicodeString result;
411 logln(UnicodeString("TestMessageFormat::testStaticFormat failed test #1 with error code ")+(int32_t)err);
415 const UnicodeString expected(
419 logln( UnicodeString(" Result: ") + result );
420 logln( UnicodeString(" Expected: ") + expected );
437 UnicodeString result;
450 const UnicodeString expected(
454 errln( UnicodeString(" Result: ") + result );
455 errln( UnicodeString(" Expected: ") + expected );
473 UnicodeString string;
477 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #1 - ") + u_errorName(err));
485 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #2")+string + " - " + u_errorName(err));
492 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #3")+string + " - " + u_errorName(err));
506 UnicodeString filepart[] = {"no files","one file","{0,number} files"};
512 UnicodeString string;
545 UnicodeString t1("{0, plural, one{C''est # fichier} other{Ce sont # fichiers}} dans la liste.");
546 UnicodeString t2("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
547 UnicodeString t3("There {0, plural, one{is # zavod}few{are {0, number,###.0} zavoda} other{are # zavodov}} in the directory.");
548 UnicodeString t4("There {argument, plural, one{is # zavod}few{are {argument, number,###.0} zavoda} other{are #zavodov}} in the directory.");
549 UnicodeString t5("{0, plural, one {{0, number,C''est #,##0.0# fichier}} other {Ce sont # fichiers}} dans la liste.");
553 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
558 UnicodeString numResult1;
562 UnicodeString argName[] = {UnicodeString("argument")};
563 UnicodeString argNameResult;
567 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
573 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
575 if ( numResult1 != UnicodeString("C\'est 0 fichier dans la liste.")) {
577 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
594 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #2 with error code ")+(int32_t)err);
600 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
602 if ( numResult1 != UnicodeString("There are 4,0 zavoda in the directory.")) {
604 logln(UnicodeString("The results of argumentName and argumentIndex are not the same."));
615 logln(UnicodeString("TestMessageFormat::test nested PluralFormat with error code ")+(int32_t)err);
625 if ( argNameResult!= UnicodeString("C'est 0,0 fichier dans la liste.")) {
626 errln(UnicodeString("TestMessageFormat::test nested named PluralFormat: ") + argNameResult);
627 logln(UnicodeString("The unexpected nested named PluralFormat."));
642 UnicodeString expected = UNICODE_STRING_SIMPLE("abc_3#3{3'_def_sel}ect'_xyz");
651 UnicodeString expected, const char* errMsg)
653 UnicodeString result;
664 UnicodeString err = UnicodeString(errMsg);
665 err+= UnicodeString(":Unexpected Result \n Expected: " + expected + "\n Obtained: " + result + "\n");
671 UnicodeString pattern ,Locale locale ,UErrorCode &status , char* errMsg)
677 logln(UnicodeString("TestMessageFormat::testMsgFormatSelect #1 with error code ")+(int32_t)status);
689 UnicodeString t1("{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
700 UnicodeString exp[] = {
712 UnicodeString t2("{0} est {1, select, female {all\\u00E9e c''est} other {all\\u00E9 c''est}} \\u00E0 Paris.");
722 UnicodeString exp[] = {
734 UnicodeString t3("{0, select , male {MALE FR company} female {FEMALE FR company} other {FR otherValue}} published new books.");
744 UnicodeString exp[] = {
757 UnicodeString t4("{0} est {1, select, female {{2,number,integer} all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
767 UnicodeString exp[] = {
779 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.");
790 UnicodeString exp[] = {
804 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.");
827 UnicodeString exp[] = {
984 UnicodeString result;
986 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
987 UnicodeString formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}.";
990 //UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of $456.83.";
991 UnicodeString compareStrEng = "At <time> on Aug 8, 1997, you made a deposit of ";
996 //UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of 456,83 DM.";
997 UnicodeString compareStrGer = "At <time> on 08.08.1997, you made a deposit of ";
1069 UnicodeString result;
1071 //UnicodeString formatStr = "At {1,time} on {1,date}, you made a {2} of {0,number,currency}.";
1072 UnicodeString formatStr = "On {0,date}, it began.";
1073 UnicodeString compareStr = "On Aug 8, 1997, it began.";
1118 UnicodeString msgFormatString = "{0} =sep= {1}";
1120 UnicodeString source = "abc =sep= def";
1121 UnicodeString tmp1, tmp2;
1194 UnicodeString formatStr("{0,date},{1},{2,number}", "");
1195 UnicodeString formatStrChange("{0,number},{1,number},{2,date}", "");
1211 UnicodeString patCmp;
1212 UnicodeString patAct;
1406 UnicodeString formatStr("Hello World on {0,date,full}", "");
1407 UnicodeString resultStr(" ", "");
1408 UnicodeString result;
1465 const UnicodeString pattern =
1495 UnicodeString expected =
1503 UnicodeString result;
1508 errln((UnicodeString)"FAIL: Got " + result +
1520 UnicodeString values[] = {
1527 UnicodeString formats[] = {
1547 logln((UnicodeString)"Testing format pattern: '" + formats[i] + "'");
1553 errln((UnicodeString)"Failed to parse test argument " + values[j]);
1556 UnicodeString result;
1558 logln((UnicodeString)"value: " + toString(args[0]) + " --> " + result + UnicodeString(" ec: ") + u_errorName(ec));
1563 errln((UnicodeString)"parse returned " + count + " args");
1565 errln((UnicodeString)"parsed argument " + toString(parseResult[0]) + " != " + toString(args[0]));
1575 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) {
1576 UnicodeString us(pattern.getPatternString());
1599 UnicodeString tuples[] = {
1612 UnicodeString& desired = tuples[i];
1613 UnicodeString& ado_pattern = tuples[i + 1];
1618 UnicodeString& adr_pattern = tuples[i + 2].isEmpty() ? ado_pattern : tuples[i + 2];
1631 UnicodeString pattern = "ab{0,choice,0#1'2''3'''4''''.}yz";
1648 UnicodeString buffer1, buffer2;
1710 UnicodeString result = MessageFormat::autoQuoteApostrophe(patterns[i], status);
1711 UnicodeString target(patterns[i+1]);
1728 UnicodeString testformat("{argument, plural, one{C''est # fichier} other {Ce sont # fichiers}} dans la liste.");
1738 const UnicodeString formats[] = {"0.0<=Arg<1.0",
1808 const UnicodeString *name;
1838 errln(UnicodeString("msgfmt.getFormatNames()[3] should be NULL but is: ") + *name);
1852 UnicodeString result;
1857 UnicodeString argName = UNICODE_STRING_SIMPLE("_oOo_");
1877 UnicodeString result;
1904 UnicodeString result;
1973 UnicodeString result;
1983 UnicodeString argNames[3] = { "a", "aa", "aaa" };