Home | History | Annotate | Download | only in text

Lines Matching defs:ULocale

23 import com.ibm.icu.util.ULocale;
24 import com.ibm.icu.util.ULocale.Category;
71 * the constructors that takes a <code>ULocale</code> object. To
141 private ULocale ulocale = null;
189 init(null, PluralType.CARDINAL, ULocale.getDefault(Category.FORMAT), null);
194 * @param ulocale the <code>PluralFormat</code> will be configured with
199 public PluralFormat(ULocale ulocale) {
200 init(null, PluralType.CARDINAL, ulocale, null);
212 this(ULocale.forLocale(locale));
224 init(rules, PluralType.CARDINAL, ULocale.getDefault(Category.FORMAT), null);
230 * @param ulocale the default number formatting will be done using this
236 public PluralFormat(ULocale ulocale, PluralRules rules) {
237 init(rules, PluralType.CARDINAL, ulocale, null);
250 this(ULocale.forLocale(locale), rules);
256 * @param ulocale the default number formatting will be done using this
261 public PluralFormat(ULocale ulocale, PluralType type) {
262 init(null, type, ulocale, null);
274 this(ULocale.forLocale(locale), type);
287 init(null, PluralType.CARDINAL, ULocale.getDefault(Category.FORMAT), null);
297 * @param ulocale the <code>PluralFormat</code> will be configured with
304 public PluralFormat(ULocale ulocale, String pattern) {
305 init(null, PluralType.CARDINAL, ulocale, null);
321 init(rules, PluralType.CARDINAL, ULocale.getDefault(Category.FORMAT), null);
328 * @param ulocale the <code>PluralFormat</code> will be configured with
337 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) {
338 init(rules, PluralType.CARDINAL, ulocale, null);
345 * @param ulocale the <code>PluralFormat</code> will be configured with
353 public PluralFormat(ULocale ulocale, PluralType type, String pattern) {
354 init(null, type, ulocale, null);
361 * @param ulocale the <code>PluralFormat</code> will be configured with
369 /*package*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) {
370 init(null, type, ulocale, numberFormat);
377 * <code>ulocale</code> : is <code>locale</code><br/>
381 * <code>ulocale</code>.<br/>
385 * <code>ulocale</code>.
387 private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) {
388 ulocale = locale;
389 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type)
392 this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat;
781 * constructed from {@link #PluralFormat(ULocale, PluralRules.PluralType)}
783 * @param ulocale the <code>ULocale</code> used to configure the
784 * formatter. If <code>ulocale</code> is <code>null</code>, the
792 public void setLocale(ULocale ulocale) {
793 if (ulocale == null) {
794 ulocale = ULocale.getDefault(Category.FORMAT);
796 init(null, PluralType.CARDINAL, ulocale, null);
824 Utility.objectEquals(ulocale, pf.ulocale) &&
856 buf.append("locale=" + ulocale);