LibUnicode: Generate a list of available plural categories per locale

Separate lists are generated for cardinal and ordinal form.
This commit is contained in:
Timothy Flynn 2022-07-07 12:05:05 -04:00 committed by Linus Groh
commit 8aeacccd82
Notes: sideshowbarker 2024-07-17 09:37:35 +09:00
3 changed files with 52 additions and 0 deletions

View file

@ -61,5 +61,6 @@ Optional<PluralCategory> plural_category_from_string(StringView category);
StringView plural_category_to_string(PluralCategory category);
PluralCategory determine_plural_category(StringView locale, PluralForm form, PluralOperands operands);
Span<PluralCategory const> available_plural_categories(StringView locale, PluralForm form);
}