mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS+LibUnicode: Designate a sort order for Intl.PluralRules categories
This is a normative change in the ECMA-402 spec. See:
62fe5db
This commit is contained in:
parent
e5ec8441c9
commit
5e534f4d83
Notes:
github-actions[bot]
2024-12-05 08:50:46 +00:00
Author: https://github.com/trflynn89
Commit: 5e534f4d83
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2760
4 changed files with 12 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
* Copyright (c) 2022-2024, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -18,12 +18,13 @@ PluralForm plural_form_from_string(StringView);
|
|||
StringView plural_form_to_string(PluralForm);
|
||||
|
||||
enum class PluralCategory {
|
||||
Other,
|
||||
// NOTE: These are sorted in preferred order for Intl.PluralRules.prototype.resolvedOptions.
|
||||
Zero,
|
||||
One,
|
||||
Two,
|
||||
Few,
|
||||
Many,
|
||||
Other,
|
||||
|
||||
// https://unicode.org/reports/tr35/tr35-numbers.html#Explicit_0_1_rules
|
||||
ExactlyZero,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue