Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: lib/i18n/date_symbols.dart

Issue 10807096: Add date formatting and parsing code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #library("date_format_for_locale");
2
3 /**
4 * This holds onto information about how a particular locale formats dates. It
Emily Fortuna 2012/07/31 05:52:53 this this file generated? If so, please say so in
Alan Knight 2012/08/03 23:02:15 It's not. The generated files do say so.
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,
Emily Fortuna 2012/07/31 05:52:53 indent 2 more spaces here if the line is broken. A
Alan Knight 2012/08/03 23:02:15 First two done. The constant names are from Shanji
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,
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 );
Emily Fortuna 2012/07/31 05:52:53 move this up to the above line.
Alan Knight 2012/08/03 23:02:15 Done.
49
50 toString() => NAME;
51 }
52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698