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