diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-07-11 10:58:48 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-12 00:43:34 +0100 |
commit | a337b059ddf69d1611e59e3863912d1695f47ea7 (patch) | |
tree | bd581e89f9ccb5c157858b7b62de52ce1efb87d5 /Userland | |
parent | a718c62c01aeb073da446f0983e5dcec0d19212e (diff) | |
download | serenity-a337b059ddf69d1611e59e3863912d1695f47ea7.zip |
LibUnicode: Parse and generate per-locale plural ranges
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibUnicode/PluralRules.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibUnicode/PluralRules.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/PluralRules.cpp b/Userland/Libraries/LibUnicode/PluralRules.cpp index 202fb57b14..6f8ec841e4 100644 --- a/Userland/Libraries/LibUnicode/PluralRules.cpp +++ b/Userland/Libraries/LibUnicode/PluralRules.cpp @@ -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; +} + } diff --git a/Userland/Libraries/LibUnicode/PluralRules.h b/Userland/Libraries/LibUnicode/PluralRules.h index b075aab0e0..3dff55322e 100644 --- a/Userland/Libraries/LibUnicode/PluralRules.h +++ b/Userland/Libraries/LibUnicode/PluralRules.h @@ -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); } |