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

LibUnicode: Parse and generate per-locale plural ranges

This commit is contained in:
Timothy Flynn 2022-07-11 10:58:48 -04:00 committed by Linus Groh
parent a718c62c01
commit a337b059dd
3 changed files with 113 additions and 11 deletions

View file

@ -40,4 +40,9 @@ Span<PluralCategory const> __attribute__((weak)) available_plural_categories(Str
return categories.span();
}
PluralCategory __attribute__((weak)) determine_plural_range(StringView, PluralCategory, PluralCategory)
{
return PluralCategory::Other;
}
}

View file

@ -119,5 +119,6 @@ constexpr 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);
PluralCategory determine_plural_range(StringView locale, PluralCategory start, PluralCategory end);
}