< prev index next >
make/jdk/src/classes/build/tools/cldrconverter/LDMLParseHandler.java
Print this page
rev 55871 : 8215181: Accounting currency format support
Reviewed-by:
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -594,17 +594,22 @@
} else {
pushIgnoredContainer(qName);
}
break;
case "currencyFormat":
+ {
// for FormatData
// copy string for later assembly into NumberPatterns
- if (attributes.getValue("type").equals("standard")) {
+ String cfStyle = attributes.getValue("type");
+ if (cfStyle.equals("standard")) {
pushStringEntry(qName, attributes, "NumberPatterns/currency");
+ } else if (cfStyle.equals("accounting")) {
+ pushStringEntry(qName, attributes, "NumberPatterns/accounting");
} else {
pushIgnoredContainer(qName);
}
+ }
break;
case "percentFormat":
// for FormatData
// copy string for later assembly into NumberPatterns
if (attributes.getValue("type").equals("standard")) {
< prev index next >