Home | History | Annotate | Download | only in unicode

Lines Matching defs:PluralRules

23  * \brief C++ API: PluralRules object
104 class U_I18N_API PluralRules : public UObject {
114 PluralRules(UErrorCode& status);
120 PluralRules(const PluralRules& other);
126 virtual ~PluralRules();
132 PluralRules* clone() const;
138 PluralRules& operator=(const PluralRules&);
141 * Creates a PluralRules from a description if it is parsable, otherwise
147 * @return new PluralRules pointer. NULL if there is an error.
150 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description,
158 * @return new PluralRules pointer. NULL if there is an error.
161 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status);
164 * Provides access to the predefined <code>PluralRules</code> for a given
167 * @param locale The locale for which a <code>PluralRules</code> object is
171 * @return The predefined <code>PluralRules</code> object pointer for
178 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
203 * Returns a list of all rule keywords used in this <code>PluralRules</code>
216 * <code>PluralRules</code> object.
236 * Compares the equality of two PluralRules objects.
238 * @param other The other PluralRules object to be compared with.
239 * @return True if the given PluralRules is the same as this
240 * PluralRules; false otherwise.
243 virtual UBool operator==(const PluralRules& other) const;
246 * Compares the inequality of two PluralRules objects.
248 * @param other The PluralRules object to be compared with.
249 * @return True if the given PluralRules is not the same as this
250 * PluralRules; false otherwise.
253 UBool operator!=(const PluralRules& other) const {return !operator==(other);}
278 PluralRules(); // default constructor not implemented