mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-4916 Fix setWeekdays to set Weekdays, not months...
X-SVN-Rev: 18764
This commit is contained in:
parent
79a52e9d0c
commit
aa568d1178
1 changed files with 28 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue