mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +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:
parent
ea78bac36d
commit
8aeacccd82
Notes:
sideshowbarker
2024-07-17 09:37:35 +09:00
Author: https://github.com/trflynn89
Commit: 8aeacccd82
Pull-request: https://github.com/SerenityOS/serenity/pull/14512
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
3 changed files with 52 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue