OLD | NEW |
---|---|
(Empty) | |
1 #library("date_format_for_locale"); | |
2 | |
3 /** | |
4 * This holds onto information about how a particular locale formats dates. It | |
5 * contains mostly strings, e.g. what the names of months or weekdays are, | |
6 * but also indicates things like the first day of the week. We expect the data | |
7 * for instances of these to be generated out of ICU or a similar reference | |
8 * source. This is used in conjunction with the date_time_patterns, which | |
9 * defines for a particular locale the different named formats that will | |
10 * make use of this data. | |
11 */ | |
12 class DateSymbols { | |
13 final String NAME; | |
14 final List<String> ERAS,ERANAMES,NARROWMONTHS,STANDALONENARROWMONTHS, MONTHS, | |
15 STANDALONEMONTHS, SHORTMONTHS, STANDALONESHORTMONTHS, WEEKDAYS, | |
16 STANDALONEWEEKDAYS, SHORTWEEKDAYS, STANDALONESHORTWEEKDAYS, | |
17 NARROWWEEKDAYS, STANDALONENARROWWEEKDAYS, SHORTQUARTERS, | |
18 QUARTERS, AMPMS, DATEFORMATS, TIMEFORMATS; | |
19 final Map<String,String> AVAILABLEFORMATS; | |
20 final int FIRSTDAYOFWEEK; | |
21 final List<int> WEEKENDRANGE; | |
22 final int FIRSTWEEKCUTOFFDAY; | |
23 | |
24 const DateSymbols([this.NAME, | |
25 this.ERAS, | |
Emily Fortuna
2012/08/06 22:43:00
indentation?
Alan Knight
2012/08/08 00:47:44
Done.
| |
26 this.ERANAMES, | |
27 this.NARROWMONTHS, | |
28 this.STANDALONENARROWMONTHS, | |
29 this.MONTHS, | |
30 this.STANDALONEMONTHS, | |
31 this.SHORTMONTHS, | |
32 this.STANDALONESHORTMONTHS, | |
33 this.WEEKDAYS, | |
34 this.STANDALONEWEEKDAYS, | |
35 this.SHORTWEEKDAYS, | |
36 this.STANDALONESHORTWEEKDAYS, | |
37 this.NARROWWEEKDAYS, | |
38 this.STANDALONENARROWWEEKDAYS, | |
39 this.SHORTQUARTERS, | |
40 this.QUARTERS, | |
41 this.AMPMS, | |
42 this.DATEFORMATS, | |
43 this.TIMEFORMATS, | |
44 this.AVAILABLEFORMATS, | |
45 this.FIRSTDAYOFWEEK, | |
46 this.WEEKENDRANGE, | |
47 this.FIRSTWEEKCUTOFFDAY]); | |
48 | |
49 toString() => NAME; | |
50 } | |
51 | |
Emily Fortuna
2012/08/06 22:43:00
extra newline
Alan Knight
2012/08/08 00:47:44
Done.
| |
OLD | NEW |