OLD | NEW |
| (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 numbers. It | |
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 | |
10 * or a similar reference source. | |
11 */ | |
12 class NumberSymbols { | |
13 final String NAME; | |
14 final String DECIMAL_SEP, | |
15 GROUP_SEP, | |
16 PERCENT, | |
17 ZERO_DIGIT, | |
18 PLUS_SIGN, | |
19 MINUS_SIGN, | |
20 EXP_SYMBOL, | |
21 PERMILL, | |
22 INFINITY, | |
23 NAN, | |
24 DECIMAL_PATTERN, | |
25 SCIENTIFIC_PATTERN, | |
26 PERCENT_PATTERN, | |
27 CURRENCY_PATTERN, | |
28 DEF_CURRENCY_CODE; | |
29 | |
30 const NumberSymbols({this.NAME, this.DECIMAL_SEP, this.GROUP_SEP, | |
31 this.PERCENT, this.ZERO_DIGIT, this.PLUS_SIGN, this.MINUS_SIGN, | |
32 this.EXP_SYMBOL, this.PERMILL, this.INFINITY, this.NAN, | |
33 this.DECIMAL_PATTERN, this.SCIENTIFIC_PATTERN, this.PERCENT_PATTERN, | |
34 this.CURRENCY_PATTERN, this.DEF_CURRENCY_CODE}); | |
35 | |
36 toString() => NAME; | |
37 } | |
OLD | NEW |