Lines Matching defs:PluralRules

23  * \brief C++ API: PluralRules object
31 * Value returned by PluralRules::getUniqueKeywordValue() when there is no
126 class U_I18N_API PluralRules : public UObject {
136 PluralRules(UErrorCode& status);
142 PluralRules(const PluralRules& other);
148 virtual ~PluralRules();
154 PluralRules* clone() const;
160 PluralRules& operator=(const PluralRules&);
163 * Creates a PluralRules from a description if it is parsable, otherwise
169 * @return new PluralRules pointer. NULL if there is an error.
172 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description,
180 * @return new PluralRules pointer. NULL if there is an error.
183 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status);
186 * Provides access to the predefined <code>PluralRules</code> for a given
189 * @param locale The locale for which a <code>PluralRules</code> object is
193 * @return The predefined <code>PluralRules</code> object pointer for
200 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
225 * Returns a list of all rule keywords used in this <code>PluralRules</code>
294 * <code>PluralRules</code> object.
314 * Compares the equality of two PluralRules objects.
316 * @param other The other PluralRules object to be compared with.
317 * @return True if the given PluralRules is the same as this
318 * PluralRules; false otherwise.
321 virtual UBool operator==(const PluralRules& other) const;
324 * Compares the inequality of two PluralRules objects.
326 * @param other The PluralRules object to be compared with.
327 * @return True if the given PluralRules is not the same as this
328 * PluralRules; false otherwise.
331 UBool operator!=(const PluralRules& other) const {return !operator==(other);}
357 PluralRules(); // default constructor not implemented