Home | History | Annotate | Download | only in unicode

Lines Matching defs:PluralRules

23  * \brief C++ API: PluralRules object
32 * Value returned by PluralRules::getUniqueKeywordValue() when there is no
127 class U_I18N_API PluralRules : public UObject {
137 PluralRules(UErrorCode& status);
143 PluralRules(const PluralRules& other);
149 virtual ~PluralRules();
155 PluralRules* clone() const;
161 PluralRules& operator=(const PluralRules&);
164 * Creates a PluralRules from a description if it is parsable, otherwise
170 * @return new PluralRules pointer. NULL if there is an error.
173 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description,
181 * @return new PluralRules pointer. NULL if there is an error.
184 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status);
187 * Provides access to the predefined cardinal-number <code>PluralRules</code> for a given
191 * @param locale The locale for which a <code>PluralRules</code> object is
195 * @return The predefined <code>PluralRules</code> object pointer for
202 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
206 * Provides access to the predefined <code>PluralRules</code> for a given
209 * @param locale The locale for which a <code>PluralRules</code> object is
214 * @return The predefined <code>PluralRules</code> object pointer for
221 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status);
247 * Returns a list of all rule keywords used in this <code>PluralRules</code>
316 * <code>PluralRules</code> object.
335 * Compares the equality of two PluralRules objects.
337 * @param other The other PluralRules object to be compared with.
338 * @return True if the given PluralRules is the same as this
339 * PluralRules; false otherwise.
342 virtual UBool operator==(const PluralRules& other) const;
345 * Compares the inequality of two PluralRules objects.
347 * @param other The PluralRules object to be compared with.
348 * @return True if the given PluralRules is not the same as this
349 * PluralRules; false otherwise.
352 UBool operator!=(const PluralRules& other) const {return !operator==(other);}
378 PluralRules(); // default constructor not implemented