Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

55     UnicodeString otherPattern = UnicodeString("other{#}");
56 UnicodeString message=UnicodeString("ERROR: PluralFormat basic test");
94 UnicodeString us = UnicodeString("");
148 pf->parseObject((UnicodeString)"",*f,*pp);
162 UnicodeString patternTestData[PLURAL_PATTERN_DATA] = {
168 UnicodeString patternOddTestResult[PLURAL_PATTERN_DATA] = {
174 UnicodeString patternEvenTestResult[PLURAL_PATTERN_DATA] = {
180 UnicodeString checkSyntaxtData[PLURAL_SYNTAX_DATA] = {
194 UnicodeString oddAndEvenRule = UNICODE_STRING_SIMPLE("odd: n mod 2 is 1");
225 UnicodeString message=UnicodeString("ERROR: PluralFormat tests various pattern ...");
241 numberFormatTest(&plFmt, numFmt, 1, 10, (UnicodeString *)&patternOddTestResult[i],
242 (UnicodeString *)&patternEvenTestResult[i], overwrite[i], &message);
281 UnicodeString one = UNICODE_STRING_SIMPLE("one");
282 UnicodeString notOne = UNICODE_STRING_SIMPLE("not one");
283 UnicodeString plResult, numResult;
293 errln("Wrong ruleset loaded by setLocale() - got:"+plResult+ UnicodeString(" expecting:")+numResult);
323 UnicodeString testPattern = UNICODE_STRING_SIMPLE("other{other}");
533 UnicodeString plResult = plFmt.format(0.0, status); // retrun ONE
563 UnicodeString fmtString(fmt, -1, US_INV);
574 UnicodeString result = pf.format(i, status);
579 UnicodeString expected(targets[i], -1, US_INV);
581 UnicodeString message("PluralFormat.format(): Expected '", -1, US_INV);
583 message.append(UnicodeString("' but got '", -1, US_INV));
595 UnicodeString message("MessageFormat.format(): Expected '", -1, US_INV);
597 message.append(UnicodeString("' but got '", -1, US_INV));
618 UnicodeString fmt(failures[i], -1, US_INV);
629 UnicodeString pattern("one{#st file}two{#nd file}few{#rd file}other{#th file}");
634 UnicodeString result = pf.format((int32_t)321, errorCode);
637 errln(UnicodeString("PluralFormat.format(321) wrong result string: ") + result);
642 errln(UnicodeString("PluralFormat.format(22) wrong result string: ") + result);
647 errln(UnicodeString("PluralFormat.format(3) wrong result string: ") + result);
659 errln(UnicodeString("PluralFormat.format(456) wrong result string: ") + result);
664 errln(UnicodeString("PluralFormat.format(111) wrong result string: ") + result);
690 UnicodeString *numOddAppendStr,
691 UnicodeString *numEvenAppendStr,
693 UnicodeString *message) {
700 UnicodeString plResult, numResult ;
726 errln("ERROR: Unexpected plural format - got:"+plResult+ UnicodeString(" expecting:")+numResult);
729 errln( *message+UnicodeString(" got:")+plResult+UnicodeString(" expecting:")+numResult);
740 UnicodeString& testPattern,
743 UnicodeString plResult;
744 const UnicodeString PLKeywordLookups[6] = {
759 dataerrln("Failed to apply pattern to locale:"+UnicodeString(localeArray[i]) + " - " + u_errorName(status));
768 UnicodeString(localeArray[i]));
772 errln("ERROR: Unexpected format result in locale: "+UnicodeString(localeArray[i])+
773 UnicodeString(" for value: ")+n+
774 UnicodeString(" got:")+plResult+
775 UnicodeString(" expecting:")+ PLKeywordLookups[expResults[n]]);