From 35797e43fe04790d72082a8ad3bdf64c0a6090f3 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Thu, 14 Feb 2013 23:20:15 +0000 Subject: [PATCH] ICU-9945 Updated currency data file location. Corrected errors in readme.txt. Added ZMW to the hardcoded table to match the latest ISO data. X-SVN-Rev: 33229 --- tools/currency/build.xml | 6 +++--- tools/currency/readme.txt | 13 ++++--------- .../ibm/icu/dev/tool/currency/NumericCodeData.java | 3 ++- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/tools/currency/build.xml b/tools/currency/build.xml index 4c316c6a1b4..c3124ebf8c7 100644 --- a/tools/currency/build.xml +++ b/tools/currency/build.xml @@ -1,6 +1,6 @@ @@ -11,9 +11,9 @@ - + - + diff --git a/tools/currency/readme.txt b/tools/currency/readme.txt index c0d01540488..f755507a95c 100644 --- a/tools/currency/readme.txt +++ b/tools/currency/readme.txt @@ -1,5 +1,5 @@ ******************************************************************************* -* Copyright (C) 2012, International Business Machines Corporation and * +* Copyright (C) 2012-2013, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* @@ -38,19 +38,14 @@ files that we're interested in. Table A.1 contains current currencies and funds and Table A.3 contains historic denominations. -The tool supports 3 commands - check / print / build. +The tool supports 2 commands - check / resource. 1) check This command compares the hardcoded mapping data in NumericCodeData.java with the ISO 4217 XML data files side by side and check differences. -2) print - -This command prints out body of String[][] CODE_MAP_DATA from the ISO -4217 XML data files. - -3) build +2) resource This command writes out the hardcoded mapping data in NumericCodeData.java in ICU resource bundle source format - currencyNumericCodes.txt. @@ -107,7 +102,7 @@ In this case, you have to update the hardcoded data in NumericCodeData. You can either edit the table in NumericCodeData manually, or run the tool command "print" and copy the output and paste it to the table. -Once you make sure "ant check" returns no errors, run "ant build". This +Once you make sure "ant check" returns no errors, run "ant resource". This target generate out/res/currencyNumericCodes.txt. The file should go to /source/data/misc directory. diff --git a/tools/currency/src/com/ibm/icu/dev/tool/currency/NumericCodeData.java b/tools/currency/src/com/ibm/icu/dev/tool/currency/NumericCodeData.java index 15ddaf6a4ca..5ca9d8eb4a0 100644 --- a/tools/currency/src/com/ibm/icu/dev/tool/currency/NumericCodeData.java +++ b/tools/currency/src/com/ibm/icu/dev/tool/currency/NumericCodeData.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2012, International Business Machines Corporation and * + * Copyright (C) 2012-2013, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -364,6 +364,7 @@ public class NumericCodeData { {"ZAL", "991"}, {"ZAR", "710"}, {"ZMK", "894"}, + {"ZMW", "967"}, {"ZRN", "180"}, {"ZRZ", "180"}, {"ZWD", "716"},