Lines Matching full:category
27 * category, but rather represents the absence of a plural category.
29 enum Category { enum
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 unrecognized
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 nullptr.
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 { in next()
144 index = static_cast<Category>(idx); in next()
148 index = static_cast<Category>(idx); in next()
155 T *nextMutable(Category &index) { in nextMutable()
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 { in get()
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 { in get() argument
186 return get(toCategory(category)); in get()
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 { in get() argument
194 return get(toCategory(category)); in get()
198 * Returns a pointer to the value associated with a category
203 * @param category the category with the value to change.
208 Category category, in getMutable() argument
210 return getMutable(category, nullptr, status); in getMutable()
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, in getMutable() argument
221 return getMutable(toCategory(category), nullptr, status); in getMutable()
225 * Just like getMutable(Category, UErrorCode &) but copies defaultValue to
230 Category category, in getMutableWithDefault() argument
233 return getMutable(category, &defaultValue, status); in getMutableWithDefault()
261 Category category, in getMutable() argument
267 int32_t index = category; in getMutable()