2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 395N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 395N/A * This code is free software; you can redistribute it and/or modify it 395N/A * under the terms of the GNU General Public License version 2 only, as 395N/A * published by the Free Software Foundation. 395N/A * This code is distributed in the hope that it will be useful, but WITHOUT 395N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 395N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 395N/A * version 2 for more details (a copy is included in the LICENSE file that 395N/A * accompanied this code). 395N/A * You should have received a copy of the GNU General Public License version 395N/A * 2 along with this work; if not, write to the Free Software Foundation, 395N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 395N/A * @summary Make sure the euro converters, which are derived from 395N/A * existing converters, only differ from their parents at the expected 395N/A char[]
map =
new char[
256];
// map for the encoding 395N/A // Fill map with parent values 395N/A for (
int j=-
128; j<
128; ++j) {
395N/A // NOTE: 0x25 doesn't round trip on the EBCDIC code pages, 395N/A // so we don't check that code point in the sanity check. 395N/A // This is a sanity check -- we aren't really testing the parent 395N/A " fails round-trip: " + j +
395N/A // Modify map with new expected values. Each pair has code point, parent value, euro value. 395N/A // This is a sanity check -- we aren't really testing the parent 395N/A // Fill in new expected value 395N/A ++i;
// Skip over null at end of set 395N/A // Now verify the euro encoder 395N/A for (
int j=-
128; j<
128; ++j) {
395N/A // NOTE: 0x15 doesn't round trip on the EBCDIC code pages, 395N/A // so we don't check that code point in the sanity check. 395N/A " fails round-trip at " + j);
395N/A // Compare against the map 395N/A // New converter, parent converter, [ code point that changed, parent code point value, 395N/A // euro code point value ], null 395N/A // Any number of changed code points may be specified, including zero. 395N/A "ISO8859_15_FDIS",
"ISO8859_1",
395N/A "A4",
"\u00A4",
"\u20AC",
395N/A "A6",
"\u00A6",
"\u0160",
395N/A "A8",
"\u00A8",
"\u0161",
395N/A "B4",
"\u00B4",
"\u017D",
395N/A "B8",
"\u00B8",
"\u017E",
395N/A "BC",
"\u00BC",
"\u0152",
395N/A "BD",
"\u00BD",
"\u0153",
395N/A "BE",
"\u00BE",
"\u0178",
395N/A // 923 is IBM's name for ISO 8859-15; make sure they're identical 395N/A "Cp858",
"Cp850",
"D5",
"\u0131",
"\u20AC",
null,
395N/A "Cp1140",
"Cp037",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1141",
"Cp273",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1142",
"Cp277",
"5A",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1143",
"Cp278",
"5A",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1144",
"Cp280",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1145",
"Cp284",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1146",
"Cp285",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1147",
"Cp297",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1148",
"Cp500",
"9F",
"\u00A4",
"\u20AC",
null,
395N/A "Cp1149",
"Cp871",
"9F",
"\u00A4",
"\u20AC",
null,