ICU-3935 RFE: add ability to name RBNF ruleset in fraction rules

X-SVN-Rev: 15997
This commit is contained in:
Doug Felt 2004-07-14 19:21:35 +00:00
parent 0893e2f75a
commit 87c89f8e08

View file

@ -1216,7 +1216,10 @@ class FractionalPartSubstitution extends NFSubstitution {
RuleBasedNumberFormat formatter,
String description) {
super(pos, ruleSet, formatter, description);
if (description.equals(">>") || description.equals(">>>") || ruleSet == this.ruleSet) {
// the idea is to allow a rule set name in the digits portion of a proper or improper fraction rule set
boolean chevron = description.charAt(0) == '>' && description.charAt(description.length()-1) == '>';
// if (description.equals(">>") || description.equals(">>>") || ruleSet == this.ruleSet) {
if (chevron || ruleSet == this.ruleSet) {
byDigits = true;
if (description.equals(">>>")) {
useSpaces = false;