Lines Matching refs:Category
27 * category, but rather represents the absense of a plural category.
29 enum Category {
41 * Converts a category name such as "zero", "one", "two", "few", "many"
42 * or "other" to a category enum. Returns NONE for an unrecognized
43 * category name.
45 static Category toCategory(const char *categoryName);
48 * Converts a category name such as "zero", "one", "two", "few", "many"
49 * or "other" to a category enum. Returns NONE for urecongized
50 * category name.
52 static Category toCategory(const UnicodeString &categoryName);
55 * Converts a category to a name.
56 * Passing NONE or CATEGORY_COUNT for category returns NULL.
58 static const char *getCategoryName(Category category);
75 * Other category is maps to a copy of the default value.
82 * Other category is mapped to otherVariant.
136 * to getCategoryName() to get the name of the plural category.
139 const T *next(Category &index) const {
144 index = static_cast<Category>(idx);
148 index = static_cast<Category>(idx);
155 T *nextMutable(Category &index) {
169 * Returns the value associated with a category.
171 * back to returning the value for the 'other' category.
173 const T &get(Category v) const {
182 * Convenience routine to get the value by category name. Otherwise
183 * works just like get(Category).
185 const T &get(const char *category) const {
186 return get(toCategory(category));
190 * Convenience routine to get the value by category name as a
191 * UnicodeString. Otherwise works just like get(category).
193 const T &get(const UnicodeString &category) const {
194 return get(toCategory(category));
198 * Returns a pointer to the value associated with a category
203 * @param category the category with the value to change.
208 Category category,
210 return getMutable(category, NULL, status);
214 * Convenience routine to get a mutable pointer to a value by category name.
215 * Otherwise works just like getMutable(Category, UErrorCode &).
216 * reports an error if the category name is invalid.
219 const char *category,
221 return getMutable(toCategory(category), NULL, status);
225 * Just like getMutable(Category, UErrorCode &) but copies defaultValue to
230 Category category,
233 return getMutable(category, &defaultValue, status);
261 Category category,
267 int32_t index = category;