commit | 9a705c35eaafa33ba050ecc193b7aa5fa032b656 | [log] [tgz] |
---|---|---|
author | jat@google.com <jat@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Jun 13 22:34:56 2008 +0000 |
committer | jat@google.com <jat@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Jun 13 22:34:56 2008 +0000 |
tree | f766fb847c8ca5564c4ff1feded6d53c09346860 | |
parent | 6521a6816a24c162dfbdc194d9c803a037790890 [diff] |
Generate currency data at compile time rather than runtime, using a JSO instead of a Java HashMap for efficiency, and add support for altering the number of digits for a currency based on the currency itself. The currency data consists of parts extracted from Unicode CLDR and manually generated portable symbols and currency flags (some of which will only be used in a future commit), and the generator pulls these different sources together at compile time based on the locale being compiled. The net result is that on my machine the first call to NumberFormat now takes 2ms instead of 200, and currencies that take different numbers of decimal digits (such as Yen) are formatted properly. Issue: 2440 Patch by: jat Review by: shanian, jlabanca git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.5@3077 8db76d5a-ed1c-0410-87a9-c151d255dfc7