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

Side by Side Diff: pkg/i18n/number_symbols.dart

Issue 10834318: First iteration on number formatting (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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 #library("number_symbols");
5
6 /**
7 * This holds onto information about how a particular locale formats dates. It
Emily Fortuna 2012/08/15 21:38:16 this comment seems out of sync with the code.
Alan Knight 2012/08/15 23:57:44 Oops. Done.
8 * contains mostly strings, e.g. what the names of months or weekdays are,
9 * but also indicates things like the first day of the week. We expect the data
10 * for instances of these to be generated out of ICU or a similar reference
11 * source. This is used in conjunction with the date_time_patterns, which
12 * defines for a particular locale the different named formats that will
13 * make use of this data.
14 */
15
16 class NumberSymbols {
17 final String NAME;
18 final String DECIMAL_SEP, GROUP_SEP, PERCENT, ZERO_DIGIT, PLUS_SIGN,
19 MINUS_SIGN, EXP_SYMBOL, PERMILL, INFINITY, NAN, DECIMAL_PATTERN,
20 SCIENTIFIC_PATTERN, PERCENT_PATTERN, CURRENCY_PATTERN, DEF_CURRENCY_CODE;
21
22 const NumberSymbols([this.NAME,
23 this.DECIMAL_SEP,
24 this.GROUP_SEP,
25 this.PERCENT,
26 this.ZERO_DIGIT,
27 this.PLUS_SIGN,
28 this.MINUS_SIGN,
29 this.EXP_SYMBOL,
30 this.PERMILL,
31 this.INFINITY,
32 this.NAN,
33 this.DECIMAL_PATTERN,
34 this.SCIENTIFIC_PATTERN,
35 this.PERCENT_PATTERN,
36 this.CURRENCY_PATTERN,
37 this.DEF_CURRENCY_CODE]);
38
39 toString() => NAME;
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698