Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

57     UnicodeString otherPattern = UnicodeString("other{#}");
58 UnicodeString message=UnicodeString("ERROR: PluralFormat basic test");
96 UnicodeString us = UnicodeString("");
150 pf->parseObject((UnicodeString)"",*f,*pp);
164 UnicodeString patternTestData[PLURAL_PATTERN_DATA] = {
170 UnicodeString patternOddTestResult[PLURAL_PATTERN_DATA] = {
176 UnicodeString patternEvenTestResult[PLURAL_PATTERN_DATA] = {
182 UnicodeString checkSyntaxtData[PLURAL_SYNTAX_DATA] = {
196 UnicodeString oddAndEvenRule = UNICODE_STRING_SIMPLE("odd: n mod 2 is 1");
227 UnicodeString message=UnicodeString("ERROR: PluralFormat tests various pattern ...");
243 numberFormatTest(&plFmt, numFmt, 1, 10, (UnicodeString *)&patternOddTestResult[i],
244 (UnicodeString *)&patternEvenTestResult[i], overwrite[i], &message);
283 UnicodeString one = UNICODE_STRING_SIMPLE("one");
284 UnicodeString notOne = UNICODE_STRING_SIMPLE("not one");
285 UnicodeString plResult, numResult;
295 errln("Wrong ruleset loaded by setLocale() - got:"+plResult+ UnicodeString(" expecting:")+numResult);
325 UnicodeString testPattern = UNICODE_STRING_SIMPLE("other{other}");
535 UnicodeString plResult = plFmt.format(0.0, status); // retrun ONE
565 UnicodeString fmtString(fmt, -1, US_INV);
576 UnicodeString result = pf.format(i, status);
581 UnicodeString expected(targets[i], -1, US_INV);
583 UnicodeString message("PluralFormat.format(): Expected '", -1, US_INV);
585 message.append(UnicodeString("' but got '", -1, US_INV));
597 UnicodeString message("MessageFormat.format(): Expected '", -1, US_INV);
599 message.append(UnicodeString("' but got '", -1, US_INV));
620 UnicodeString fmt(failures[i], -1, US_INV);
631 UnicodeString pattern("one{#st file}two{#nd file}few{#rd file}other{#th file}");
636 UnicodeString result = pf.format((int32_t)321, errorCode);
639 errln(UnicodeString("PluralFormat.format(321) wrong result string: ") + result);
644 errln(UnicodeString("PluralFormat.format(22) wrong result string: ") + result);
649 errln(UnicodeString("PluralFormat.format(3) wrong result string: ") + result);
661 errln(UnicodeString("PluralFormat.format(456) wrong result string: ") + result);
666 errln(UnicodeString("PluralFormat.format(111) wrong result string: ") + result);
692 UnicodeString *numOddAppendStr,
693 UnicodeString *numEvenAppendStr,
695 UnicodeString *message) {
702 UnicodeString plResult, numResult ;
728 errln("ERROR: Unexpected plural format - got:"+plResult+ UnicodeString(" expecting:")+numResult);
731 errln( *message+UnicodeString(" got:")+plResult+UnicodeString(" expecting:")+numResult);
742 UnicodeString& testPattern,
745 UnicodeString plResult;
746 const UnicodeString PLKeywordLookups[6] = {
761 dataerrln("Failed to apply pattern to locale:"+UnicodeString(localeArray[i]) + " - " + u_errorName(status));
770 UnicodeString(localeArray[i]));
774 errln("ERROR: Unexpected format result in locale: "+UnicodeString(localeArray[i])+
775 UnicodeString(" for value: ")+n+
776 UnicodeString(" got:")+plResult+
777 UnicodeString(" expecting:")+ PLKeywordLookups[expResults[n]]);