Home | History | Annotate | Download | only in common

Lines Matching defs:Category

25      * category, but rather represents the absense of a plural category.
27 enum Category {
39 * Converts a category name such as "zero", "one", "two", "few", "many"
40 * or "other" to a category enum. Returns NONE for an unrecognized
41 * category name.
43 static Category toCategory(const char *categoryName);
46 * Converts a category name such as "zero", "one", "two", "few", "many"
47 * or "other" to a category enum. Returns NONE for urecongized
48 * category name.
50 static Category toCategory(const UnicodeString &categoryName);
53 * Converts a category to a name.
54 * Passing NONE or CATEGORY_COUNT for category returns NULL.
56 static const char *getCategoryName(Category category);
73 * Other category is maps to a copy of the default value.
80 * Other category is mapped to otherVariant.
134 * to getCategoryName() to get the name of the plural category.
137 const T *next(Category &index) const {
142 index = static_cast<Category>(idx);
146 index = static_cast<Category>(idx);
153 T *nextMutable(Category &index) {
167 * Returns the value associated with a category.
169 * back to returning the value for the 'other' category.
171 const T &get(Category v) const {
180 * Convenience routine to get the value by category name. Otherwise
181 * works just like get(Category).
183 const T &get(const char *category) const {
184 return get(toCategory(category));
188 * Convenience routine to get the value by category name as a
189 * UnicodeString. Otherwise works just like get(category).
191 const T &get(const UnicodeString &category) const {
192 return get(toCategory(category));
196 * Returns a pointer to the value associated with a category
201 * @param category the category with the value to change.
206 Category category,
208 return getMutable(category, NULL, status);
212 * Convenience routine to get a mutable pointer to a value by category name.
213 * Otherwise works just like getMutable(Category, UErrorCode &).
214 * reports an error if the category name is invalid.
217 const char *category,
219 return getMutable(toCategory(category), NULL, status);
223 * Just like getMutable(Category, UErrorCode &) but copies defaultValue to
228 Category category,
231 return getMutable(category, &defaultValue, status);
259 Category category,
265 int32_t index = category;