1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:27:35 +00:00

LibJS: Implement Intl.PluralRules.prototype.select

This commit is contained in:
Timothy Flynn 2022-07-07 10:01:00 -04:00 committed by Linus Groh
parent f11cb7c075
commit 36abcd820d
6 changed files with 270 additions and 0 deletions

View file

@ -29,4 +29,8 @@ private:
Unicode::PluralForm m_type { Unicode::PluralForm::Cardinal }; // [[Type]]
};
Unicode::PluralOperands get_operands(String const& string);
Unicode::PluralCategory plural_rule_select(StringView locale, Unicode::PluralForm type, Value number, Unicode::PluralOperands operands);
Unicode::PluralCategory resolve_plural(GlobalObject& global_object, PluralRules const& plural_rules, Value number);
}