Home | History | Annotate | Download | only in intltest

Lines Matching refs:plFmt

49     PluralFormat* plFmt[8];
68 plFmt[0] = new PluralFormat(status[0]);
69 plFmt[1] = new PluralFormat(*plRules, status[1]);
70 plFmt[2] = new PluralFormat(locale, status[2]);
71 plFmt[3] = new PluralFormat(locale, *plRules, status[3]);
72 plFmt[4] = new PluralFormat(otherPattern, status[4]);
73 plFmt[5] = new PluralFormat(*plRules, otherPattern, status[5]);
74 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]);
75 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]);
79 numberFormatTest(plFmt[i], numFmt, 1, 12, NULL, NULL, FALSE, &message);
80 numberFormatTest(plFmt[i], numFmt, 100, 112, NULL, NULL, FALSE, &message);
85 delete plFmt[i];
88 plFmt[0]= new PluralFormat(status[0]);
89 plFmt[0]->setNumberFormat(numFmt,status[0]);
91 plFmt[0]->toPattern(us);
92 plFmt[1]= new PluralFormat(locale, status[1]);
94 *plFmt[1] = *plFmt[0];
95 if (plFmt[1]!=NULL) {
96 if ( *plFmt[1] != *plFmt[0] ) {
104 delete plFmt[0];
107 plFmt[0]= new PluralFormat(locale, status[0]);
109 *plFmt[1] = *plFmt[0];
110 if (plFmt[1]!=NULL) {
111 if ( *plFmt[1] != *plFmt[0] ) {
121 plFmt[2] = (PluralFormat*) plFmt[1]->clone();
123 if (plFmt[1]!=NULL) {
124 if ( *plFmt[1] != *plFmt[2] ) {
128 delete plFmt[1];
129 delete plFmt[2];
135 delete plFmt[0];
200 PluralFormat plFmt=PluralFormat(*plRules, status);
205 plFmt.applyPattern(checkSyntaxtData[i], status);
225 PluralFormat plFmt=PluralFormat(*plRules, status);
230 plFmt.applyPattern(patternTestData[i], status);
235 numberFormatTest(&plFmt, numFmt, 1, 10, (UnicodeString *)&patternOddTestResult[i],
480 PluralFormat plFmt(ulocale, testPattern, status);
486 UnicodeString plResult = plFmt.format(0.0, status); // retrun ONE
487 plResult = plFmt.format(0.5, status); // retrun ONE
488 plResult = plFmt.format(1.0, status); // retrun ONE
489 plResult = plFmt.format(1.9, status); // retrun ONE
490 plResult = plFmt.format(2.0, status); // retrun OTHER
495 PluralFormatTest::numberFormatTest(PluralFormat* plFmt,
505 if ( (plFmt==NULL) || (numFmt==NULL) ) {
514 plResult = plFmt->format(i, status);
567 PluralFormat plFmt(ulocale, testPattern, status);
575 plResult = plFmt.format(n, status);
581 plResult = plFmt.format(n, status);