Lines Matching defs:PluralFormat
23 * \brief C++ API: PluralFormat object
37 * <code>PluralFormat</code> supports the creation of internationalized
41 * <code>PluralFormat</code> selects the appropriate message based on
58 * <code>PluralFormat</code> deals with this by breaking the problem
74 * <h4>Usage of <code>PluralFormat</code></h4>
76 * This discussion assumes that you use <code>PluralFormat</code> with
96 * rules of the <code>PluralFormat</code> object do not contain a plural case
109 * format patterns. <code>PluralFormat</code> preserves these so that you
110 * can use the strings produced by <code>PluralFormat</code> with other
111 * formatters. If you are using <code>PluralFormat</code> inside a
118 * <code>NumberFormat</code> patterns). <code>PluralFormat</code> will
121 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
123 * <code>NumberFormat</code> for the <code>PluralFormat</code> to use.
151 * Currently <code>PluralFormat</code>
156 * pattern to <code>PluralFormat</code>. It's a bit trickier if you use
161 * pattern before it gets passed to <code>PluralFormat</code>, we have to
165 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
167 * <code>PluralFormat</code>'s constructor. If you also specify a locale in this
179 class U_I18N_API PluralFormat : public Format {
183 * Creates a new <code>PluralFormat</code> for the default locale.
190 PluralFormat(UErrorCode& status);
193 * Creates a new <code>PluralFormat</code> for a given locale.
194 * @param locale the <code>PluralFormat</code> will be configured with
201 PluralFormat(const Locale& locale, UErrorCode& status);
204 * Creates a new <code>PluralFormat</code> for a given set of rules.
206 * @param rules defines the behavior of the <code>PluralFormat</code>
212 PluralFormat(const PluralRules& rules, UErrorCode& status);
215 * Creates a new <code>PluralFormat</code> for a given set of rules.
219 * @param rules defines the behavior of the <code>PluralFormat</code>
225 PluralFormat(const Locale& locale, const PluralRules& rules, UErrorCode& status);
228 * Creates a new <code>PluralFormat</code> for a given pattern string.
231 * @param pattern the pattern for this <code>PluralFormat</code>.
237 PluralFormat(const UnicodeString& pattern, UErrorCode& status);
240 * Creates a new <code>PluralFormat</code> for a given pattern string and
244 * @param locale the <code>PluralFormat</code> will be configured with
247 * @param pattern the pattern for this <code>PluralFormat</code>.
253 PluralFormat(const Locale& locale, const UnicodeString& pattern, UErrorCode& status);
256 * Creates a new <code>PluralFormat</code> for a given set of rules, a
258 * @param rules defines the behavior of the <code>PluralFormat</code>
260 * @param pattern the pattern for this <code>PluralFormat</code>.
266 PluralFormat(const PluralRules& rules,
271 * Creates a new <code>PluralFormat</code> for a given set of rules, a
273 * @param locale the <code>PluralFormat</code> will be configured with
276 * @param rules defines the behavior of the <code>PluralFormat</code>
278 * @param pattern the pattern for this <code>PluralFormat</code>.
284 PluralFormat(const Locale& locale,
293 PluralFormat(const PluralFormat& other);
299 virtual ~PluralFormat();
323 * <code>PluralFormat</code> object yet, the formatted number
337 * PluralFormat object yet, the formatted number
351 * <code>PluralFormat</code> object yet, the formatted number
372 * PluralFormat object yet, the formatted number
394 * constructed from {@link #PluralFormat(const Locale& locale, UErrorCode& status)}.
416 * @param other the PluralFormat object to copy from.
419 PluralFormat& operator=(const PluralFormat& other);
424 * @param other the PluralFormat object to be compared with.
433 * @param other the PluralFormat object to be compared with.
474 * This method is not yet supported by <code>PluralFormat</code>.
532 PluralFormat(); // default constructor not implemented