mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibJS: Convert canonicalize_locale_list() to ThrowCompletionOr
This commit is contained in:
parent
5426901521
commit
3758e65293
Notes:
sideshowbarker
2024-07-18 03:42:50 +09:00
Author: https://github.com/IdanHo
Commit: 3758e65293
Pull-request: https://github.com/SerenityOS/serenity/pull/10121
Reviewed-by: https://github.com/linusg ✅
8 changed files with 27 additions and 42 deletions
|
@ -38,7 +38,7 @@ Optional<Unicode::LocaleID> is_structurally_valid_language_tag(StringView locale
|
|||
String canonicalize_unicode_locale_id(Unicode::LocaleID& locale);
|
||||
bool is_well_formed_currency_code(StringView currency);
|
||||
bool is_well_formed_unit_identifier(StringView unit_identifier);
|
||||
Vector<String> canonicalize_locale_list(GlobalObject&, Value locales);
|
||||
ThrowCompletionOr<Vector<String>> canonicalize_locale_list(GlobalObject&, Value locales);
|
||||
Optional<String> best_available_locale(StringView const& locale);
|
||||
String insert_unicode_extension_and_canonicalize(Unicode::LocaleID locale_id, Unicode::LocaleExtension extension);
|
||||
LocaleResult resolve_locale(Vector<String> const& requested_locales, LocaleOptions const& options, Vector<StringView> const& relevant_extension_keys);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue