-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Description
Following up on #594, I'd like to inline GetOperands into PluralRuleSelect, replacing the Record operands parameter of the latter with the String that is currently input of the former ([[FormattedString]] output from FormatNumericToString). The implementation-defined behavior of PluralRuleSelect would still have access to what is now the input of GetOperands and could deconstruct it in that way if/when appropriate.
1. Let _res_ be ! FormatNumericToString(_pluralRules_, _n_).
- 1. Let _s_ be _res_.[[FormattedString]].
- 1. Let _operands_ be ! GetOperands(_s_).
- 1. Return ! PluralRuleSelect(_locale_, _type_, _n_, _operands_).
+ 1. Return ! PluralRuleSelect(_locale_, _type_, _n_, _res_.[[FormattedString]]).
We might also be able to remove the Number n parameter of PluralRuleSelect, but only if implementations are required to select the same plural category for distinct numbers that format identically, such as "one"
for 1.01
when rounding options format it as "1"
(which I think is the case but would need confirmation):
1. Return ! PluralRuleSelect(_locale_, _type_, _res_.[[FormattedString]]).
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Other Issues