DescriptionMake use of the patterns in Intl number formatting
This adds code to parse and use the information from the pattern
string used to create a NumberFormat. It adds tests taken
from the Closure tests and also tests comparing a simple
format to the ICU output for a large set of locales.
In addition it has changes to
- part number_format.dart in intl.dart rather than having it as a
separate library
- Update the algorithm to incorporate some additions in Closure
- Allow setting a few of the internal parameters, which the
Closure tests wanted to use
- Add named constructors for the standard formats, e.g. DECIMAL_FORMAT
- Access _defaultLocale consistently via the getCurrentLocale() method
rather than directly, so it can never be uninitialized.
- Regenerated the locale data
Committed: https://code.google.com/p/dart/source/detail?r=21166
Patch Set 1 #Patch Set 2 : Don't always initialize _defaultLocale #
Total comments: 3
Patch Set 3 : Addressing review comments #
Messages
Total messages: 4 (0 generated)
|