OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 library number_symbols; | 4 library number_symbols; |
5 | 5 |
6 /** | 6 /** |
7 * This holds onto information about how a particular locale formats numbers. It | 7 * This holds onto information about how a particular locale formats numbers. It |
8 * contains strings for things like the decimal separator, digit to use for "0" | 8 * contains strings for things like the decimal separator, digit to use for "0" |
9 * and infinity. We expect the data for instances to be generated out of ICU | 9 * and infinity. We expect the data for instances to be generated out of ICU |
10 * or a similar reference source. | 10 * or a similar reference source. |
11 */ | 11 */ |
12 | |
13 class NumberSymbols { | 12 class NumberSymbols { |
14 final String NAME; | 13 final String NAME; |
15 final String DECIMAL_SEP, GROUP_SEP, PERCENT, ZERO_DIGIT, PLUS_SIGN, | 14 final String DECIMAL_SEP, GROUP_SEP, PERCENT, ZERO_DIGIT, PLUS_SIGN, |
16 MINUS_SIGN, EXP_SYMBOL, PERMILL, INFINITY, NAN, DECIMAL_PATTERN, | 15 MINUS_SIGN, EXP_SYMBOL, PERMILL, INFINITY, NAN, DECIMAL_PATTERN, |
17 SCIENTIFIC_PATTERN, PERCENT_PATTERN, CURRENCY_PATTERN, DEF_CURRENCY_CODE; | 16 SCIENTIFIC_PATTERN, PERCENT_PATTERN, CURRENCY_PATTERN, DEF_CURRENCY_CODE; |
18 | 17 |
19 const NumberSymbols({this.NAME, | 18 const NumberSymbols({this.NAME, |
20 this.DECIMAL_SEP, | 19 this.DECIMAL_SEP, |
21 this.GROUP_SEP, | 20 this.GROUP_SEP, |
22 this.PERCENT, | 21 this.PERCENT, |
23 this.ZERO_DIGIT, | 22 this.ZERO_DIGIT, |
24 this.PLUS_SIGN, | 23 this.PLUS_SIGN, |
25 this.MINUS_SIGN, | 24 this.MINUS_SIGN, |
26 this.EXP_SYMBOL, | 25 this.EXP_SYMBOL, |
27 this.PERMILL, | 26 this.PERMILL, |
28 this.INFINITY, | 27 this.INFINITY, |
29 this.NAN, | 28 this.NAN, |
30 this.DECIMAL_PATTERN, | 29 this.DECIMAL_PATTERN, |
31 this.SCIENTIFIC_PATTERN, | 30 this.SCIENTIFIC_PATTERN, |
32 this.PERCENT_PATTERN, | 31 this.PERCENT_PATTERN, |
33 this.CURRENCY_PATTERN, | 32 this.CURRENCY_PATTERN, |
34 this.DEF_CURRENCY_CODE}); | 33 this.DEF_CURRENCY_CODE}); |
35 | 34 |
36 toString() => NAME; | 35 toString() => NAME; |
37 } | 36 } |
OLD | NEW |