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

Unified Diff: packages/intl/lib/number_symbols.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/intl/lib/message_lookup_by_library.dart ('k') | packages/intl/lib/number_symbols_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/intl/lib/number_symbols.dart
diff --git a/packages/intl/lib/number_symbols.dart b/packages/intl/lib/number_symbols.dart
index 3eece39163ffd083d450811bcf64d8aa623290eb..a18145ba81e973884e5c04d78020873b1c72cd37 100644
--- a/packages/intl/lib/number_symbols.dart
+++ b/packages/intl/lib/number_symbols.dart
@@ -3,12 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
library number_symbols;
-/**
- * This holds onto information about how a particular locale formats numbers. It
- * contains strings for things like the decimal separator, digit to use for "0"
- * and infinity. We expect the data for instances to be generated out of ICU
- * or a similar reference source.
- */
+/// This holds onto information about how a particular locale formats
+/// numbers. It contains strings for things like the decimal separator, digit to
+/// use for "0" and infinity. We expect the data for instances to be generated
+/// out of ICU or a similar reference source.
class NumberSymbols {
final String NAME;
final String DECIMAL_SEP,
@@ -27,11 +25,33 @@ class NumberSymbols {
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});
+ 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;
}
+
+class CompactNumberSymbols {
+ final Map<int, String> COMPACT_DECIMAL_SHORT_PATTERN;
+ final Map<int, String> COMPACT_DECIMAL_LONG_PATTERN;
+ final Map<int, String> COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN;
+ CompactNumberSymbols(
+ {this.COMPACT_DECIMAL_SHORT_PATTERN,
+ this.COMPACT_DECIMAL_LONG_PATTERN,
+ this.COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN});
+}
« no previous file with comments | « packages/intl/lib/message_lookup_by_library.dart ('k') | packages/intl/lib/number_symbols_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698