Home | History | Annotate | Download | only in intltest

Lines Matching refs:PluralMapBase

41             PluralMapBase::Category v,
59 assertEquals("", (int32_t)PluralMapBase::OTHER, PluralMapBase::toCategory("other"));
60 assertEquals("", (int32_t)PluralMapBase::ZERO, PluralMapBase::toCategory("zero"));
61 assertEquals("", (int32_t)PluralMapBase::ONE, PluralMapBase::toCategory("one"));
62 assertEquals("", (int32_t)PluralMapBase::TWO, PluralMapBase::toCategory("two"));
63 assertEquals("", (int32_t)PluralMapBase::FEW, PluralMapBase::toCategory("few"));
64 assertEquals("", (int32_t)PluralMapBase::MANY, PluralMapBase::toCategory("many"));
65 assertEquals("", (int32_t)PluralMapBase::NONE, PluralMapBase::toCategory("Many"));
68 (int32_t)PluralMapBase::FEW,
69 PluralMapBase::toCategory(UnicodeString("few")));
72 (int32_t)PluralMapBase::MANY,
73 PluralMapBase::toCategory(UnicodeString("many")));
76 (int32_t)PluralMapBase::NONE,
77 PluralMapBase::toCategory(UnicodeString("Many")));
81 assertTrue("", PluralMapBase::getCategoryName(PluralMapBase::NONE) == NULL);
82 assertTrue("", PluralMapBase::getCategoryName(PluralMapBase::CATEGORY_COUNT) == NULL);
83 assertEquals("", "other", PluralMapBase::getCategoryName(PluralMapBase::OTHER));
84 assertEquals("", "zero", PluralMapBase::getCategoryName(PluralMapBase::ZERO));
85 assertEquals("", "one", PluralMapBase::getCategoryName(PluralMapBase::ONE));
86 assertEquals("", "two", PluralMapBase::getCategoryName(PluralMapBase::TWO));
87 assertEquals("", "few", PluralMapBase::getCategoryName(PluralMapBase::FEW));
88 assertEquals("", "many", PluralMapBase::getCategoryName(PluralMapBase::MANY));
93 addVariant(PluralMapBase::OTHER, "pickles", map);
94 addVariant(PluralMapBase::ONE, "pickle", map);
95 addVariant(PluralMapBase::FEW, "picklefew", map);
96 assertEquals("", "pickles", map.get(PluralMapBase::OTHER));
97 assertEquals("", "pickle", map.get(PluralMapBase::ONE));
98 assertEquals("", "picklefew", map.get(PluralMapBase::FEW));
99 assertEquals("", "pickles", map.get(PluralMapBase::MANY));
100 assertEquals("", "pickles", map.get(PluralMapBase::NONE));
101 assertEquals("", "pickles", map.get(PluralMapBase::CATEGORY_COUNT));
113 addVariant(PluralMapBase::OTHER, "pickles", map);
114 addVariant(PluralMapBase::ONE, "pickle", map);
115 addVariant(PluralMapBase::FEW, "pickleops", map);
116 addVariant(PluralMapBase::FEW, "picklefew", map);
117 PluralMapBase::Category index = PluralMapBase::NONE;
120 assertEquals("", (int32_t)PluralMapBase::OTHER, index);
123 assertEquals("", (int32_t)PluralMapBase::ONE, index);
126 assertEquals("", (int32_t)PluralMapBase::FEW, index);
128 assertEquals("", (int32_t)PluralMapBase::CATEGORY_COUNT, index);
132 index = PluralMapBase::NONE;
135 assertEquals("", (int32_t)PluralMapBase::OTHER, index);
137 assertEquals("", (int32_t)PluralMapBase::CATEGORY_COUNT, index);
143 addVariant(PluralMapBase::OTHER, "pickles", control);
144 addVariant(PluralMapBase::ONE, "pickle", control);
145 addVariant(PluralMapBase::FEW, "picklefew", control);
149 addVariant(PluralMapBase::FEW, "picklefew", map);
150 addVariant(PluralMapBase::OTHER, "pickles", map);
151 addVariant(PluralMapBase::ONE, "pickle", map);
153 addVariant(PluralMapBase::ONE, "pickl", map);
158 addVariant(PluralMapBase::MANY, "picklemany", map);
159 addVariant(PluralMapBase::OTHER, "pickles", map);
160 addVariant(PluralMapBase::ONE, "pickle", map);
167 addVariant(PluralMapBase::OTHER, "pickles", control);
168 addVariant(PluralMapBase::ONE, "pickle", control);
169 addVariant(PluralMapBase::FEW, "picklefew", control);
176 addVariant(PluralMapBase::OTHER, "pickles", *rhs);
177 addVariant(PluralMapBase::ONE, "pickle", *rhs);
178 addVariant(PluralMapBase::FEW, "picklefew", *rhs);
189 addVariant(PluralMapBase::OTHER, "pickles", *rhs);
190 addVariant(PluralMapBase::ONE, "pickle", *rhs);
191 addVariant(PluralMapBase::FEW, "picklefew", *rhs);
193 addVariant(PluralMapBase::OTHER, "pickles", lhs);
194 addVariant(PluralMapBase::TWO, "pickletwo", lhs);
195 addVariant(PluralMapBase::MANY, "picklemany", lhs);
196 addVariant(PluralMapBase::FEW, "picklefew", lhs);
207 PluralMapBase::Category v,