Index: pkg/i18n/number_symbols.dart |
=================================================================== |
--- pkg/i18n/number_symbols.dart (revision 0) |
+++ pkg/i18n/number_symbols.dart (revision 0) |
@@ -0,0 +1,40 @@ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+#library("number_symbols"); |
+ |
+/** |
+ * 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.
|
+ * contains mostly strings, e.g. what the names of months or weekdays are, |
+ * but also indicates things like the first day of the week. We expect the data |
+ * for instances of these to be generated out of ICU or a similar reference |
+ * source. This is used in conjunction with the date_time_patterns, which |
+ * defines for a particular locale the different named formats that will |
+ * make use of this data. |
+ */ |
+ |
+class NumberSymbols { |
+ final String NAME; |
+ final String DECIMAL_SEP, GROUP_SEP, PERCENT, ZERO_DIGIT, PLUS_SIGN, |
+ MINUS_SIGN, EXP_SYMBOL, PERMILL, INFINITY, NAN, DECIMAL_PATTERN, |
+ SCIENTIFIC_PATTERN, PERCENT_PATTERN, CURRENCY_PATTERN, DEF_CURRENCY_CODE; |
+ |
+ const NumberSymbols([this.NAME, |
+ this.DECIMAL_SEP, |
+ this.GROUP_SEP, |
+ this.PERCENT, |
+ this.ZERO_DIGIT, |
+ this.PLUS_SIGN, |
+ this.MINUS_SIGN, |
+ this.EXP_SYMBOL, |
+ this.PERMILL, |
+ this.INFINITY, |
+ this.NAN, |
+ this.DECIMAL_PATTERN, |
+ this.SCIENTIFIC_PATTERN, |
+ this.PERCENT_PATTERN, |
+ this.CURRENCY_PATTERN, |
+ this.DEF_CURRENCY_CODE]); |
+ |
+ toString() => NAME; |
+} |