Home | History | Annotate | Download | only in unicode

Lines Matching refs:PluralRules

23  * \brief C++ API: PluralRules object
110 class U_I18N_API PluralRules : public UObject {
120 PluralRules(UErrorCode& status);
126 PluralRules(const PluralRules& other);
132 virtual ~PluralRules();
138 PluralRules* clone() const;
144 PluralRules& operator=(const PluralRules&);
147 * Creates a PluralRules from a description if it is parsable, otherwise
153 * @return new PluralRules pointer. NULL if there is an error.
156 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description,
164 * @return new PluralRules pointer. NULL if there is an error.
167 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status);
170 * Provides access to the predefined <code>PluralRules</code> for a given
173 * @param locale The locale for which a <code>PluralRules</code> object is
177 * @return The predefined <code>PluralRules</code> object pointer for
184 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
209 * Returns a list of all rule keywords used in this <code>PluralRules</code>
222 * <code>PluralRules</code> object.
242 * Compares the equality of two PluralRules objects.
244 * @param other The other PluralRules object to be compared with.
245 * @return True if the given PluralRules is the same as this
246 * PluralRules; false otherwise.
249 virtual UBool operator==(const PluralRules& other) const;
252 * Compares the inequality of two PluralRules objects.
254 * @param other The PluralRules object to be compared with.
255 * @return True if the given PluralRules is not the same as this
256 * PluralRules; false otherwise.
259 UBool operator!=(const PluralRules& other) const {return !operator==(other);}
284 PluralRules(); // default constructor not implemented