mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-3935 RFE: add ability to name RBNF ruleset in fraction rules
X-SVN-Rev: 15997
This commit is contained in:
parent
0893e2f75a
commit
87c89f8e08
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue