mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS+LibUnicode: Rename method to select a NumberFormat plurality
Instead of currency pattern lookups within select_currency_unit_pattern, rename the method to select_pattern_with_plurality and accept any list of patterns. This method will be needed for units.
This commit is contained in:
parent
fa13ab61e4
commit
6d34a0b4e8
Notes:
sideshowbarker
2024-07-18 01:04:21 +09:00
Author: https://github.com/trflynn89
Commit: 6d34a0b4e8
Pull-request: https://github.com/SerenityOS/serenity/pull/10939
Reviewed-by: https://github.com/linusg ✅
3 changed files with 5 additions and 5 deletions
|
@ -203,7 +203,7 @@ Optional<LanguageID> add_likely_subtags(LanguageID const& language_id);
|
|||
Optional<LanguageID> remove_likely_subtags(LanguageID const& language_id);
|
||||
String resolve_most_likely_territory(LanguageID const& language_id, StringView territory_alias);
|
||||
|
||||
Optional<NumberFormat> select_currency_unit_pattern(StringView locale, StringView system, double number);
|
||||
Optional<NumberFormat> select_pattern_with_plurality(Vector<NumberFormat> const& formats, double number);
|
||||
Optional<String> augment_currency_format_pattern(StringView currency_display, StringView base_pattern);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue