1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:37:42 +00:00

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
parent ea78bac36d
commit 8aeacccd82
3 changed files with 52 additions and 0 deletions

View file

@ -56,4 +56,10 @@ PluralCategory __attribute__((weak)) determine_plural_category(StringView, Plura
return PluralCategory::Other;
}
Span<PluralCategory const> __attribute__((weak)) available_plural_categories(StringView, PluralForm)
{
static constexpr Array<PluralCategory, 1> categories { { PluralCategory::Other } };
return categories.span();
}
}