From aa568d117837979b59d1cd33f51319d473435bc7 Mon Sep 17 00:00:00 2001 From: John Emmons Date: Mon, 7 Nov 2005 20:03:32 +0000 Subject: [PATCH] ICU-4916 Fix setWeekdays to set Weekdays, not months... X-SVN-Rev: 18764 --- .../com/ibm/icu/text/DateFormatSymbols.java | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java b/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java index ea37daf82b0..4783641c52d 100755 --- a/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java +++ b/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java @@ -82,39 +82,54 @@ public class DateFormatSymbols implements Serializable, Cloneable { // Constants for context /** * Constant for context. - * @draft ICU 3.4 + * @draft ICU 3.6 * @deprecated This is a draft API and might change in a future release of ICU. */ public static final int FORMAT = 0; /** * Constant for context. - * @draft ICU 3.4 + * @draft ICU 3.6 * @deprecated This is a draft API and might change in a future release of ICU. */ public static final int STANDALONE = 1; + /** + * Constant for context. + * @draft ICU 3.6 + * @deprecated This is a draft API and might change in a future release of ICU. + */ + public static final int DT_CONTEXT_COUNT = 2; + // Constants for width - /** - * Constant for width. - * @draft ICU 3.4 - * @deprecated This is a draft API and might change in a future release of ICU. - */ - public static final int WIDE = 4; /** * Constant for width. - * @draft ICU 3.4 + * @draft ICU 3.6 * @deprecated This is a draft API and might change in a future release of ICU. */ - public static final int ABBREVIATED = 3; + public static final int ABBREVIATED = 0; /** * Constant for width. - * @draft ICU 3.4 + * @draft ICU 3.6 * @deprecated This is a draft API and might change in a future release of ICU. */ - public static final int NARROW = 5; + public static final int WIDE = 1; + + /** + * Constant for width. + * @draft ICU 3.6 + * @deprecated This is a draft API and might change in a future release of ICU. + */ + public static final int NARROW = 2; + + /** + * Constant for width. + * @draft ICU 3.6 + * @deprecated This is a draft API and might change in a future release of ICU. + */ + public static final int DT_WIDTH_COUNT = 3; /** * Construct a DateFormatSymbols object by loading format data from @@ -564,7 +579,7 @@ public class DateFormatSymbols implements Serializable, Cloneable { case FORMAT : switch(width) { case WIDE : - months = duplicate(newWeekdays); + weekdays = duplicate(newWeekdays); break; case ABBREVIATED : shortWeekdays = duplicate(newWeekdays);