Home | History | Annotate | Download | only in i18n

Lines Matching full:form

24  * Standard CLDR plural form/category constants.
29 enum Form {
40 * @return the lowercase CLDR keyword string for the plural form
42 static const char *getKeyword(Form p);
46 * @return the plural form corresponding to the keyword, or OTHER
48 static Form orOtherFromString(const char *keyword) {
49 return static_cast<Form>(indexOrOtherIndexFromString(keyword));
54 * @return the plural form corresponding to the keyword, or OTHER
56 static Form orOtherFromString(const UnicodeString &keyword) {
57 return static_cast<Form>(indexOrOtherIndexFromString(keyword));
61 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
64 * @return the plural form corresponding to the keyword
66 static Form fromString(const char *keyword, UErrorCode &errorCode) {
67 return static_cast<Form>(indexFromString(keyword, errorCode));
71 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
74 * @return the plural form corresponding to the keyword
76 static Form fromString(const UnicodeString &keyword, UErrorCode &errorCode) {
77 return static_cast<Form>(indexFromString(keyword, errorCode));
82 * @return the index of the plural form corresponding to the keyword, or a negative value
88 * @return the index of the plural form corresponding to the keyword, or a negative value
94 * @return the index of the plural form corresponding to the keyword, or OTHER
103 * @return the index of the plural form corresponding to the keyword, or OTHER
111 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
114 * @return the index of the plural form corresponding to the keyword
119 * Sets U_ILLEGAL_ARGUMENT_ERROR if the keyword is not a plural form.
122 * @return the index of the plural form corresponding to the keyword