Lines Matching refs:Form
26 * Standard CLDR plural form/category constants.
31 enum Form {
42 * @return the lowercase CLDR keyword string for the plural form
44 static const char *getKeyword(Form p);
48 * @return the plural form corresponding to the keyword, or OTHER
50 static Form orOtherFromString(const char *keyword) {
51 return static_cast<Form>(indexOrOtherIndexFromString(keyword));
56 * @return the plural form corresponding to the keyword, or OTHER
58 static Form orOtherFromString(const UnicodeString &keyword) {
59 return static_cast<Form>(indexOrOtherIndexFromString(keyword));
63 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
66 * @return the plural form corresponding to the keyword
68 static Form fromString(const char *keyword, UErrorCode &errorCode) {
69 return static_cast<Form>(indexFromString(keyword, errorCode));
73 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
76 * @return the plural form corresponding to the keyword
78 static Form fromString(const UnicodeString &keyword, UErrorCode &errorCode) {
79 return static_cast<Form>(indexFromString(keyword, errorCode));
84 * @return the index of the plural form corresponding to the keyword, or a negative value
90 * @return the index of the plural form corresponding to the keyword, or a negative value
96 * @return the index of the plural form corresponding to the keyword, or OTHER
105 * @return the index of the plural form corresponding to the keyword, or OTHER
113 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
116 * @return the index of the plural form corresponding to the keyword
121 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
124 * @return the index of the plural form corresponding to the keyword